Signature
Interface UseTimelineViewportScrollbarResultProperties
| Name | Signature | Description |
|---|---|---|
onValueChange | (value: RangeScrollbarValue, details: RangeScrollbarValueChangeDetails): void | Handles controlled range changes by panning or zooming the timeline engine. |
range | range: UseRangeScrollbarResult | Generic range scrollbar state derived from timeline viewport state. |
rootProps | rootProps: TimelineViewportScrollbarRangeProps | Props that wire `RangeScrollbar.Root` to timeline scroll and zoom state. |
scrollLeft | scrollLeft: number | Current horizontal timeline scroll offset in pixels. |
totalDurationSeconds | totalDurationSeconds: number | Full timeline duration represented by the scrollbar domain, in seconds. |
viewDurationSeconds | viewDurationSeconds: number | Visible viewport duration in seconds. |
viewEndSeconds | viewEndSeconds: number | Visible viewport end time in seconds. |
viewportWidth | viewportWidth: number | Measured timeline viewport width in pixels. |
viewStartSeconds | viewStartSeconds: number | Visible viewport start time in seconds. |
zoomScale | zoomScale: number | Current timeline zoom scale in pixels per second. |