Skip to main content

Interface: TimeScaleModelOptions

Defined in: layout/viewport/time-scale-model.ts:45

What a caller states about how time should be displayed, to construct a TimeScaleModel (plans/02 §5; renamed from TimeScaleIntent, issue #84 — a caller states options, not "intent"). Everything else — the dataset's zone (D6), the span — is derived at bind time.

Properties​

fit?​

optional fit?: TimeScaleFit

Defined in: layout/viewport/time-scale-model.ts:51

Default 'pane'.


fitDatasetPaddingPx?​

optional fitDatasetPaddingPx?: number

Defined in: layout/viewport/time-scale-model.ts:54

Pixels of empty axis before the first bar and after the last bar, when range is 'fitDataset'. The default is DEFAULT_FIT_DATASET_PADDING_PX. 0 removes the margin. A pinned TimeSpan has none.


preset?​

optional preset?: PresetRef

Defined in: layout/viewport/time-scale-model.ts:47

Governs header ticks and, with no viewport to fit, the resolved density. Defaults to dayPreset.


range?​

optional range?: TimeSpan | "fitDataset"

Defined in: layout/viewport/time-scale-model.ts:49

'fitDataset' (the default) spans the entries of every bound dataset; a TimeSpan pins the axis.