#1085 【HANASYS DESIGN】架台表示の位置について

지지금구 위치 수정
This commit is contained in:
hyojun.choi 2025-06-04 10:35:14 +09:00
parent 514545cf65
commit 904b7afd38

View File

@ -1627,6 +1627,8 @@ export const useTrestle = () => {
// 랙 없음의 지지금구를 그린다. // 랙 없음의 지지금구를 그린다.
const drawBracketWithOutRack = (module, rackIntvlPct, count, l, direction, moduleIntvlHor, moduleIntvlVer) => { const drawBracketWithOutRack = (module, rackIntvlPct, count, l, direction, moduleIntvlHor, moduleIntvlVer) => {
const { leftFindModuleList, rightFindModuleList, centerFindModuleList } = module const { leftFindModuleList, rightFindModuleList, centerFindModuleList } = module
rackIntvlPct = rackIntvlPct === 0 ? 1 : rackIntvlPct // 0인 경우 1로 변경
rackIntvlPct = 100 / rackIntvlPct // 퍼센트로 변경
let { width, height, left, top } = module let { width, height, left, top } = module
let startPointX let startPointX
@ -1641,14 +1643,14 @@ export const useTrestle = () => {
break break
} else if (direction === 'east') { } else if (direction === 'east') {
startPointX = left + width startPointX = left + width
startPointY = top + height - height / rackIntvlPct startPointY = top + height - height / rackIntvlPct - 10
break break
} else if (direction === 'west') { } else if (direction === 'west') {
startPointX = left startPointX = left
startPointY = top + height / rackIntvlPct startPointY = top + height / rackIntvlPct
break break
} else if (direction === 'north') { } else if (direction === 'north') {
startPointX = left + width - width / rackIntvlPct startPointX = left + width - width / rackIntvlPct - 10
startPointY = top startPointY = top
break break
} }
@ -1657,7 +1659,7 @@ export const useTrestle = () => {
case 'R': { case 'R': {
// 오른쪽부분 시작 점 // 오른쪽부분 시작 점
if (direction === 'south') { if (direction === 'south') {
startPointX = left + width - width / rackIntvlPct startPointX = left + width - width / rackIntvlPct - 10
startPointY = top + height / 2 + height / 2 startPointY = top + height / 2 + height / 2
break break
} else if (direction === 'east') { } else if (direction === 'east') {
@ -1666,7 +1668,7 @@ export const useTrestle = () => {
break break
} else if (direction === 'west') { } else if (direction === 'west') {
startPointX = left startPointX = left
startPointY = top + height - height / rackIntvlPct startPointY = top + height - height / rackIntvlPct - 10
break break
} else if (direction === 'north') { } else if (direction === 'north') {
startPointX = left + width / rackIntvlPct startPointX = left + width / rackIntvlPct