Function

useTimelineRulerTicks

Returns shared viewport-space ruler ticks for DOM and custom timeline chrome. The hook subscribes to geometry-affecting timeline events and intentionally does not subscribe to playhead-only updates.

Signature

Type Definition
useTimelineRulerTicks(options: UseTimelineRulerTicksOptions = {}): TimelineRulerTick[]

Parameters

NameTypeDescription
optionsUseTimelineRulerTicksOptionsOptional viewport and frame-label overrides.

Returns

TimelineRulerTick[]

Ruler ticks clipped to the visible viewport and optional duration.