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

Function applyColorToSelection

packages/sdk/examples/react-embed.ts:67–69  ·  view source on GitHub ↗
(comp: Composition, color: string)

Source from the content-addressed store, hash-verified

65// Selection sugar — resolves getSelection() → explicit ops at call time.
66// Equivalent to: ids = comp.getSelection(); comp.setStyle(ids, {...})
67export function applyColorToSelection(comp: Composition, color: string): void {
68 comp.selection().setStyle({ color });
69}
70
71// ── Brand kit (batch) ─────────────────────────────────────────────────────────
72// One undo entry, one persist write, one change event.

Callers

nothing calls this directly

Calls 2

setStyleMethod · 0.65
selectionMethod · 0.65

Tested by

no test coverage detected