mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Prebuilt module for commit e2e024f8a5
This commit is contained in:
parent
ef33ac0580
commit
52defe7151
5 changed files with 19 additions and 28 deletions
13
dist/docs/assets/js/paper.js
vendored
13
dist/docs/assets/js/paper.js
vendored
|
@ -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
13
dist/paper-core.js
vendored
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
4
dist/paper-core.min.js
vendored
4
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
13
dist/paper-full.js
vendored
13
dist/paper-full.js
vendored
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
4
dist/paper-full.min.js
vendored
4
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue