Fix performance issue when drawing ellipses and rectangles
This commit is contained in:
parent
566cb070a8
commit
50df97f03d
|
|
@ -1521,6 +1521,7 @@ class Shape extends BaseShape {
|
||||||
}
|
}
|
||||||
clear() {
|
clear() {
|
||||||
this.curves = []
|
this.curves = []
|
||||||
|
this.quadtree.clear()
|
||||||
}
|
}
|
||||||
copy(idx) {
|
copy(idx) {
|
||||||
let newShape = new Shape(this.startx, this.starty, {}, idx.slice(0,8)+this.idx.slice(8), this.shapeId)
|
let newShape = new Shape(this.startx, this.starty, {}, idx.slice(0,8)+this.idx.slice(8), this.shapeId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue