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

Function handleSplitIntoPropertyGroups

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

Source from the content-addressed store, hash-verified

1166}
1167
1168function handleSplitIntoPropertyGroups(
1169 parsed: ParsedDocument,
1170 animationId: string,
1171): MutationResult {
1172 const script = getGsapScript(parsed.document);
1173 if (!script) return EMPTY;
1174 const { script: newScript } = splitIntoPropertyGroupsFromScript(script, animationId);
1175 if (newScript === script) return EMPTY;
1176 setGsapScript(parsed.document, newScript);
1177 return gsapScriptChange(script, newScript);
1178}
1179
1180function handleSplitAnimations(
1181 parsed: ParsedDocument,

Callers 1

applyGsapKeyframeOpFunction · 0.85

Calls 4

getGsapScriptFunction · 0.85
setGsapScriptFunction · 0.85
gsapScriptChangeFunction · 0.85

Tested by

no test coverage detected