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

Function handleRemoveGsapProperty

packages/sdk/src/engine/mutate.ts:1098–1110  ·  view source on GitHub ↗
(
  parsed: ParsedDocument,
  animationId: string,
  property: string,
  from: boolean | undefined,
)

Source from the content-addressed store, hash-verified

1096}
1097
1098function handleRemoveGsapProperty(
1099 parsed: ParsedDocument,
1100 animationId: string,
1101 property: string,
1102 from: boolean | undefined,
1103): MutationResult {
1104 const script = getGsapScript(parsed.document);
1105 if (!script) return EMPTY;
1106 const newScript = removePropertyFromAnimation(script, animationId, property, from ?? false);
1107 if (newScript === script) return EMPTY;
1108 setGsapScript(parsed.document, newScript);
1109 return gsapScriptChange(script, newScript);
1110}
1111
1112function handleRemoveGsapTween(parsed: ParsedDocument, animationId: string): MutationResult {
1113 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