From 57dcf29c042eb15621bdd553a0ace892a3e9913b Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 12 Feb 2025 12:28:22 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=BC=EC=B2=98=20=EB=AA=A8=EB=93=88=20?= =?UTF-8?q?=EC=B0=BE=EA=B8=B0=20=EA=B3=84=EC=82=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 61198ad4..f6c08ec4 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -747,8 +747,8 @@ export const useTrestle = () => { let width = widthArr.reduce((acc, num) => acc + num, 0) / widthArr.length + horizontal let height = heightArr.reduce((acc, num) => acc + num, 0) / heightArr.length + vertical - let maxX = 2 + horizontal * 3 - let maxY = 2 + vertical * 3 + let maxX = 2 + (horizontal / 10) * 3 + let maxY = 2 + (vertical / 10) * 3 let result switch (direction) { @@ -795,8 +795,8 @@ export const useTrestle = () => { let result let topLeftPoint - let maxX = 2 + horizontal * 3 - let maxY = 2 + vertical * 3 + let maxX = 2 + (horizontal / 10) * 3 + let maxY = 2 + (vertical / 10) * 3 switch (direction) { case 'south': { @@ -854,8 +854,8 @@ export const useTrestle = () => { let result let topRightPoint - let maxX = 2 + horizontal * 3 - let maxY = 2 + vertical * 3 + let maxX = 2 + (horizontal / 10) * 3 + let maxY = 2 + (vertical / 10) * 3 switch (direction) { case 'south': { @@ -2381,8 +2381,8 @@ export const useTrestle = () => { const horizontal = ['south', 'north'].includes(direction) ? moduleIntvlHor : moduleIntvlVer const vertical = ['south', 'north'].includes(direction) ? moduleIntvlVer : moduleIntvlHor - const maxX = 2 + horizontal * 3 - const maxY = 2 + vertical * 3 + const maxX = 2 + (horizontal / 10) * 3 + const maxY = 2 + (vertical / 10) * 3 let { widthArr, heightArr } = centerPoints[0] let width = widthArr.reduce((acc, num) => acc + num, 0) / widthArr.length let height = heightArr.reduce((acc, num) => acc + num, 0) / heightArr.length