本文へ移動

@eightkk/vue-weave / core / calendarZoomPresets

Function: calendarZoomPresets() ​

calendarZoomPresets(range, options?): CalendarZoomPreset[]

Defined in: src/core/calendarFormat.ts:155

Ready-made zoomPresets for common calendar views of range in epoch milliseconds: hours, days, weeks, months, quarters and years. Each preset has a pixel density, tick steps, snap and header bands from calendarBands, whose boundaries follow local dates in timeZone (so a month band across a daylight-saving change starts at local midnight). Ticks stay uniform elapsed-time steps from range.start, as GanttChart draws them; start the range on a band boundary to align them. Labels use locale (default en-US); quarter bands read Q1 to Q4.

Parameters ​

range ​

TimeRange

options? ​

CalendarZoomPresetOptions = {}

Returns ​

CalendarZoomPreset[]

MIT ライセンスで公開しています。