Function

useTimelineTrackGeometry

Shares row geometry across consumers using the same normalized layout options.

Signature

Type Definition
useTimelineTrackGeometry(trackId: string, options: TimelineTrackGeometryOptions): Readonly<TimelineTrackRect> | null

Parameters

NameTypeDescription
trackIdstringStable id of the track row to observe.
optionsTimelineTrackGeometryOptionsLayout overrides matching the timeline renderer.

Returns

Readonly<TimelineTrackRect> | null

Readonly viewport-space row rectangle, or null when the track is missing.