Prebuilt module for commit fb4a0b1fe0

This commit is contained in:
Paper.js Bot 2017-02-04 20:55:39 +00:00
parent 4cd7bcaf3e
commit 84bdf9d4a4
5 changed files with 59 additions and 71 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Feb 4 20:50:22 2017 +0100 * Date: Sat Feb 4 21:38:56 2017 +0100
* *
*** ***
* *
@ -10034,30 +10034,26 @@ PathItem.inject(new function() {
} else if (a > paR) { } else if (a > paR) {
windingR += winding; windingR += winding;
} else { } else {
windingL += winding;
windingR += winding;
onPath = true; onPath = true;
} }
} else if (winding !== windingPrev) {
if (a3Prev < paR) {
windingL += winding;
}
if (a3Prev > paL) {
windingR += winding;
}
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
onPath = true;
if (a3Prev < paL) {
windingR += winding;
} else if (a3Prev > paR) {
windingL += winding;
}
}
if (po !== o0) {
if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) { if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) {
quality /= 2; quality /= 2;
} }
} else { } else {
if (winding !== windingPrev) {
if (a3Prev < paR) {
windingL += winding;
} else if (a3Prev > paL) {
windingR += winding;
}
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
if (a3Prev < paL) {
windingR += winding;
} else if (a3Prev > paR) {
windingL += winding;
}
onPath = true;
}
quality = 0; quality = 0;
} }
vPrev = v; vPrev = v;
@ -10132,8 +10128,8 @@ PathItem.inject(new function() {
vClose = null; vClose = null;
} }
} }
windingL = windingL && (2 - abs(windingL) % 2); windingL = abs(windingL);
windingR = windingR && (2 - abs(windingR) % 2); windingR = abs(windingR);
return { return {
winding: max(windingL, windingR), winding: max(windingL, windingR),
windingL: windingL, windingL: windingL,

38
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Feb 4 20:50:22 2017 +0100 * Date: Sat Feb 4 21:38:56 2017 +0100
* *
*** ***
* *
@ -10034,30 +10034,26 @@ PathItem.inject(new function() {
} else if (a > paR) { } else if (a > paR) {
windingR += winding; windingR += winding;
} else { } else {
windingL += winding;
windingR += winding;
onPath = true; onPath = true;
} }
} else if (winding !== windingPrev) {
if (a3Prev < paR) {
windingL += winding;
}
if (a3Prev > paL) {
windingR += winding;
}
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
onPath = true;
if (a3Prev < paL) {
windingR += winding;
} else if (a3Prev > paR) {
windingL += winding;
}
}
if (po !== o0) {
if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) { if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) {
quality /= 2; quality /= 2;
} }
} else { } else {
if (winding !== windingPrev) {
if (a3Prev < paR) {
windingL += winding;
} else if (a3Prev > paL) {
windingR += winding;
}
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
if (a3Prev < paL) {
windingR += winding;
} else if (a3Prev > paR) {
windingL += winding;
}
onPath = true;
}
quality = 0; quality = 0;
} }
vPrev = v; vPrev = v;
@ -10132,8 +10128,8 @@ PathItem.inject(new function() {
vClose = null; vClose = null;
} }
} }
windingL = windingL && (2 - abs(windingL) % 2); windingL = abs(windingL);
windingR = windingR && (2 - abs(windingR) % 2); windingR = abs(windingR);
return { return {
winding: max(windingL, windingR), winding: max(windingL, windingR),
windingL: windingL, windingL: windingL,

File diff suppressed because one or more lines are too long

38
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Feb 4 20:50:22 2017 +0100 * Date: Sat Feb 4 21:38:56 2017 +0100
* *
*** ***
* *
@ -10034,30 +10034,26 @@ PathItem.inject(new function() {
} else if (a > paR) { } else if (a > paR) {
windingR += winding; windingR += winding;
} else { } else {
windingL += winding;
windingR += winding;
onPath = true; onPath = true;
} }
} else if (winding !== windingPrev) {
if (a3Prev < paR) {
windingL += winding;
}
if (a3Prev > paL) {
windingR += winding;
}
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
onPath = true;
if (a3Prev < paL) {
windingR += winding;
} else if (a3Prev > paR) {
windingL += winding;
}
}
if (po !== o0) {
if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) { if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) {
quality /= 2; quality /= 2;
} }
} else { } else {
if (winding !== windingPrev) {
if (a3Prev < paR) {
windingL += winding;
} else if (a3Prev > paL) {
windingR += winding;
}
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
if (a3Prev < paL) {
windingR += winding;
} else if (a3Prev > paR) {
windingL += winding;
}
onPath = true;
}
quality = 0; quality = 0;
} }
vPrev = v; vPrev = v;
@ -10132,8 +10128,8 @@ PathItem.inject(new function() {
vClose = null; vClose = null;
} }
} }
windingL = windingL && (2 - abs(windingL) % 2); windingL = abs(windingL);
windingR = windingR && (2 - abs(windingR) % 2); windingR = abs(windingR);
return { return {
winding: max(windingL, windingR), winding: max(windingL, windingR),
windingL: windingL, windingL: windingL,

File diff suppressed because one or more lines are too long