fix(studio): scope timeline context targets (#2708)

This commit is contained in:
Miguel Ángel
2026-08-03 21:19:49 -07:00
committed by GitHub
parent 4e7fcf7f2a
commit 423c5ffadb
14 changed files with 455 additions and 57 deletions
@@ -73,7 +73,8 @@ export interface TimelineEditCallbacks {
onRazorSplit?: (element: TimelineElement, splitTime: number) => Promise<void> | void;
onRazorSplitAll?: (splitTime: number) => Promise<void> | void;
onDeleteKeyframe?: (elementId: string, keyframe: TimelineKeyframeTarget) => void;
onDeleteAllKeyframes?: (element: TimelineElement) => void;
onDeleteAllKeyframes?: (element: TimelineElement, animationId?: string) => void;
onChangeKeyframeEase?: (elementId: string, percentage: number, ease: string) => void;
onMoveKeyframeToPlayhead?: (element: TimelineElement, keyframe: TimelineKeyframeTarget) => void;
/** Drag-to-retime: `keyframe` identifies the dragged keyframe (its percentage
* is clip-relative), `toClipPercentage` is the neighbour-clamped drop. */