Commit ac8fb78
committed
canvas: overhaul editor with undo/redo, selection model, alignment, and validation
Selection model:
- Single select, multi-select (Shift+click), box select (Shift+drag)
- Selection info panel showing position, size, name, description
Undo/redo:
- Command stack with MoveCommand and PropertyCommand
- Undo/redo buttons with max depth of 50
Commands:
- Align left/right/top/bottom
- Distribute horizontally/vertically
- Bring forward/send backward (z-order)
- Copy/paste/duplicate
Validation before save:
- Duplicate name detection
- Broken connection checks
- Orphaned item detection
Persistence:
- XML format deprecated with warning, auto-migrate to YAML1 parent 4fca235 commit ac8fb78
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
0 commit comments