mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-07 19:49:09 -04:00
Minor intersection refactoring clean up.
This commit is contained in:
parent
04452730dd
commit
4770cfe2f8
2 changed files with 7 additions and 4 deletions
src/path
|
@ -106,8 +106,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
var parts = Curve.subdivide(values1);
|
||||
Curve._getIntersections(parts[0], parts[1], curve1, curve1,
|
||||
locations, {
|
||||
// Only possible if there is only one curve:
|
||||
startConnected: length1 === 1,
|
||||
// Only possible if there is only one closed curve:
|
||||
startConnected: length1 === 1 && p1.equals(p2),
|
||||
// After splitting, the end is always connected:
|
||||
endConnected: true,
|
||||
reparametrize: function(t1, t2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue