Commit Graph

3 Commits

Author SHA1 Message Date
3cfde617cc feat: Update point click handling to prevent event propagation; enhance data structure in undo/redo handlers for improved state management 2025-07-31 10:27:07 +05:30
e405596d9e feat: Integrate undo/redo functionality for aisle and line creation; enhance selection controls for better state management 2025-07-30 13:51:30 +05:30
fcd924eb31 feat: Implement undo and redo functionality for 2D scene controls
- Added useRedoHandler to manage redo actions, including socket communication for wall, floor, zone, and aisle updates.
- Added useUndoHandler to manage undo actions, reversing the effects of previous actions with corresponding socket updates.
- Created UndoRedo2DControls component to handle keyboard shortcuts for undo (Ctrl+Z) and redo (Ctrl+Y).
- Established a Zustand store (useUndoRedo2DStore) to maintain undo and redo stacks, with methods for pushing, popping, and peeking actions.
2025-07-29 17:20:34 +05:30