QPolygon setViewLengthText 수정
This commit is contained in:
parent
3804d612d4
commit
566de9b290
@ -693,9 +693,12 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
||||
this.wall = wall
|
||||
},
|
||||
setViewLengthText(isView) {
|
||||
this.texts.forEach((text) => {
|
||||
text.set({ visible: isView })
|
||||
})
|
||||
this.canvas
|
||||
?.getObjects()
|
||||
.filter((obj) => obj.name === 'lengthText' && obj.parent === this)
|
||||
.forEach((text) => {
|
||||
text.set({ visible: isView })
|
||||
})
|
||||
},
|
||||
divideLine() {
|
||||
splitPolygonWithLines(this)
|
||||
|
||||
@ -4605,6 +4605,7 @@ export function useMode() {
|
||||
})
|
||||
|
||||
canvas?.add(trestlePoly)
|
||||
trestlePoly.setViewLengthText(false)
|
||||
})
|
||||
removeHelpPointAndHelpLine()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user