Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 10, 2021
1 parent b9b1eb1 commit 7e9895e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/curve/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ class Bump {
}
case 1: this._point = 2; // proceed
default: {
if (this.dir === "x")
this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);
else
this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
if (this.dir === "x") this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);
else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
break;
}
}
Expand Down

0 comments on commit 7e9895e

Please sign in to comment.