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

Function applyFontSize

packages/sdk/examples/react-embed.ts:57–59  ·  view source on GitHub ↗
(comp: Composition, id: string, px: number)

Source from the content-addressed store, hash-verified

55}
56
57export function applyFontSize(comp: Composition, id: string, px: number): void {
58 comp.setStyle(id, { fontSize: `${px}px` });
59}
60
61export function applyTextContent(comp: Composition, id: string, value: string): void {
62 comp.setText(id, value);

Callers

nothing calls this directly

Calls 1

setStyleMethod · 0.65

Tested by

no test coverage detected