랙없음의 경우 지지금구 설치 좌표 수정
This commit is contained in:
parent
aad5c42b25
commit
22ca59e9b9
@ -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++) {
|
for (let i = 0; i < count; i++) {
|
||||||
const bracket = new fabric.Rect({
|
const bracket = new fabric.Rect({
|
||||||
left: startPointX - 5,
|
left: startPointX,
|
||||||
top: startPointY - 5,
|
top: startPointY,
|
||||||
fill: 'green',
|
fill: 'green',
|
||||||
name: TRESTLE_MATERIAL.BRACKET,
|
name: TRESTLE_MATERIAL.BRACKET,
|
||||||
parentId: module.id,
|
parentId: module.id,
|
||||||
@ -1668,7 +1687,7 @@ export const useTrestle = () => {
|
|||||||
canvas.add(bracket)
|
canvas.add(bracket)
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
if (direction === 'south') {
|
if (direction === 'south') {
|
||||||
startPointY -= height - moduleIntvlVer / 10
|
startPointY -= height + moduleIntvlVer / 10
|
||||||
} else if (direction === 'north') {
|
} else if (direction === 'north') {
|
||||||
startPointY += height + moduleIntvlVer / 10
|
startPointY += height + moduleIntvlVer / 10
|
||||||
} else if (direction === 'east') {
|
} else if (direction === 'east') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user