mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Minor code cleanup.
This commit is contained in:
parent
4588a90952
commit
b23c272d69
1 changed files with 5 additions and 6 deletions
|
@ -330,12 +330,11 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
: (_matrix || path._matrix)._orNullIfIdentity();
|
: (_matrix || path._matrix)._orNullIfIdentity();
|
||||||
// First check the bounds of the two paths. If they don't intersect,
|
// First check the bounds of the two paths. If they don't intersect,
|
||||||
// we don't need to iterate through their curves.
|
// we don't need to iterate through their curves.
|
||||||
if (!self && !this.getBounds(matrix1).touches(path.getBounds(matrix2)))
|
return self || this.getBounds(matrix1).touches(path.getBounds(matrix2))
|
||||||
return [];
|
? Curve.getCurvesIntersections(
|
||||||
var curves1 = this.getCurves(),
|
this.getCurves(), !self && path.getCurves(), include,
|
||||||
curves2 = !self && path.getCurves();
|
matrix1, matrix2, _returnFirst)
|
||||||
return Curve.getCurvesIntersections(curves1, curves2, include,
|
: [];
|
||||||
matrix1, matrix2, _returnFirst);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue