mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Fix all accidental non-breaking spaces.
This commit is contained in:
parent
530b8b7bc8
commit
b68be09c87
2 changed files with 6 additions and 6 deletions
|
@ -504,7 +504,7 @@ PathItem.inject(new function() {
|
||||||
+ ' pt: ' + seg._point
|
+ ' pt: ' + seg._point
|
||||||
+ ' ov: ' + !!(inter && inter._overlap)
|
+ ' ov: ' + !!(inter && inter._overlap)
|
||||||
+ ' wi: ' + seg._winding
|
+ ' wi: ' + seg._winding
|
||||||
, path.strokeColor || path.fillColor || 'black');
|
, path.strokeColor || path.fillColor || 'black');
|
||||||
}
|
}
|
||||||
|
|
||||||
var paths = [],
|
var paths = [],
|
||||||
|
@ -542,7 +542,7 @@ PathItem.inject(new function() {
|
||||||
+ ', seg vis:' + !!seg._visited
|
+ ', seg vis:' + !!seg._visited
|
||||||
+ ', next vis:' + !!next._visited
|
+ ', next vis:' + !!next._visited
|
||||||
+ ', next start:' + (next === start
|
+ ', next start:' + (next === start
|
||||||
|| next === otherStart)
|
|| next === otherStart)
|
||||||
+ ', seg op:' + isValid(seg, true)
|
+ ', seg op:' + isValid(seg, true)
|
||||||
+ ', next op:' + isValid(next)
|
+ ', next op:' + isValid(next)
|
||||||
+ ', next: ' + (!!inter._next));
|
+ ', next: ' + (!!inter._next));
|
||||||
|
@ -551,7 +551,7 @@ PathItem.inject(new function() {
|
||||||
// bringing us back to the beginning, and are both part of the
|
// bringing us back to the beginning, and are both part of the
|
||||||
// boolean result.
|
// boolean result.
|
||||||
return !seg._visited && (!next._visited
|
return !seg._visited && (!next._visited
|
||||||
|| next === start || next === otherStart)
|
|| next === start || next === otherStart)
|
||||||
&& (!operator // Self-intersection doesn't need isValid() calls
|
&& (!operator // Self-intersection doesn't need isValid() calls
|
||||||
// NOTE: We need to use the unadjusted winding here since an
|
// NOTE: We need to use the unadjusted winding here since an
|
||||||
// overlap crossing might have brought us here, in which
|
// overlap crossing might have brought us here, in which
|
||||||
|
@ -677,7 +677,7 @@ PathItem.inject(new function() {
|
||||||
seg._visited = added = true;
|
seg._visited = added = true;
|
||||||
seg = seg.getNext();
|
seg = seg.getNext();
|
||||||
}
|
}
|
||||||
if (!path || !added)
|
if (!path || !added)
|
||||||
continue;
|
continue;
|
||||||
// Finish with closing the paths if necessary, correctly linking up
|
// Finish with closing the paths if necessary, correctly linking up
|
||||||
// curves etc.
|
// curves etc.
|
||||||
|
@ -801,7 +801,7 @@ PathItem.inject(new function() {
|
||||||
window.reportWindings = false;
|
window.reportWindings = false;
|
||||||
window.reportIntersections = false;
|
window.reportIntersections = false;
|
||||||
splitPath(CurveLocation.expand(crossings));
|
splitPath(CurveLocation.expand(crossings));
|
||||||
var paths = this._children || [this],
|
var paths = this._children || [this],
|
||||||
segments = [];
|
segments = [];
|
||||||
for (var i = 0, l = paths.length; i < l; i++) {
|
for (var i = 0, l = paths.length; i < l; i++) {
|
||||||
segments.push.apply(segments, paths[i]._segments);
|
segments.push.apply(segments, paths[i]._segments);
|
||||||
|
|
|
@ -145,7 +145,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
var locations = this.getIntersections(path);
|
var locations = this.getIntersections(path);
|
||||||
for (var i = locations.length - 1; i >= 0; i--) {
|
for (var i = locations.length - 1; i >= 0; i--) {
|
||||||
// TODO: An overlap could be either a crossing or a tangent!
|
// TODO: An overlap could be either a crossing or a tangent!
|
||||||
if (!locations[i].isCrossing() && !locations[i]._overlap)
|
if (!locations[i].isCrossing() && !locations[i]._overlap)
|
||||||
locations.splice(i, 1);
|
locations.splice(i, 1);
|
||||||
}
|
}
|
||||||
return locations;
|
return locations;
|
||||||
|
|
Loading…
Reference in a new issue