devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
16 lines (15 loc) • 596 B
JavaScript
/**
* DevExtreme (esm/__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/
*/
import {
dateUtilsTs
} from "../../../../core/utils/date";
export const shiftIntervals = (intervals, viewOffset) => intervals.map((interval => ({
min: dateUtilsTs.addOffsets(interval.min, [viewOffset]),
max: dateUtilsTs.addOffsets(interval.max, [viewOffset])
})));