Prebuilt module for commit e2e024f8a5

This commit is contained in:
Paper.js Bot 2016-07-23 16:54:22 +00:00
parent ef33ac0580
commit 52defe7151
5 changed files with 19 additions and 28 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Jul 23 13:30:40 2016 +0200 * Date: Sat Jul 23 18:50:58 2016 +0200
* *
*** ***
* *
@ -9891,15 +9891,14 @@ PathItem.inject(new function() {
: Curve.getPoint(v, t)[dir ? 'y' : 'x'], : Curve.getPoint(v, t)[dir ? 'y' : 'x'],
winding = o0 > o3 ? 1 : -1, winding = o0 > o3 ? 1 : -1,
windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1, windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1,
a3Prev = vPrev[ia + 6], a3Prev = vPrev[ia + 6];
onCurve = false;
if (po !== o0) { if (po !== o0) {
if (a < paL) { if (a < paL) {
pathWindingL += winding; pathWindingL += winding;
} else if (a > paR) { } else if (a > paR) {
pathWindingR += winding; pathWindingR += winding;
} else { } else {
onCurve = true; onPath = true;
pathWindingL += winding; pathWindingL += winding;
pathWindingR += winding; pathWindingR += winding;
} }
@ -9911,7 +9910,7 @@ PathItem.inject(new function() {
pathWindingR += winding; pathWindingR += winding;
} }
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) { } else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
onCurve = true; onPath = true;
if (a3Prev < paL) { if (a3Prev < paL) {
pathWindingR += winding; pathWindingR += winding;
} else if (a3Prev > paR) { } else if (a3Prev > paR) {
@ -9919,9 +9918,7 @@ PathItem.inject(new function() {
} }
} }
vPrev = v; vPrev = v;
if (onCurve) return !dontFlip && a > paL && a < paR
onPath = true;
return onCurve && !dontFlip
&& Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0 && Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0
&& getWinding(point, curves, dir ? 0 : 1, true); && getWinding(point, curves, dir ? 0 : 1, true);
} }

13
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Jul 23 13:30:40 2016 +0200 * Date: Sat Jul 23 18:50:58 2016 +0200
* *
*** ***
* *
@ -9891,15 +9891,14 @@ PathItem.inject(new function() {
: Curve.getPoint(v, t)[dir ? 'y' : 'x'], : Curve.getPoint(v, t)[dir ? 'y' : 'x'],
winding = o0 > o3 ? 1 : -1, winding = o0 > o3 ? 1 : -1,
windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1, windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1,
a3Prev = vPrev[ia + 6], a3Prev = vPrev[ia + 6];
onCurve = false;
if (po !== o0) { if (po !== o0) {
if (a < paL) { if (a < paL) {
pathWindingL += winding; pathWindingL += winding;
} else if (a > paR) { } else if (a > paR) {
pathWindingR += winding; pathWindingR += winding;
} else { } else {
onCurve = true; onPath = true;
pathWindingL += winding; pathWindingL += winding;
pathWindingR += winding; pathWindingR += winding;
} }
@ -9911,7 +9910,7 @@ PathItem.inject(new function() {
pathWindingR += winding; pathWindingR += winding;
} }
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) { } else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
onCurve = true; onPath = true;
if (a3Prev < paL) { if (a3Prev < paL) {
pathWindingR += winding; pathWindingR += winding;
} else if (a3Prev > paR) { } else if (a3Prev > paR) {
@ -9919,9 +9918,7 @@ PathItem.inject(new function() {
} }
} }
vPrev = v; vPrev = v;
if (onCurve) return !dontFlip && a > paL && a < paR
onPath = true;
return onCurve && !dontFlip
&& Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0 && Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0
&& getWinding(point, curves, dir ? 0 : 1, true); && getWinding(point, curves, dir ? 0 : 1, true);
} }

File diff suppressed because one or more lines are too long

13
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Sat Jul 23 13:30:40 2016 +0200 * Date: Sat Jul 23 18:50:58 2016 +0200
* *
*** ***
* *
@ -9891,15 +9891,14 @@ PathItem.inject(new function() {
: Curve.getPoint(v, t)[dir ? 'y' : 'x'], : Curve.getPoint(v, t)[dir ? 'y' : 'x'],
winding = o0 > o3 ? 1 : -1, winding = o0 > o3 ? 1 : -1,
windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1, windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1,
a3Prev = vPrev[ia + 6], a3Prev = vPrev[ia + 6];
onCurve = false;
if (po !== o0) { if (po !== o0) {
if (a < paL) { if (a < paL) {
pathWindingL += winding; pathWindingL += winding;
} else if (a > paR) { } else if (a > paR) {
pathWindingR += winding; pathWindingR += winding;
} else { } else {
onCurve = true; onPath = true;
pathWindingL += winding; pathWindingL += winding;
pathWindingR += winding; pathWindingR += winding;
} }
@ -9911,7 +9910,7 @@ PathItem.inject(new function() {
pathWindingR += winding; pathWindingR += winding;
} }
} else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) { } else if (a3Prev < paL && a > paL || a3Prev > paR && a < paR) {
onCurve = true; onPath = true;
if (a3Prev < paL) { if (a3Prev < paL) {
pathWindingR += winding; pathWindingR += winding;
} else if (a3Prev > paR) { } else if (a3Prev > paR) {
@ -9919,9 +9918,7 @@ PathItem.inject(new function() {
} }
} }
vPrev = v; vPrev = v;
if (onCurve) return !dontFlip && a > paL && a < paR
onPath = true;
return onCurve && !dontFlip
&& Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0 && Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0
&& getWinding(point, curves, dir ? 0 : 1, true); && getWinding(point, curves, dir ? 0 : 1, true);
} }

File diff suppressed because one or more lines are too long