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

Function handleConvertToKeyframes

packages/sdk/src/engine/mutate.ts:1130–1141  ·  view source on GitHub ↗
(
  parsed: ParsedDocument,
  animationId: string,
  resolvedFromValues?: Record<string, number | string>,
)

Source from the content-addressed store, hash-verified

1128}
1129
1130function handleConvertToKeyframes(
1131 parsed: ParsedDocument,
1132 animationId: string,
1133 resolvedFromValues?: Record<string, number | string>,
1134): MutationResult {
1135 const script = getGsapScript(parsed.document);
1136 if (!script) return EMPTY;
1137 const newScript = convertToKeyframesFromScript(script, animationId, resolvedFromValues);
1138 if (newScript === script) return EMPTY;
1139 setGsapScript(parsed.document, newScript);
1140 return gsapScriptChange(script, newScript);
1141}
1142
1143function handleMaterializeKeyframes(
1144 parsed: ParsedDocument,

Callers 1

applyGsapKeyframeOpFunction · 0.85

Calls 4

getGsapScriptFunction · 0.85
setGsapScriptFunction · 0.85
gsapScriptChangeFunction · 0.85

Tested by

no test coverage detected