Skip to content
Entangle UI v0.13.0

TimelineHandle

Defined in: src/components/editor/Timeline/Timeline.types.ts:127

Imperative handle exposed via ref on <Timeline>. Stable for the lifetime of the component.

focus(): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:129

Focus the timeline body so keyboard navigation starts working.

void


frameToX(frame): number

Defined in: src/components/editor/Timeline/Timeline.types.ts:151

Map a frame to a track-area CSS-pixel X.

number

number


getElement(): HTMLDivElement | null

Defined in: src/components/editor/Timeline/Timeline.types.ts:131

Access the underlying body DOM element.

HTMLDivElement | null


getFrame(): number

Defined in: src/components/editor/Timeline/Timeline.types.ts:141

Current playhead frame.

number


getView(): TimelineView

Defined in: src/components/editor/Timeline/Timeline.types.ts:147

Current visible frame window.

TimelineView


pause(): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:137

Pause playback.

void


play(): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:135

Start playback.

void


seek(frame): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:133

Move the playhead to a frame (snapped + clamped).

number

void


setView(view): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:149

Set the visible frame window (clamped to bounds + minFramesVisible).

TimelineView

void


toggle(): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:139

Toggle playback.

void


xToFrame(x): number

Defined in: src/components/editor/Timeline/Timeline.types.ts:153

Inverse of frameToX.

number

number


zoomToFit(paddingFrames?): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:143

Fit the view to the whole frame range, with optional padding (frames).

number

void


zoomToSelection(): void

Defined in: src/components/editor/Timeline/Timeline.types.ts:145

Fit the view to the current selection. No-op when nothing is selected.

void