From 50df97f03db270f08210fc1b37d6e2f2dced2563 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Wed, 18 Dec 2024 17:48:08 -0500 Subject: [PATCH] Fix performance issue when drawing ellipses and rectangles --- src/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.js b/src/main.js index 8201e9d..a272cba 100644 --- a/src/main.js +++ b/src/main.js @@ -1521,6 +1521,7 @@ class Shape extends BaseShape { } clear() { this.curves = [] + this.quadtree.clear() } copy(idx) { let newShape = new Shape(this.startx, this.starty, {}, idx.slice(0,8)+this.idx.slice(8), this.shapeId)