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 제거 // 기존 wallLine, roofBase 제거
/*canvas canvas
.getObjects() .getObjects()
.filter((obj) => obj.name === POLYGON_TYPE.WALL) .filter((obj) => obj.name === POLYGON_TYPE.WALL)
.forEach((line) => { .forEach((line) => {
canvas.remove(line) canvas.remove(line)
})*/ })
/*canvas canvas
.getObjects() .getObjects()
.filter((obj) => obj.name === POLYGON_TYPE.ROOF) .filter((obj) => obj.name === POLYGON_TYPE.ROOF && !obj.isFixed)
.forEach((obj) => { .forEach((obj) => {
canvas.remove(...obj.innerLines) canvas.remove(...obj.innerLines)
canvas.remove(obj) canvas.remove(obj)
})*/ })
const polygon = addPolygonByLines(outerLines, { name: POLYGON_TYPE.WALL, direction }) const polygon = addPolygonByLines(outerLines, { name: POLYGON_TYPE.WALL, direction })
polygon.lines = [...outerLines] polygon.lines = [...outerLines]