From fbc519573b1dd90deee1aa11eaaf2779126bdb56 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 8 Jul 2024 10:07:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B0=EC=84=A0=20=ED=9A=8C=EC=A0=84=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QPolygon.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index ed879b8b..a13a69d6 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -40,7 +40,12 @@ export default class QPolygon extends fabric.Group { this.on('selected', function () { // 모든 컨트롤 떼기 - this.controls = [] + + Object.keys(this.controls).forEach((controlKey) => { + if (controlKey !== 'mtr') { + this.setControlVisible(controlKey, false) + } + }) }) }