mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Minor comment cleanup.
This commit is contained in:
parent
47364f88a6
commit
b85fc988de
1 changed files with 7 additions and 6 deletions
|
@ -550,20 +550,21 @@ PathItem.inject(new function() {
|
||||||
windingR += winding;
|
windingR += winding;
|
||||||
}
|
}
|
||||||
} else if (a0 != a3Prev) {
|
} else if (a0 != a3Prev) {
|
||||||
// A horizontal curve is between current and previous
|
// Handle a horizontal curve between the current and
|
||||||
// non-horizontal curve
|
// previous non-horizontal curve. See
|
||||||
|
// #1261#issuecomment-282726147 for a detailed explanation:
|
||||||
if (a3Prev < paR && a > paR) {
|
if (a3Prev < paR && a > paR) {
|
||||||
// Right winding was not added before, so add it now
|
// Right winding was not added before, so add it now.
|
||||||
windingR += winding;
|
windingR += winding;
|
||||||
onPath = true;
|
onPath = true;
|
||||||
} else if (a3Prev > paL && a < paL) {
|
} else if (a3Prev > paL && a < paL) {
|
||||||
// Left winding was not added before, so add it now
|
// Left winding was not added before, so add it now.
|
||||||
windingL += winding;
|
windingL += winding;
|
||||||
onPath = true;
|
onPath = true;
|
||||||
}
|
}
|
||||||
// TODO: Determine how to handle quality when curve is crossed
|
|
||||||
// at starting point. Do we always need to set to 0?
|
|
||||||
}
|
}
|
||||||
|
// TODO: Determine how to handle quality when curve is crossed
|
||||||
|
// at starting point. Do we always need to set to 0?
|
||||||
quality = 0;
|
quality = 0;
|
||||||
}
|
}
|
||||||
vPrev = v;
|
vPrev = v;
|
||||||
|
|
Loading…
Reference in a new issue