Fix performance issue when drawing ellipses and rectangles

This commit is contained in:
Skyler Lehmkuhl 2024-12-18 17:48:08 -05:00
parent 566cb070a8
commit 50df97f03d
1 changed files with 1 additions and 0 deletions

View File

@ -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)