MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / commitDragTiming

Function commitDragTiming

packages/sdk-playground/src/main.ts:1251–1259  ·  view source on GitHub ↗
(type: DragType, trackId: string, start: number, dur: number)

Source from the content-addressed store, hash-verified

1249}
1250
1251function commitDragTiming(type: DragType, trackId: string, start: number, dur: number) {
1252 if (type === "move") {
1253 comp!.setTiming(trackId, { start });
1254 logEntry("op", { setTiming: { id: trackId, start: start.toFixed(3) } });
1255 return;
1256 }
1257 comp!.setTiming(trackId, { start, duration: dur });
1258 logEntry("op", { setTiming: { id: trackId, start: start.toFixed(3), duration: dur.toFixed(3) } });
1259}
1260
1261function finishDrag(ds: DragState) {
1262 if (!ds.dragged) {

Callers 1

finishDragFunction · 0.85

Calls 2

logEntryFunction · 0.85
setTimingMethod · 0.65

Tested by

no test coverage detected