QPolygon제거 시 엮여있는 화살표와 화살표 방향 텍스트 제거
This commit is contained in:
parent
b81d695898
commit
4d34dabe0e
@ -147,6 +147,17 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
|||||||
this.canvas.remove(text)
|
this.canvas.remove(text)
|
||||||
})
|
})
|
||||||
this.texts = null
|
this.texts = null
|
||||||
|
|
||||||
|
if (this.arrow) {
|
||||||
|
this.canvas.remove(this.arrow)
|
||||||
|
this.canvas
|
||||||
|
.getObjects()
|
||||||
|
.filter((obj) => obj.name === 'directionText' && obj.parent === this.arrow)
|
||||||
|
.forEach((text) => {
|
||||||
|
this.canvas.remove(text)
|
||||||
|
})
|
||||||
|
this.arrow = null
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// polygon.fillCell({ width: 50, height: 30, padding: 10 })
|
// polygon.fillCell({ width: 50, height: 30, padding: 10 })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user