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

Function applyGsapWithKeyframesOp

packages/sdk/src/engine/mutate.ts:226–235  ·  view source on GitHub ↗
(parsed: ParsedDocument, op: EditOp)

Source from the content-addressed store, hash-verified

224}
225
226function applyGsapWithKeyframesOp(parsed: ParsedDocument, op: EditOp): MutationResult | undefined {
227 switch (op.type) {
228 case "addWithKeyframes":
229 return handleAddWithKeyframes(parsed, op);
230 case "replaceWithKeyframes":
231 return handleReplaceWithKeyframes(parsed, op);
232 default:
233 return undefined;
234 }
235}
236
237function applyGsapOp(parsed: ParsedDocument, op: EditOp): MutationResult | undefined {
238 const kf = applyGsapKeyframeOp(parsed, op);

Callers 1

applyGsapOpFunction · 0.85

Calls 2

handleAddWithKeyframesFunction · 0.85

Tested by

no test coverage detected