UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

19 lines (18 loc) 644 B
/** * DevExtreme (cjs/__internal/scheduler/view_model/common/shift_intervals.js) * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 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; const shiftIntervals = (intervals, viewOffset) => intervals.map(interval => Object.assign({}, interval, { min: interval.min + viewOffset, max: interval.max + viewOffset })); exports.shiftIntervals = shiftIntervals;