feat: drag selection box to select, move, and delete multiple gates
Click and drag on empty space to draw a selection rectangle. Gates inside the box get selected (cyan dashed outline). Drag any selected gate to move all of them together. Delete/Backspace removes all selected gates and their connections. Escape clears the selection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -45,5 +45,10 @@ export const state = {
|
||||
editingComponentId: null, // ID of component being edited (null = new component)
|
||||
|
||||
// Bus cutting (shift+drag)
|
||||
busCutting: null // { startX, startY, endX, endY } in world coords, or null
|
||||
busCutting: null, // { startX, startY, endX, endY } in world coords, or null
|
||||
|
||||
// Multi-selection
|
||||
selectedGates: [], // array of gate IDs currently selected
|
||||
selectionBox: null, // { startX, startY, endX, endY } in world coords while dragging
|
||||
multiDrag: null // { startX, startY, origins: [{id, x, y}] } while dragging selected gates
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user