本文へ移動

@eightkk/vue-weave / core / CalendarZoomPreset

Interface: CalendarZoomPreset ​

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

A TimelineZoomPreset for one calendar level, with every optional field filled and a matching tick formatter.

Extends ​

Properties ​

formatTime ​

formatTime: (time) => string

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

Locale-aware labels for this level, for the chart's formatTime while the preset is active (GanttChart does not read it from the preset): HH:mm for hours; a date for the other levels, followed by the time when it is not local midnight.

Parameters ​

time ​

number

Returns ​

string


headerBands ​

headerBands: readonly (readonly TimelineBand[])[]

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

Overrides ​

TimelineZoomPreset.headerBands


id ​

id: CalendarZoomLevel

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

The level, also used as the preset id.

Overrides ​

TimelineZoomPreset.id


label ​

label: string

Defined in: src/core/types.ts:789

Inherited from ​

TimelineZoomPreset.label


pixelsPerUnit ​

pixelsPerUnit: number

Defined in: src/core/types.ts:790

Inherited from ​

TimelineZoomPreset.pixelsPerUnit


snap ​

snap: number

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

Overrides ​

TimelineZoomPreset.snap


tickSteps ​

tickSteps: readonly number[]

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

Overrides ​

TimelineZoomPreset.tickSteps

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