refactor(view): extract canvas viewport hooks

This commit is contained in:
syntaxbullet
2026-07-03 10:16:34 +02:00
parent c7730518ad
commit b5c7f87a20
6 changed files with 168 additions and 125 deletions

View File

@@ -6,3 +6,4 @@
- Event handlers, toolbar buttons, menus, and effects must request state changes by dispatching commands.
- Do not implement business rules, document mutation, renderer backend logic, or editor workflow ownership in components.
- Effects are for subscriptions and UI integration only.
- Keep canvas components small. Extract renderer lifecycle, resize observation, input wiring, cursor logic, and other DOM integration into focused hooks/files under `view/canvas/`.