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

Function applyStyle

packages/sdk/examples/react-embed.ts:52–55  ·  view source on GitHub ↗
(comp: Composition, id: string, prop: string, value: string)

Source from the content-addressed store, hash-verified

50// ── Property panel bindings ───────────────────────────────────────────────────
51
52export function applyStyle(comp: Composition, id: string, prop: string, value: string): void {
53 // F1: explicit target — panel holds the id when rendering the current element
54 comp.setStyle(id, { [prop]: value });
55}
56
57export function applyFontSize(comp: Composition, id: string, px: number): void {
58 comp.setStyle(id, { fontSize: `${px}px` });

Callers

nothing calls this directly

Calls 1

setStyleMethod · 0.65

Tested by

no test coverage detected