우선 컨트롤 제거
This commit is contained in:
parent
394136af4c
commit
f6b586cb77
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user