From 23e681254278a936139583a51eb28ed075d5cef9 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 21 Jan 2025 17:14:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=80=EB=B6=95=EB=A9=B4=20=ED=95=A0?= =?UTF-8?q?=EB=8B=B9=EC=8B=9C=20=EB=85=B9=EC=83=89=20=EC=84=A0=20=EC=83=9D?= =?UTF-8?q?=EA=B8=B0=EB=8A=94=20=ED=98=84=EC=83=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/usePolygon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index 61a3f672..1bc2dffa 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -429,7 +429,7 @@ export const usePolygon = () => { const sameDirectionCnt = canvas.getObjects().filter((obj) => { const onlyStrDirection = obj.directionText?.replace(/[0-9]/g, '') - return obj.name === POLYGON_TYPE.ROOF && obj.visible && obj !== polygon && onlyStrDirection === text + return obj.name === POLYGON_TYPE.ROOF && obj !== polygon && onlyStrDirection === text }) text = text + (sameDirectionCnt.length + 1) @@ -860,9 +860,9 @@ export const usePolygon = () => { }) polygonLines.forEach((line) => { - line.set({ strokeWidth: 5, stroke: 'green' }) + /*line.set({ strokeWidth: 5, stroke: 'green' }) canvas.add(line) - canvas.renderAll() + canvas.renderAll()*/ const startPoint = line.startPoint // 시작점 let arrivalPoint = line.endPoint // 도착점