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

Function parseTimelineData

packages/sdk-playground/src/main.ts:285–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283}
284
285function parseTimelineData(): { id: string; label: string; tweens: GsapAnimation[] }[] {
286 if (!comp) return [];
287 const script = gsapScriptOf(comp.serialize());
288 if (!script) return [];
289 return groupAnimationsById(parseGsapScriptAcorn(script).animations);
290}
291
292/** Prefer element-level timing attrs (written by setTiming) over the GSAP parse. */
293function computeTiming(

Callers 1

renderTimelineFunction · 0.85

Calls 4

gsapScriptOfFunction · 0.85
groupAnimationsByIdFunction · 0.85
parseGsapScriptAcornFunction · 0.85
serializeMethod · 0.65

Tested by

no test coverage detected