mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Adjust comments to match new implementation
This commit is contained in:
parent
e2eaf87fcb
commit
406e6c95b9
1 changed files with 3 additions and 3 deletions
|
@ -427,14 +427,14 @@ PathItem.inject(new function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Use the on-curve windings if no other intersections were
|
// Use the on-curve windings if no other intersections were
|
||||||
// found or if they canceled each other.
|
// found or if they canceled each other. On single paths
|
||||||
|
// this ensures that the overally winding is 1 if the
|
||||||
|
// point was on a monotonic curve.
|
||||||
if (windLeft === 0 && windRight === 0) {
|
if (windLeft === 0 && windRight === 0) {
|
||||||
windLeft = windLeftOnCurve;
|
windLeft = windLeftOnCurve;
|
||||||
windRight = windRightOnCurve;
|
windRight = windRightOnCurve;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If the point was on a monotonic curve, we are on the path by
|
|
||||||
// definition. In this case ensure that the winding is at least 1.
|
|
||||||
return Math.max(abs(windLeft), abs(windRight));
|
return Math.max(abs(windLeft), abs(windRight));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue