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

Function dispatchWithKeyframes

packages/studio/src/utils/sdkCutover.ts:415–425  ·  view source on GitHub ↗

Shared inner dispatch for addWithKeyframes / replaceWithKeyframes ops.

(
  s: Composition,
  payload: KeyframesPayload,
  animationId?: string,
)

Source from the content-addressed store, hash-verified

413
414/** Shared inner dispatch for addWithKeyframes / replaceWithKeyframes ops. */
415function dispatchWithKeyframes(
416 s: Composition,
417 payload: KeyframesPayload,
418 animationId?: string,
419): void {
420 if (animationId !== undefined) {
421 s.dispatch({ type: "replaceWithKeyframes", animationId, ...payload });
422 } else {
423 s.dispatch({ type: "addWithKeyframes", ...payload });
424 }
425}
426
427export function sdkAddWithKeyframesPersist(
428 targetPath: string,

Callers 2

Calls 1

dispatchMethod · 0.65

Tested by

no test coverage detected