diff --git a/src/hooks/roofcover/useRoofShapeSetting.js b/src/hooks/roofcover/useRoofShapeSetting.js index ddf94e9c..1722e287 100644 --- a/src/hooks/roofcover/useRoofShapeSetting.js +++ b/src/hooks/roofcover/useRoofShapeSetting.js @@ -244,6 +244,9 @@ export function useRoofShapeSetting(setShowRoofShapeSettingModal) { } } + // 기존 wallLine 제거 + canvas?.remove(canvas.getObjects().filter((obj) => obj.name === 'wallLine')) + const polygon = addPolygonByLines(outerLines, { name: 'wallLine' }) polygon.lines = [...outerLines] diff --git a/src/hooks/useCanvasEvent.js b/src/hooks/useCanvasEvent.js index 55a34cb2..49705917 100644 --- a/src/hooks/useCanvasEvent.js +++ b/src/hooks/useCanvasEvent.js @@ -77,6 +77,8 @@ export function useCanvasEvent() { if (target.name === 'lengthText') { const x = target.left const y = target.top + target.lockMovementX = false + target.lockMovementY = false // Add a property to store the previous value const previousValue = target.text target.on('selected', (e) => {