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

Function handleRemoveAllKeyframes

packages/sdk/src/engine/mutate.ts:1121–1128  ·  view source on GitHub ↗
(parsed: ParsedDocument, animationId: string)

Source from the content-addressed store, hash-verified

1119}
1120
1121function handleRemoveAllKeyframes(parsed: ParsedDocument, animationId: string): MutationResult {
1122 const script = getGsapScript(parsed.document);
1123 if (!script) return EMPTY;
1124 const newScript = removeAllKeyframesFromScript(script, animationId);
1125 if (newScript === script) return EMPTY;
1126 setGsapScript(parsed.document, newScript);
1127 return gsapScriptChange(script, newScript);
1128}
1129
1130function handleConvertToKeyframes(
1131 parsed: ParsedDocument,

Callers 1

applyGsapKeyframeOpFunction · 0.85

Calls 4

getGsapScriptFunction · 0.85
setGsapScriptFunction · 0.85
gsapScriptChangeFunction · 0.85

Tested by

no test coverage detected