(comp: Composition, id: string, prop: string, value: string)
| 50 | // ── Property panel bindings ─────────────────────────────────────────────────── |
| 51 | |
| 52 | export 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 | |
| 57 | export function applyFontSize(comp: Composition, id: string, px: number): void { |
| 58 | comp.setStyle(id, { fontSize: `${px}px` }); |