Prebuilt module for commit 53269ab169

This commit is contained in:
Paper.js Bot 2016-02-02 20:47:37 +00:00
parent a069f9bfee
commit 4dceb6a9ba
5 changed files with 109 additions and 127 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * 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 { } else {
var xBefore = px - epsilon, var xBefore = px - epsilon,
xAfter = px + epsilon, xAfter = px + epsilon,
start, prevWinding,
end = 0; prevXEnd;
while (end < length) { for (var i = 0; i < length; i++) {
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++) {
var curve = curves[i], var curve = curves[i],
winding = curve.winding, winding = curve.winding,
values = curve.values, values = curve.values,
yStart = values[1], yStart = values[1],
yEnd = values[7]; yEnd = values[7];
if (curve.last) {
prevWinding = curve.last.winding;
prevXEnd = curve.last.values[6];
}
if (winding && (py >= yStart && py <= yEnd if (winding && (py >= yStart && py <= yEnd
|| py >= yEnd && py <= yStart)) { || py >= yEnd && py <= yStart)) {
var x = py === yStart ? values[0] var x = py === yStart ? values[0]
@ -9424,7 +9421,6 @@ PathItem.inject(new function() {
} }
} }
} }
}
return Math.max(abs(windLeft), abs(windRight)); return Math.max(abs(windLeft), abs(windRight));
} }
@ -9777,9 +9773,7 @@ Path.inject({
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]); handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
} }
if (monoCurves.length > 0) { if (monoCurves.length > 0) {
var first = monoCurves[0]; monoCurves[0].last = last;
first.length = monoCurves.length;
first.last = last;
} }
} }
return monoCurves; return monoCurves;

24
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * 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 { } else {
var xBefore = px - epsilon, var xBefore = px - epsilon,
xAfter = px + epsilon, xAfter = px + epsilon,
start, prevWinding,
end = 0; prevXEnd;
while (end < length) { for (var i = 0; i < length; i++) {
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++) {
var curve = curves[i], var curve = curves[i],
winding = curve.winding, winding = curve.winding,
values = curve.values, values = curve.values,
yStart = values[1], yStart = values[1],
yEnd = values[7]; yEnd = values[7];
if (curve.last) {
prevWinding = curve.last.winding;
prevXEnd = curve.last.values[6];
}
if (winding && (py >= yStart && py <= yEnd if (winding && (py >= yStart && py <= yEnd
|| py >= yEnd && py <= yStart)) { || py >= yEnd && py <= yStart)) {
var x = py === yStart ? values[0] var x = py === yStart ? values[0]
@ -9424,7 +9421,6 @@ PathItem.inject(new function() {
} }
} }
} }
}
return Math.max(abs(windLeft), abs(windRight)); return Math.max(abs(windLeft), abs(windRight));
} }
@ -9777,9 +9773,7 @@ Path.inject({
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]); handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
} }
if (monoCurves.length > 0) { if (monoCurves.length > 0) {
var first = monoCurves[0]; monoCurves[0].last = last;
first.length = monoCurves.length;
first.last = last;
} }
} }
return monoCurves; return monoCurves;

File diff suppressed because one or more lines are too long

24
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * 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 { } else {
var xBefore = px - epsilon, var xBefore = px - epsilon,
xAfter = px + epsilon, xAfter = px + epsilon,
start, prevWinding,
end = 0; prevXEnd;
while (end < length) { for (var i = 0; i < length; i++) {
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++) {
var curve = curves[i], var curve = curves[i],
winding = curve.winding, winding = curve.winding,
values = curve.values, values = curve.values,
yStart = values[1], yStart = values[1],
yEnd = values[7]; yEnd = values[7];
if (curve.last) {
prevWinding = curve.last.winding;
prevXEnd = curve.last.values[6];
}
if (winding && (py >= yStart && py <= yEnd if (winding && (py >= yStart && py <= yEnd
|| py >= yEnd && py <= yStart)) { || py >= yEnd && py <= yStart)) {
var x = py === yStart ? values[0] var x = py === yStart ? values[0]
@ -9424,7 +9421,6 @@ PathItem.inject(new function() {
} }
} }
} }
}
return Math.max(abs(windLeft), abs(windRight)); return Math.max(abs(windLeft), abs(windRight));
} }
@ -9777,9 +9773,7 @@ Path.inject({
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]); handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
} }
if (monoCurves.length > 0) { if (monoCurves.length > 0) {
var first = monoCurves[0]; monoCurves[0].last = last;
first.length = monoCurves.length;
first.last = last;
} }
} }
return monoCurves; return monoCurves;

File diff suppressed because one or more lines are too long