Interface

UseTimelineKeyframeDragOptions

Options accepted by `useTimelineKeyframeDrag`.

Usage notes

Geometry must match the renderer or keyframe interaction layer so horizontal pointer movement maps to timeline time and vertical movement maps to property value consistently. The hook edits values in preview mode while dragging and settles history when the drag ends.

Signature

Type Definition
Interface UseTimelineKeyframeDragOptions

Properties

NameSignatureDescription
collapsedTrackHeight?collapsedTrackHeight?: numberCollapsed track height in pixels.
edgeThreshold?edgeThreshold?: numberMouse/pen edge hit threshold in pixels.
keyframeSize?keyframeSize?: numberKeyframe affordance size in CSS pixels. Defaults to engine geometry.
keyframeValuePadding?keyframeValuePadding?: numberVertical padding used when mapping property values into a clip row. Defaults to engine geometry.
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.