외벽선 삭제 시 삭제 안되는 현상 수정
This commit is contained in:
parent
48c75273a4
commit
68364d6e27
@ -330,10 +330,14 @@ export function useRoofFn() {
|
||||
const allRoofObject = canvas
|
||||
.getObjects()
|
||||
.filter((obj) => /*obj !== roof && obj !== wall &&*/ obj.attributes?.roofId === roof.id || obj.parentId === roof.id || obj.parentId === wall.id)
|
||||
const auxilaryObject = canvas.getObjects().filter((obj) => obj.name === 'auxiliaryLine' && !obj.isAuxiliaryFixed)
|
||||
|
||||
allRoofObject.forEach((obj) => {
|
||||
canvas.remove(obj)
|
||||
})
|
||||
auxilaryObject.forEach((obj) => {
|
||||
canvas.remove(obj)
|
||||
})
|
||||
|
||||
canvas.renderAll()
|
||||
resetPoints()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user