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

Function appendAnimationsSection

packages/sdk-playground/src/main.ts:596–603  ·  view source on GitHub ↗
(container: HTMLElement, el: PropEl)

Source from the content-addressed store, hash-verified

594}
595
596function appendAnimationsSection(container: HTMLElement, el: PropEl) {
597 const sec = propSection("Animations");
598 if (el.animationIds.length > 0)
599 for (const aid of el.animationIds) sec.appendChild(tweenChip(aid));
600 else sec.appendChild(mkNote("no tweens"));
601 sec.appendChild(addTweenToggle());
602 container.appendChild(sec);
603}
604
605function tweenChip(aid: string): HTMLDivElement {
606 const chip = document.createElement("div");

Callers 1

renderPropertiesContentFunction · 0.85

Calls 4

propSectionFunction · 0.85
tweenChipFunction · 0.85
mkNoteFunction · 0.85
addTweenToggleFunction · 0.85

Tested by

no test coverage detected