오류 수정
This commit is contained in:
parent
8412462a8b
commit
adc0c41a67
@ -38,12 +38,12 @@ export const useLine = () => {
|
|||||||
line.set({
|
line.set({
|
||||||
visible: false,
|
visible: false,
|
||||||
})
|
})
|
||||||
canvas
|
const obj = canvas?.getObjects().find((obj) => obj.parentId === line.id)
|
||||||
?.getObjects()
|
if (obj) {
|
||||||
.find((obj) => obj.parentId === line.id)
|
obj.set({
|
||||||
.set({
|
|
||||||
visible: false,
|
visible: false,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
canvas?.renderAll()
|
canvas?.renderAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1110,7 +1110,7 @@ export const usePolygon = () => {
|
|||||||
defense = 'north'
|
defense = 'north'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
pitch = polygon.lines[index].attributes?.pitch ?? 0
|
pitch = polygon.lines[index]?.attributes?.pitch ?? 0
|
||||||
|
|
||||||
const roof = new QPolygon(roofPoint, {
|
const roof = new QPolygon(roofPoint, {
|
||||||
fontSize: polygon.fontSize,
|
fontSize: polygon.fontSize,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user