refactor: Add point snapping functionality and enhance aisle management with new Point and Gizmo components

This commit is contained in:
2025-05-30 14:33:55 +05:30
parent 0e0a53bd5a
commit 63bb7c84aa
10 changed files with 234 additions and 77 deletions

View File

@@ -37,12 +37,12 @@ function ReferenceAisle({ tempPoints }: Readonly<ReferenceAisleProps>) {
tempPoints[0],
{
uuid: 'temp-point',
pointType: 'Aisle',
position: [mousePosRef.current.x, mousePosRef.current.y, mousePosRef.current.z],
layer: activeLayer
}
],
type: {
typeName: 'Aisle',
aisleType: aisleType,
aisleColor: aisleColor,
aisleWidth: aisleWidth
@@ -55,12 +55,12 @@ function ReferenceAisle({ tempPoints }: Readonly<ReferenceAisleProps>) {
tempPoints[0],
{
uuid: 'temp-point',
pointType: 'Aisle',
position: [mousePosRef.current.x, mousePosRef.current.y, mousePosRef.current.z],
layer: activeLayer
}
],
type: {
typeName: 'Aisle',
aisleType: aisleType,
aisleColor: aisleColor,
aisleWidth: aisleWidth,
@@ -75,12 +75,12 @@ function ReferenceAisle({ tempPoints }: Readonly<ReferenceAisleProps>) {
tempPoints[0],
{
uuid: 'temp-point',
pointType: 'Aisle',
position: [mousePosRef.current.x, mousePosRef.current.y, mousePosRef.current.z],
layer: activeLayer
}
],
type: {
typeName: 'Aisle',
aisleType: aisleType,
aisleColor: aisleColor,
dotRadius: dotRadius,
@@ -96,12 +96,12 @@ function ReferenceAisle({ tempPoints }: Readonly<ReferenceAisleProps>) {
tempPoints[0],
{
uuid: 'temp-point',
pointType: 'Aisle',
position: [mousePosRef.current.x, mousePosRef.current.y, mousePosRef.current.z],
layer: activeLayer
}
],
type: {
typeName: 'Aisle',
aisleType: aisleType,
aisleColor: aisleColor,
aisleWidth: aisleWidth,