Skip to content

TimelineTrackScaleProps

Defined in: src/components/editor/Timeline/Timeline.types.ts:335

Properties

color?

optional color: string

Defined in: src/components/editor/Timeline/Timeline.types.ts:364

Override the axis / label color. Defaults to the muted text colour.


format()?

optional format: (value) => string

Defined in: src/components/editor/Timeline/Timeline.types.ts:345

Custom value formatter. Receives the raw value and returns the label.

Parameters

value

number

Returns

string

Default

(v) => Number(v.toFixed(2)).toString()


gridlines?

optional gridlines: boolean

Defined in: src/components/editor/Timeline/Timeline.types.ts:354

Draw thin horizontal gridlines across the whole lane width at each tick (min / max, plus midpoint when showMidpoint is on).

Default

false

minLaneHeight?

optional minLaneHeight: number

Defined in: src/components/editor/Timeline/Timeline.types.ts:360

Lanes shorter than this (CSS px) skip the scale, so the labels never overlap into an unreadable blob on a short / collapsed graph lane.

Default

48

position?

optional position: "end" | "start"

Defined in: src/components/editor/Timeline/Timeline.types.ts:340

Which side of the lane the scale axis is drawn on.

Default

'start'

showMidpoint?

optional showMidpoint: boolean

Defined in: src/components/editor/Timeline/Timeline.types.ts:349

Draw a tick + label at the midpoint of the range too.

Default

false