mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Prebuilt module for commit 53269ab169
This commit is contained in:
parent
a069f9bfee
commit
4dceb6a9ba
5 changed files with 109 additions and 127 deletions
24
dist/docs/assets/js/paper.js
vendored
24
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Feb 2 21:43:44 2016 +0100
|
||||
* Date: Tue Feb 2 21:45:04 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9383,21 +9383,18 @@ PathItem.inject(new function() {
|
|||
} else {
|
||||
var xBefore = px - epsilon,
|
||||
xAfter = px + epsilon,
|
||||
start,
|
||||
end = 0;
|
||||
while (end < length) {
|
||||
start = end;
|
||||
var curve = curves[start],
|
||||
last = curve.last,
|
||||
prevWinding = last.winding,
|
||||
prevXEnd = last.values[6];
|
||||
end = start + curve.length;
|
||||
for (var i = start; i < end; i++) {
|
||||
prevWinding,
|
||||
prevXEnd;
|
||||
for (var i = 0; i < length; i++) {
|
||||
var curve = curves[i],
|
||||
winding = curve.winding,
|
||||
values = curve.values,
|
||||
yStart = values[1],
|
||||
yEnd = values[7];
|
||||
if (curve.last) {
|
||||
prevWinding = curve.last.winding;
|
||||
prevXEnd = curve.last.values[6];
|
||||
}
|
||||
if (winding && (py >= yStart && py <= yEnd
|
||||
|| py >= yEnd && py <= yStart)) {
|
||||
var x = py === yStart ? values[0]
|
||||
|
@ -9424,7 +9421,6 @@ PathItem.inject(new function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Math.max(abs(windLeft), abs(windRight));
|
||||
}
|
||||
|
||||
|
@ -9777,9 +9773,7 @@ Path.inject({
|
|||
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
|
||||
}
|
||||
if (monoCurves.length > 0) {
|
||||
var first = monoCurves[0];
|
||||
first.length = monoCurves.length;
|
||||
first.last = last;
|
||||
monoCurves[0].last = last;
|
||||
}
|
||||
}
|
||||
return monoCurves;
|
||||
|
|
24
dist/paper-core.js
vendored
24
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Feb 2 21:43:44 2016 +0100
|
||||
* Date: Tue Feb 2 21:45:04 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9383,21 +9383,18 @@ PathItem.inject(new function() {
|
|||
} else {
|
||||
var xBefore = px - epsilon,
|
||||
xAfter = px + epsilon,
|
||||
start,
|
||||
end = 0;
|
||||
while (end < length) {
|
||||
start = end;
|
||||
var curve = curves[start],
|
||||
last = curve.last,
|
||||
prevWinding = last.winding,
|
||||
prevXEnd = last.values[6];
|
||||
end = start + curve.length;
|
||||
for (var i = start; i < end; i++) {
|
||||
prevWinding,
|
||||
prevXEnd;
|
||||
for (var i = 0; i < length; i++) {
|
||||
var curve = curves[i],
|
||||
winding = curve.winding,
|
||||
values = curve.values,
|
||||
yStart = values[1],
|
||||
yEnd = values[7];
|
||||
if (curve.last) {
|
||||
prevWinding = curve.last.winding;
|
||||
prevXEnd = curve.last.values[6];
|
||||
}
|
||||
if (winding && (py >= yStart && py <= yEnd
|
||||
|| py >= yEnd && py <= yStart)) {
|
||||
var x = py === yStart ? values[0]
|
||||
|
@ -9424,7 +9421,6 @@ PathItem.inject(new function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Math.max(abs(windLeft), abs(windRight));
|
||||
}
|
||||
|
||||
|
@ -9777,9 +9773,7 @@ Path.inject({
|
|||
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
|
||||
}
|
||||
if (monoCurves.length > 0) {
|
||||
var first = monoCurves[0];
|
||||
first.length = monoCurves.length;
|
||||
first.last = last;
|
||||
monoCurves[0].last = last;
|
||||
}
|
||||
}
|
||||
return monoCurves;
|
||||
|
|
6
dist/paper-core.min.js
vendored
6
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
24
dist/paper-full.js
vendored
24
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Feb 2 21:43:44 2016 +0100
|
||||
* Date: Tue Feb 2 21:45:04 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -9383,21 +9383,18 @@ PathItem.inject(new function() {
|
|||
} else {
|
||||
var xBefore = px - epsilon,
|
||||
xAfter = px + epsilon,
|
||||
start,
|
||||
end = 0;
|
||||
while (end < length) {
|
||||
start = end;
|
||||
var curve = curves[start],
|
||||
last = curve.last,
|
||||
prevWinding = last.winding,
|
||||
prevXEnd = last.values[6];
|
||||
end = start + curve.length;
|
||||
for (var i = start; i < end; i++) {
|
||||
prevWinding,
|
||||
prevXEnd;
|
||||
for (var i = 0; i < length; i++) {
|
||||
var curve = curves[i],
|
||||
winding = curve.winding,
|
||||
values = curve.values,
|
||||
yStart = values[1],
|
||||
yEnd = values[7];
|
||||
if (curve.last) {
|
||||
prevWinding = curve.last.winding;
|
||||
prevXEnd = curve.last.values[6];
|
||||
}
|
||||
if (winding && (py >= yStart && py <= yEnd
|
||||
|| py >= yEnd && py <= yStart)) {
|
||||
var x = py === yStart ? values[0]
|
||||
|
@ -9424,7 +9421,6 @@ PathItem.inject(new function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Math.max(abs(windLeft), abs(windRight));
|
||||
}
|
||||
|
||||
|
@ -9777,9 +9773,7 @@ Path.inject({
|
|||
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
|
||||
}
|
||||
if (monoCurves.length > 0) {
|
||||
var first = monoCurves[0];
|
||||
first.length = monoCurves.length;
|
||||
first.last = last;
|
||||
monoCurves[0].last = last;
|
||||
}
|
||||
}
|
||||
return monoCurves;
|
||||
|
|
8
dist/paper-full.min.js
vendored
8
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue