Interface

UseTimelineCanvasLayerOptions

Options for `useTimelineCanvasLayer`.

Usage notes

Use these options for dense app-owned visuals such as waveforms, subtitles, annotations, audio peaks, thumbnail strips, or analysis overlays. Geometry options should match the primary renderer so custom drawings line up with clip and keyframe positions.

Signature

Type Definition
Interface UseTimelineCanvasLayerOptions

Type parameters

NameConstraintDefaultDescription
TrackKindNonestringApp-defined track kind values carried by draw geometry.

Properties

NameSignatureDescription
clearBeforeDraw?clearBeforeDraw?: booleanClear the canvas before each draw. Defaults to true.
collapsedTrackHeight?collapsedTrackHeight?: numberCollapsed track height in pixels.
drawdraw: TimelineCanvasLayerDraw<TrackKind>Draws custom timeline visuals into an app-owned canvas.
edgeThreshold?edgeThreshold?: numberMouse/pen edge hit threshold in pixels.
overscanPixels?overscanPixels?: numberExtra pixels around the viewport included in visible clip queries.
redrawOnPlayhead?redrawOnPlayhead?: booleanRedraw when only the playhead changes. Defaults to false.
rulerHeight?rulerHeight?: numberHeight of the top ruler region in pixels.
touchEdgeThreshold?touchEdgeThreshold?: numberTouch edge hit threshold in pixels.
trackHeight?trackHeight?: numberDefault expanded track height in pixels.