diff --git a/src/hooks/roofcover/useRoofShapeSetting.js b/src/hooks/roofcover/useRoofShapeSetting.js index 69defd9d..edf0e7b6 100644 --- a/src/hooks/roofcover/useRoofShapeSetting.js +++ b/src/hooks/roofcover/useRoofShapeSetting.js @@ -241,7 +241,11 @@ export function useRoofShapeSetting(id) { outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine') let isValid = outerLines.every((line) => line.attributes?.isFixed) if (!isValid) { - swalFire({ text: getMessage('modal.canvas.setting.roofline.properties.setting.not.setting'), type: 'alert', icon: 'warning' }) + swalFire({ + text: getMessage('modal.canvas.setting.roofline.properties.setting.not.setting'), + type: 'alert', + icon: 'warning', + }) return } const pitch = outerLines.find((line) => line.attributes.type === LINE_TYPE.WALLLINE.SHED)?.attributes.pitch @@ -497,7 +501,13 @@ export function useRoofShapeSetting(id) { canvas.remove(obj) }) - const polygon = addPolygonByLines(outerLines, { name: POLYGON_TYPE.WALL, direction, originX: 'center', originY: 'center' }) + const polygon = addPolygonByLines(outerLines, { + name: POLYGON_TYPE.WALL, + direction, + originX: 'center', + originY: 'center', + }) + polygon.setViewLengthText(false) polygon.lines = [...outerLines] addPitchTextsByOuterLines()