diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index 75074ad8..0a470587 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -19,10 +19,12 @@ export default class QPolygon extends fabric.Group { const polygon = new fabric.Polygon(points, options) super([polygon], {}) + this.fontSize = options.fontSize this.points = points this.polygon = polygon this.canvas = canvas + this.#init() this.#addEvent() } @@ -35,6 +37,11 @@ export default class QPolygon extends fabric.Group { this.on('scaling', (e) => { this.#updateLengthText() }) + + this.on('selected', function () { + // 모든 컨트롤 떼기 + this.controls = [] + }) } setFontSize(fontSize) {