mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Rename Curve.getCurvesIntersections() to Curve. getIntersections()
This commit is contained in:
parent
bd98e067c3
commit
2ead16ca89
2 changed files with 3 additions and 4 deletions
|
@ -2090,7 +2090,7 @@ new function() { // Scope for bezier intersection using fat-line clipping
|
|||
return locations;
|
||||
}
|
||||
|
||||
function getCurvesIntersections(curves1, curves2, include, matrix1, matrix2,
|
||||
function getIntersections(curves1, curves2, include, matrix1, matrix2,
|
||||
_returnFirst) {
|
||||
var self = !curves2;
|
||||
if (self)
|
||||
|
@ -2258,10 +2258,9 @@ new function() { // Scope for bezier intersection using fat-line clipping
|
|||
},
|
||||
|
||||
statics: /** @lends Curve */{
|
||||
getCurveIntersections: getCurveIntersections,
|
||||
getCurvesIntersections: getCurvesIntersections,
|
||||
getOverlaps: getOverlaps,
|
||||
// Exposed for use in boolean offsetting
|
||||
getIntersections: getIntersections,
|
||||
getCurveLineIntersections: getCurveLineIntersections
|
||||
}
|
||||
};
|
||||
|
|
|
@ -331,7 +331,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
// First check the bounds of the two paths. If they don't intersect,
|
||||
// we don't need to iterate through their curves.
|
||||
return self || this.getBounds(matrix1).touches(path.getBounds(matrix2))
|
||||
? Curve.getCurvesIntersections(
|
||||
? Curve.getIntersections(
|
||||
this.getCurves(), !self && path.getCurves(), include,
|
||||
matrix1, matrix2, _returnFirst)
|
||||
: [];
|
||||
|
|
Loading…
Reference in a new issue