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

Function appendBoxSection

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

Source from the content-addressed store, hash-verified

529}
530
531function appendBoxSection(container: HTMLElement, el: PropEl) {
532 const sec = propSection("Box");
533 sec.appendChild(makeStyleRow("Background", "background", styleVal(el, "background"), "color"));
534 sec.appendChild(makeStyleRow("Opacity", "opacity", styleVal(el, "opacity"), "text"));
535 sec.appendChild(makeStyleRow("Left", "left", styleVal(el, "left"), "text"));
536 sec.appendChild(makeStyleRow("Top", "top", styleVal(el, "top"), "text"));
537 container.appendChild(sec);
538}
539
540function attrRow(name: string, val: string): HTMLDivElement {
541 const row = document.createElement("div");

Callers 1

renderPropertiesContentFunction · 0.85

Calls 3

propSectionFunction · 0.85
makeStyleRowFunction · 0.85
styleValFunction · 0.85

Tested by

no test coverage detected