(comp: Composition, color: string)
| 65 | // Selection sugar — resolves getSelection() → explicit ops at call time. |
| 66 | // Equivalent to: ids = comp.getSelection(); comp.setStyle(ids, {...}) |
| 67 | export 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. |