fix lines always highlighting for ellipses

This commit is contained in:
Skyler Lehmkuhl 2024-12-05 13:21:57 -05:00
parent 9aa32446cc
commit 0bb5d11141
1 changed files with 4 additions and 1 deletions

View File

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