Logo
Explore Help
Sign In
Dwinzo-Beta/Dwinzo_dev
4
0
Fork 3
You've already forked Dwinzo_dev
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
20b6f84b38ebb20ea84137e1fce06b8a2a92842e
Dwinzo_dev/app/src/modules/builder/wall/Instances/wallInstances.tsx

21 lines
494 B
TypeScript
Raw Normal View History

feat: Implement wall creation and management features - Added WallGroup component to manage wall creation and instances. - Introduced WallCreator for handling wall creation logic, including mouse events and snapping. - Created ReferenceWall component to visualize temporary wall during creation. - Implemented WallInstances to render existing walls in the scene. - Added useWallStore for state management of walls, including adding, updating, and removing walls. - Enhanced Point and Line components to support wall-related functionalities. - Updated builder store to include wall properties such as thickness and height. - Refactored point snapping logic to accommodate wall snapping. - Removed unused ReferencePoint component and adjusted imports accordingly. - Updated world constants to include new wall-related configurations.
2025-06-04 10:23:22 +05:30
import { useEffect } from 'react';
import { useWallStore } from '../../../../store/builder/useWallStore'
import WallInstance from './instance/wallInstance';
function WallInstances() {
const { walls } = useWallStore();
useEffect(() => {
// console.log('walls: ', walls);
}, [walls])
return (
<>
{walls.map((wall) => (
<WallInstance key={wall.wallUuid} wall={wall} />
))}
</>
)
}
export default WallInstances
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 1921ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API