From 1898adc005066fc3704757c26fa352860814eb83 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 24 Jun 2024 19:16:34 +0900 Subject: [PATCH] =?UTF-8?q?historyLine=20=EC=B4=88=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useMode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useMode.js b/src/hooks/useMode.js index 36032eef..9ee3e128 100644 --- a/src/hooks/useMode.js +++ b/src/hooks/useMode.js @@ -311,6 +311,7 @@ export function useMode() { const makePolygon = () => { // 캔버스에서 모든 라인 객체를 찾습니다. const lines = historyLines.current + historyLines.current = [] // 각 라인의 시작점과 끝점을 사용하여 다각형의 점 배열을 생성합니다. const points = lines.map((line) => ({ x: line.x1, y: line.y1 }))