From 0bb5d111418874ac919cdc691a61b54cd294e431 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Thu, 5 Dec 2024 13:21:57 -0500 Subject: [PATCH] fix lines always highlighting for ellipses --- src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 96a717d..7979751 100644 --- a/src/main.js +++ b/src/main.js @@ -1044,6 +1044,9 @@ class Shape extends BaseShape { this.inProgress = true } addCurve(curve) { + if (curve.color == undefined) { + curve.color = context.strokeStyle + } this.curves.push(curve) this.quadtree.insert(curve, this.curves.length - 1) growBoundingBox(this.boundingBox, curve.bbox()) @@ -2316,8 +2319,8 @@ function stage() { midX - ellipseConst * xDiff, context.activeShape.starty, midX, context.activeShape.starty )) - break; } + break; case "select": if (context.dragging) { if (context.activeVertex) {