Interface

UseTimelineViewportScrollbarResult

State and control props for rendering a timeline viewport scrollbar.

Signature

Type Definition
Interface UseTimelineViewportScrollbarResult

Properties

NameSignatureDescription
onValueChange(value: RangeScrollbarValue, details: RangeScrollbarValueChangeDetails): voidHandles controlled range changes by panning or zooming the timeline engine.
rangerange: UseRangeScrollbarResultGeneric range scrollbar state derived from timeline viewport state.
rootPropsrootProps: TimelineViewportScrollbarRangePropsProps that wire `RangeScrollbar.Root` to timeline scroll and zoom state.
scrollLeftscrollLeft: numberCurrent horizontal timeline scroll offset in pixels.
totalDurationSecondstotalDurationSeconds: numberFull timeline duration represented by the scrollbar domain, in seconds.
viewDurationSecondsviewDurationSeconds: numberVisible viewport duration in seconds.
viewEndSecondsviewEndSeconds: numberVisible viewport end time in seconds.
viewportWidthviewportWidth: numberMeasured timeline viewport width in pixels.
viewStartSecondsviewStartSeconds: numberVisible viewport start time in seconds.
zoomScalezoomScale: numberCurrent timeline zoom scale in pixels per second.