특정 이름은 길이 생성 안하도록 수정
This commit is contained in:
parent
a242ca0361
commit
756283205e
@ -248,6 +248,9 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
addLengthText() {
|
addLengthText() {
|
||||||
|
if (['module', 'arrow'].includes(this.name)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.canvas
|
this.canvas
|
||||||
?.getObjects()
|
?.getObjects()
|
||||||
.filter((obj) => obj.name === 'lengthText' && obj.parentId === this.id)
|
.filter((obj) => obj.name === 'lengthText' && obj.parentId === this.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user