mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Some minor clean-ups for 55cf0bc1c7
.
This commit is contained in:
parent
55cf0bc1c7
commit
26761f17a1
1 changed files with 2 additions and 2 deletions
|
@ -527,7 +527,7 @@ PathItem.inject(new function() {
|
||||||
start,
|
start,
|
||||||
otherStart,
|
otherStart,
|
||||||
operator = operators[operation],
|
operator = operators[operation],
|
||||||
// Adjust winding contributions for specific operations on overlaps:
|
// Adjust winding contributions for unite operation on overlaps:
|
||||||
overlapWinding = operation === 'unite' && { 1: 2 };
|
overlapWinding = operation === 'unite' && { 1: 2 };
|
||||||
|
|
||||||
function isValid(seg, adjusted) {
|
function isValid(seg, adjusted) {
|
||||||
|
@ -543,7 +543,7 @@ PathItem.inject(new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isStart(seg) {
|
function isStart(seg) {
|
||||||
return seg && (seg === start || seg === otherStart);
|
return seg === start || seg === otherStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are multiple possible intersections, find the one that's
|
// If there are multiple possible intersections, find the one that's
|
||||||
|
|
Loading…
Reference in a new issue