fix lines always highlighting for ellipses
This commit is contained in:
parent
9aa32446cc
commit
0bb5d11141
|
|
@ -1044,6 +1044,9 @@ class Shape extends BaseShape {
|
||||||
this.inProgress = true
|
this.inProgress = true
|
||||||
}
|
}
|
||||||
addCurve(curve) {
|
addCurve(curve) {
|
||||||
|
if (curve.color == undefined) {
|
||||||
|
curve.color = context.strokeStyle
|
||||||
|
}
|
||||||
this.curves.push(curve)
|
this.curves.push(curve)
|
||||||
this.quadtree.insert(curve, this.curves.length - 1)
|
this.quadtree.insert(curve, this.curves.length - 1)
|
||||||
growBoundingBox(this.boundingBox, curve.bbox())
|
growBoundingBox(this.boundingBox, curve.bbox())
|
||||||
|
|
@ -2316,8 +2319,8 @@ function stage() {
|
||||||
midX - ellipseConst * xDiff, context.activeShape.starty,
|
midX - ellipseConst * xDiff, context.activeShape.starty,
|
||||||
midX, context.activeShape.starty
|
midX, context.activeShape.starty
|
||||||
))
|
))
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case "select":
|
case "select":
|
||||||
if (context.dragging) {
|
if (context.dragging) {
|
||||||
if (context.activeVertex) {
|
if (context.activeVertex) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue