From f6b586cb778a6efe7fc6d75d19338392065cc152 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Fri, 5 Jul 2024 16:56:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B0=EC=84=A0=20=EC=BB=A8=ED=8A=B8?= =?UTF-8?q?=EB=A1=A4=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QPolygon.js | 7 +++++++ 1 file changed, 7 insertions(+) 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) {