diff --git a/src/path/Path.js b/src/path/Path.js index 6f8f3b85..2993b114 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -2104,7 +2104,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ // and (through, to), and intersect them to get the center var l1 = new Line(from.add(through).divide(2), through.subtract(from).rotate(90)), - l2 = new Line(through.add(to).divide(2), + l2 = new Line(through.add(to).divide(2), to.subtract(through).rotate(90)), center = l1.intersect(l2), line = new Line(from, to, true), diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 2d054f83..2568de87 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -175,7 +175,7 @@ var PathItem = this.PathItem = Item.extend(/** @lends PathItem# */{ break; } } - }, + } /** * Smooth bezier curves without changing the amount of segments or their