mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Minor syntax fixes.
This commit is contained in:
parent
3a7547a255
commit
d70c9b0464
2 changed files with 2 additions and 2 deletions
|
@ -2104,7 +2104,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
||||||
// and (through, to), and intersect them to get the center
|
// and (through, to), and intersect them to get the center
|
||||||
var l1 = new Line(from.add(through).divide(2),
|
var l1 = new Line(from.add(through).divide(2),
|
||||||
through.subtract(from).rotate(90)),
|
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)),
|
to.subtract(through).rotate(90)),
|
||||||
center = l1.intersect(l2),
|
center = l1.intersect(l2),
|
||||||
line = new Line(from, to, true),
|
line = new Line(from, to, true),
|
||||||
|
|
|
@ -175,7 +175,7 @@ var PathItem = this.PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smooth bezier curves without changing the amount of segments or their
|
* Smooth bezier curves without changing the amount of segments or their
|
||||||
|
|
Loading…
Reference in a new issue