From 41f91b4e0094a6321a4517e988833faa8dd27acd Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 13 Jan 2025 11:28:53 +0900 Subject: [PATCH] =?UTF-8?q?QLine=EA=B4=80=EB=A0=A8=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QLine.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/fabric/QLine.js b/src/components/fabric/QLine.js index 65575731..67c02d62 100644 --- a/src/components/fabric/QLine.js +++ b/src/components/fabric/QLine.js @@ -15,7 +15,8 @@ export const QLine = fabric.util.createClass(fabric.Line, { padding: 5, initialize: function (points, options, length = 0) { // 소수점 전부 제거 - points = points.map((point) => Number(point.toFixed(1))) + + points = points.map((point) => Number(point?.toFixed(1))) this.callSuper('initialize', points, { ...options, selectable: options.selectable ?? true }) if (options.id) {