From af3422b663a94bc74ec0ac803c2175a5726deadc Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 19 Sep 2024 13:27:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=88=98=EC=A0=90=20=ED=95=9C?= =?UTF-8?q?=EC=9E=90=EB=A6=BF=EC=88=98=20=EC=98=AC=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useLine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useLine.js b/src/hooks/useLine.js index 3d2f6f19..7bbbc787 100644 --- a/src/hooks/useLine.js +++ b/src/hooks/useLine.js @@ -46,7 +46,7 @@ export const useLine = () => { const dx = x2 - x1 const dy = y2 - y1 - return Number(Math.sqrt(dx * dx + dy * dy).toFixed(0)) * 10 + return Number(Math.sqrt(dx * dx + dy * dy).toFixed(1)) * 10 } return {