From 795f5fc30f3f512fe0fe8b1771b79619c78ce1b8 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 26 Aug 2024 15:45:36 +0900 Subject: [PATCH] =?UTF-8?q?clear=20=EC=8B=9C=20=EB=B9=84=EC=9B=8C=EC=A3=BC?= =?UTF-8?q?=EB=8A=94=20=EB=82=B4=EC=9A=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useMode.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hooks/useMode.js b/src/hooks/useMode.js index 2d7356a4..afb1f417 100644 --- a/src/hooks/useMode.js +++ b/src/hooks/useMode.js @@ -663,9 +663,12 @@ export function useMode() { editMode: (options) => { // const pointer = canvas?.getPointer(options.e) + let pointer = canvas?.getPointer(options.e) const mouseLines = canvas?._objects.filter((obj) => obj.name === 'mouseLine') - const pointer = calculateIntersection(mouseLines[0], mouseLines[1]) + /*if (calculateIntersection(mouseLines[0], mouseLines[1])) { + pointer = calculateIntersection(mouseLines[0], mouseLines[1]) + }*/ const circle = new fabric.Circle({ radius: 5, @@ -951,6 +954,8 @@ export function useMode() { points.current = [] historyPoints.current = [] historyLines.current = [] + setRoof(null) + setWall(null) setSelectedCellRoofArray([]) //셀 그린거 삭제 }