refactor(view): extract canvas viewport hooks
This commit is contained in:
@@ -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/`.
|
||||
|
||||
Reference in New Issue
Block a user