openpencil/tests/engine
Danila Poyarkov d30ab4c5d5 Add variables support: collections, modes, bindings, UI panel
Core:
- Variable, VariableCollection types on SceneGraph
- resolveVariable with alias chain resolution + cycle detection
- Mode switching (activeMode per collection)
- Bind/unbind variables to node properties (fills/strokes colors)
- Renderer resolves variable bindings before painting

Import:
- Parse VARIABLE type NodeChanges from .fig files
- Extract paint variable bindings (fills/strokes)

UI:
- VariablesPanel with reka-ui Tabs (collections) + Editable (names/values)
- FillSection: variable picker (reka-ui Popover + Combobox)
- Bound fills show purple variable name badge with detach button
- Toggle variables panel from bottom of layers sidebar

7 new unit tests (83 total)
2026-03-01 01:47:52 +03:00
..
fig-import.test.ts Add fig-import unit tests for Tier 1 rendering features 2026-02-28 16:43:43 +03:00
layout.test.ts Add layout tests, fix cross-axis sizing bugs 2026-02-28 13:59:39 +03:00
scene-graph.test.ts Add variables support: collections, modes, bindings, UI panel 2026-03-01 01:47:52 +03:00