addLengthText 필요 없는 polygon 추가

This commit is contained in:
hyojun.choi 2025-02-06 21:22:10 +09:00
parent 12d5ffeaf8
commit b50df4a231

View File

@ -248,7 +248,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
}, },
addLengthText() { addLengthText() {
if (['module', 'arrow'].includes(this.name)) { if ([POLYGON_TYPE.MODULE, 'arrow', POLYGON_TYPE.MODULE_SETUP_SURFACE, POLYGON_TYPE.OBJECT_SURFACE].includes(this.name)) {
return return
} }
this.canvas this.canvas