특정 이름은 길이 생성 안하도록 수정

This commit is contained in:
hyojun.choi 2025-02-06 20:52:03 +09:00
parent a242ca0361
commit 756283205e

View File

@ -248,6 +248,9 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
},
addLengthText() {
if (['module', 'arrow'].includes(this.name)) {
return
}
this.canvas
?.getObjects()
.filter((obj) => obj.name === 'lengthText' && obj.parentId === this.id)