UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

20 lines (19 loc) 749 B
/** * DevExtreme (cjs/__internal/scheduler/appointments/data_provider/utils/shift_intervals.js) * Version: 25.1.4 * Build date: Tue Aug 05 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shiftIntervals = void 0; var _date = require("../../../../core/utils/date"); const shiftIntervals = (intervals, viewOffset) => intervals.map((interval => ({ min: _date.dateUtilsTs.addOffsets(interval.min, [viewOffset]), max: _date.dateUtilsTs.addOffsets(interval.max, [viewOffset]) }))); exports.shiftIntervals = shiftIntervals;