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

Method replaceWithKeyframes

packages/sdk/src/session.ts:261–284  ·  view source on GitHub ↗
(
    animationId: string,
    targetSelector: string,
    position: number,
    duration: number,
    keyframes: KeyframeSpec[],
    ease?: string,
  )

Source from the content-addressed store, hash-verified

259 }
260
261 replaceWithKeyframes(
262 animationId: string,
263 targetSelector: string,
264 position: number,
265 duration: number,
266 keyframes: KeyframeSpec[],
267 ease?: string,
268 ): string {
269 const result = this._dispatch(
270 {
271 type: "replaceWithKeyframes",
272 animationId,
273 targetSelector,
274 position,
275 duration,
276 keyframes,
277 ease,
278 },
279 ORIGIN_LOCAL,
280 );
281 // Position-derived IDs renumber after the remove — this is the NEW id, which
282 // may differ from the input animationId.
283 return result.meta?.animationId ?? "";
284 }
285
286 undo(): void {
287 this.historyModule?.undo();

Callers

nothing calls this directly

Calls 1

_dispatchMethod · 0.95

Tested by

no test coverage detected