UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

19 lines (18 loc) 646 B
/** * DevExtreme (cjs/__internal/scheduler/view_model/common/shift_intervals.js) * Version: 25.2.3 * Build date: Fri Dec 12 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; const shiftIntervals = (intervals, viewOffset) => intervals.map((interval => Object.assign({}, interval, { min: interval.min + viewOffset, max: interval.max + viewOffset }))); exports.shiftIntervals = shiftIntervals;