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

Function kfOf

packages/sdk/src/engine/mutate.gsap.test.ts:330–334  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

328 x: 0,
329 });
330 const kfOf = (s: string) =>
331 parseGsapScript(s)
332 .animations[0]?.keyframes?.keyframes?.slice()
333 .sort((a, b) => a.percentage - b.percentage)
334 .map((k) => ({ percentage: k.percentage, properties: k.properties }));
335 expect(kfOf(newScript)).toEqual(kfOf(recast));
336
337 // Every keyframe carries `x` (the new prop backfilled at its default 0).

Callers 1

Calls 1

parseGsapScriptFunction · 0.85

Tested by

no test coverage detected