Commit Graph

19 Commits

Author SHA1 Message Date
4f8bf81a60 code optimization 2025-09-02 15:21:13 +05:30
a3b2d258cf socket and api integerated successfully 2025-09-02 10:48:58 +05:30
8e7c5a1aa0 added api fallback for sockets 2025-09-01 17:36:40 +05:30
f8197a6d49 removed bug in wall asset dynamic position updation 2025-08-23 17:02:21 +05:30
e3bd30743d 2d undo redo bug fix 2025-08-23 15:27:17 +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
7a72d31008 bug fix in line 2025-07-14 09:48:02 +05:30
99b51df468 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-11 18:18:27 +05:30
4baef5fa77 add 2d selection and delete 2025-07-11 16:27:55 +05:30
24ff130d82 feat: Enhance cursor handling and mouse action notes in the footer and builder components 2025-07-11 12:31:00 +05:30
7124a819b6 feat: Implement zone management features including creation, deletion, and updates
- Added zone handling in the Line component for removing and updating zones based on points.
- Enhanced Point component to support snapping and updating zone positions.
- Introduced zone-related API calls for upserting and deleting zones.
- Updated zone store to manage zones more effectively, including methods for removing zones by points and getting zones by point IDs.
- Improved zone instance rendering to handle dynamic point connections.
- Refactored zone creation logic to allow for better interaction and snapping behavior.
- Updated API endpoints for zone operations to use version 1 of the API.
2025-06-30 12:22:42 +05:30
812a4f6aef Refactor wall creator and socket responses; update nav mesh components and remove unused pillar functions
- Updated import path for getClosestIntersection in wallCreator.tsx
- Cleaned up socketResponses.dev.tsx by removing unused imports and code, simplifying the component structure
- Modified navMesh.tsx to remove lines prop and adjust NavMeshDetails accordingly
- Refactored navMeshDetails.tsx to remove lines dependency in useEffect
- Updated polygonGenerator.tsx to remove lines prop and commented out unused code
- Added getClosestIntersection helper function for better modularity
- Removed unused pillar-related functions and commented out code in addAndUpdateReferencePillar.ts, addPillar.ts, deletableHoveredPillar.ts, deletePillar.ts, and updateReferencePolesheight.ts
2025-06-27 16:54:38 +05:30
04c302ea4c Refactor floor management components and APIs: enhance FloorInstance for shape creation, update FloorInstances to handle floor rendering and UUID tracking, and improve FloorCreator with project and version context. Modify floor store methods for better floor management and integrate API calls for floor upsert and deletion. Adjust wall and point components to support new floor functionalities. 2025-06-27 10:48:48 +05:30
1e88006780 Refactor aisle API services: remove createAisleApi, update deleteAisleApi to include versionId, and modify wall asset APIs for consistency in endpoint naming. Enhance floor and wall store functionality with new setters and methods for managing floors and walls, including decal handling. Introduce FloorInstance and FloorInstances components for rendering floor data, and implement FloorCreator for interactive floor creation. Add reference floor visualization with snapping capabilities. Update wall API services for improved error handling and response management. 2025-06-26 17:47:32 +05:30
587ed6c9d7 Refactor builder store and remove wall store
Refactor builder store and remove wall store

- Consolidated wall-related state management into the builder store by removing the useWallStore.
- Added new properties and setters for wall attributes (thickness, height, materials) in the builder store.
- Introduced SelectedWallProperties and WallProperties components for managing wall properties in the sidebar.
- Created a new floor store for managing floor-related state.
- Added a wall asset store for managing wall assets.
- Implemented a zone store for managing zones and their properties.
- Updated sidebar styles for better layout and appearance.
2025-06-25 15:26:53 +05:30
f593fcd578 Enhance builder functionality by implementing drag-and-drop for lines and points, adding hover effects, and improving wall distance display in the UI. 2025-06-23 13:38:26 +05:30
54b02541c1 updated 2025-06-23 09:37:53 +05:30
e22a2dc275 first commit 2025-06-10 15:28:23 +05:30