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

Function handleRemoveGsapTween

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

Source from the content-addressed store, hash-verified

1110}
1111
1112function handleRemoveGsapTween(parsed: ParsedDocument, animationId: string): MutationResult {
1113 const script = getGsapScript(parsed.document);
1114 if (!script) throw new Error("No GSAP script block found in the composition.");
1115 const newScript = removeAnimationFromScript(script, animationId);
1116 if (newScript === script) return EMPTY;
1117 setGsapScript(parsed.document, newScript);
1118 return gsapScriptChange(script, newScript);
1119}
1120
1121function handleRemoveAllKeyframes(parsed: ParsedDocument, animationId: string): MutationResult {
1122 const script = getGsapScript(parsed.document);

Callers 1

applyGsapOpFunction · 0.85

Calls 4

getGsapScriptFunction · 0.85
setGsapScriptFunction · 0.85
gsapScriptChangeFunction · 0.85

Tested by

no test coverage detected