dev #680

Merged
ysCha merged 220 commits from dev into dev-deploy 2026-03-03 19:58:23 +09:00
3 changed files with 56 additions and 0 deletions
Showing only changes of commit 9680824b87 - Show all commits

View File

@ -496,6 +496,10 @@ export function useAuxiliaryDrawing(id, isUseEffect = true) {
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y + length2Value / 10 })
} else if (arrow1Value === '→' && arrow2Value === '↑') {
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y - length2Value / 10 })
} else if (arrow1Value === '←' && arrow2Value === '↓') {
mousePointerArr.current.push({ x: lastPoint.x - length1Value / 10, y: lastPoint.y + length2Value / 10 })
} else if (arrow1Value === '←' && arrow2Value === '↑') {
mousePointerArr.current.push({ x: lastPoint.x - length1Value / 10, y: lastPoint.y - length2Value / 10 })
}
drawLine()
}

View File

@ -678,6 +678,32 @@ export function useOuterLineWall(id, propertiesId) {
},
]
})
} else if (arrow1Value === '←' && arrow2Value === '↓') {
setPoints((prev) => {
if (prev.length === 0) {
return []
}
return [
...prev,
{
x: prev[prev.length - 1].x - length1Value / 10,
y: prev[prev.length - 1].y + length2Value / 10,
},
]
})
} else if (arrow1Value === '←' && arrow2Value === '↑') {
setPoints((prev) => {
if (prev.length === 0) {
return []
}
return [
...prev,
{
x: prev[prev.length - 1].x - length1Value / 10,
y: prev[prev.length - 1].y - length2Value / 10,
},
]
})
}
}
}

View File

@ -680,6 +680,32 @@ export function usePlacementShapeDrawing(id) {
},
]
})
} else if (arrow1Value === '←' && arrow2Value === '↓') {
setPoints((prev) => {
if (prev.length === 0) {
return []
}
return [
...prev,
{
x: prev[prev.length - 1].x - length1Value / 10,
y: prev[prev.length - 1].y + length2Value / 10,
},
]
})
} else if (arrow1Value === '←' && arrow2Value === '↑') {
setPoints((prev) => {
if (prev.length === 0) {
return []
}
return [
...prev,
{
x: prev[prev.length - 1].x - length1Value / 10,
y: prev[prev.length - 1].y - length2Value / 10,
},
]
})
}
}
}