From 2a3f9080ca8d19240a2961548c038ba5afaa72eb Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 18 Jul 2024 16:23:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=88=98=EC=A0=90=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QLine.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/fabric/QLine.js b/src/components/fabric/QLine.js index e551d744..23dbb0a4 100644 --- a/src/components/fabric/QLine.js +++ b/src/components/fabric/QLine.js @@ -16,6 +16,11 @@ export class QLine extends fabric.Group { #lengthTxt = 0 constructor(points, option = { isActiveLengthText: true }, lengthTxt) { + // 소수점 전부 제거 + points.forEach((point) => { + point = Math.round(point) + }) + const [x1, y1, x2, y2] = points if (!option.fontSize) {