Function

useTimelineClipRects

Returns viewport-space geometry for every timeline clip. The hook subscribes to geometry-affecting timeline events and intentionally does not subscribe to playhead-only updates.

Signature

Type Definition
useTimelineClipRects(options: TimelineInteractionGeometry = {}): TimelineClipRect<TrackKind>[]

Type parameters

NameConstraintDefaultDescription
TrackKindNonestringNo type parameter summary yet.

Parameters

NameTypeDescription
optionsTimelineInteractionGeometryOptional ruler and track metrics aligned with the renderer.

Returns

TimelineClipRect<TrackKind>[]

Clip entries with viewport rectangles and edit/display state.