mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Minor simplification.
This commit is contained in:
parent
515d4ff93d
commit
cf5bf38c3b
1 changed files with 3 additions and 5 deletions
|
@ -132,15 +132,13 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
// self intersecting.
|
||||
Curve.getIntersections(
|
||||
values1, values2[j], curve1, curve2, locations,
|
||||
self ? {
|
||||
{
|
||||
include: include,
|
||||
// Do not compare indices here to determine connection,
|
||||
// since one array of curves can contain curves from
|
||||
// separate sup-paths of a compound path.
|
||||
startConnected: curve1.getPrevious() === curve2,
|
||||
endConnected: curve1.getNext() === curve2
|
||||
} : {
|
||||
include: include
|
||||
startConnected: self && curve1.getPrevious() === curve2,
|
||||
endConnected: self && curve1.getNext() === curve2
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue