랙없음의 경우 지지금구 설치 좌표 수정

This commit is contained in:
hyojun.choi 2025-03-13 13:26:32 +09:00
parent aad5c42b25
commit 22ca59e9b9

View File

@ -1652,10 +1652,29 @@ export const useTrestle = () => {
}
}
switch (direction) {
case 'south': {
startPointY -= 5
break
}
case 'east': {
startPointX -= 5
break
}
case 'west': {
startPointX += 5
break
}
case 'north': {
startPointY += 5
break
}
}
for (let i = 0; i < count; i++) {
const bracket = new fabric.Rect({
left: startPointX - 5,
top: startPointY - 5,
left: startPointX,
top: startPointY,
fill: 'green',
name: TRESTLE_MATERIAL.BRACKET,
parentId: module.id,
@ -1668,7 +1687,7 @@ export const useTrestle = () => {
canvas.add(bracket)
canvas.renderAll()
if (direction === 'south') {
startPointY -= height - moduleIntvlVer / 10
startPointY -= height + moduleIntvlVer / 10
} else if (direction === 'north') {
startPointY += height + moduleIntvlVer / 10
} else if (direction === 'east') {