fix된 지붕면은 제거 안하도록 수정

This commit is contained in:
hyojun.choi 2024-11-15 10:41:45 +09:00
parent ae8b838e4c
commit 7092a75518

View File

@ -377,20 +377,20 @@ export function useRoofShapeSetting(id) {
}
// 기존 wallLine, roofBase 제거
/*canvas
canvas
.getObjects()
.filter((obj) => obj.name === POLYGON_TYPE.WALL)
.forEach((line) => {
canvas.remove(line)
})*/
})
/*canvas
canvas
.getObjects()
.filter((obj) => obj.name === POLYGON_TYPE.ROOF)
.filter((obj) => obj.name === POLYGON_TYPE.ROOF && !obj.isFixed)
.forEach((obj) => {
canvas.remove(...obj.innerLines)
canvas.remove(obj)
})*/
})
const polygon = addPolygonByLines(outerLines, { name: POLYGON_TYPE.WALL, direction })
polygon.lines = [...outerLines]