openpencil/src/components/properties
Danila Poyarkov f44f06f721 Refactor: extract business logic from components, clean composables
Tier 1 — Core API fixes:
- updateNodeWithUndo now calls requestRender internally, eliminating
  15+ redundant requestRender() calls across 6 property panel components
- New editor/variables.ts: 7 undo-able variable CRUD operations
  (renameCollection, addCollection, removeCollection, addVariable,
  removeVariable, renameVariable, updateVariableValue)
- New editor/alignment.ts: alignNodes, flipNodes, rotateNodes —
  moves bounding box geometry out of PositionSection.vue

Tier 2 — Composable cleanup:
- Merged use-node-props + use-multi-props into single useNodeProps()
  with MIXED sentinel, eliminating duplicate computed refs
- Added toolCursor() utility — replaces if/else chain in EditorCanvas
- Renamed use-toast.ts → toast.ts (singleton module, not a composable)

Tier 3 — use-canvas-input.ts split (1497 → 817 lines):
- input/types.ts (88) — DragState variants, HandlePosition, TOOL_TO_NODE
- input/geometry.ts (170) — hit testing, handle positions, rotation cursor
- input/pan-zoom.ts (266) — wheel, touch pinch, Safari gestures
- input/resize.ts (121) — constrainToAspectRatio, applyResize
- input/auto-layout.ts (103) — insert indicator computation

All 955 tests pass, 0 lint errors, 1.48% duplication.
2026-03-16 20:35:17 +03:00
..
AppearanceSection.vue Refactor: extract business logic from components, clean composables 2026-03-16 20:35:17 +03:00
EffectsSection.vue Refactor: extract business logic from components, clean composables 2026-03-16 20:35:17 +03:00
ExportSection.vue Delete re-export shims, import from @open-pencil/core directly 2026-03-06 21:42:56 +03:00
FillSection.vue Extract createEditor() to packages/core/src/editor/ folder 2026-03-16 15:14:50 +03:00
LayoutSection.vue Code review: svg-export/ folder, restore comments, cleanup 2026-03-09 15:22:14 +03:00
PageSection.vue Remove re-export shims and import types directly from core 2026-03-09 08:56:47 +03:00
PositionSection.vue Refactor: extract business logic from components, clean composables 2026-03-16 20:35:17 +03:00
StrokeSection.vue Extract createEditor() to packages/core/src/editor/ folder 2026-03-16 15:14:50 +03:00
TypographySection.vue Refactor: extract business logic from components, clean composables 2026-03-16 20:35:17 +03:00
VariablesSection.vue Add data-test-id attributes to all Vue components (#41) 2026-03-04 17:18:26 +03:00