mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Address more pending TODOs.
This commit is contained in:
parent
7a95625a13
commit
169f18617c
2 changed files with 1 additions and 5 deletions
|
@ -1383,8 +1383,6 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
t2 = Curve.getParameterOf(v2, p2);
|
||||
if (t2 !== null && t2 >= (endConnected ? tMin : 0) &&
|
||||
t2 <= (startConnected ? tMax : 1)) {
|
||||
// TODO: Don't we need to check the range of t2 as well? Does it
|
||||
// also need startConnected / endConnected values?
|
||||
var renormalize = param.renormalize;
|
||||
if (renormalize) {
|
||||
var res = renormalize(t1, t2);
|
||||
|
@ -1405,8 +1403,6 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
// Link the two locations to each other.
|
||||
loc1._intersection = loc2;
|
||||
loc2._intersection = loc1;
|
||||
// TODO: Remove this once debug logging is removed.
|
||||
(flip ? loc1 : loc2)._other = true;
|
||||
if (!include || include(loc)) {
|
||||
CurveLocation.insert(locations, loc, true);
|
||||
}
|
||||
|
|
|
@ -384,7 +384,7 @@ PathItem.inject(new function() {
|
|||
// winding than equally dividing the curve chain, with the same
|
||||
// (amortised) time.
|
||||
for (var i = 0; i < 3; i++) {
|
||||
// Try the points at 1/4, 2/4 and 3/4 of the total length:
|
||||
// Sample the points at 1/4, 2/4 and 3/4 of the total length:
|
||||
var length = totalLength * (i + 1) / 4;
|
||||
for (var k = 0, m = chain.length; k < m; k++) {
|
||||
var node = chain[k],
|
||||
|
|
Loading…
Reference in a new issue