mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Prebuilt module for commit 8d5c922c50
This commit is contained in:
parent
e7b2eb5bc8
commit
1df18c27f9
5 changed files with 19 additions and 46 deletions
19
dist/docs/assets/js/paper.js
vendored
19
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Sun Feb 14 22:06:55 2016 +0100
|
* Date: Sun Feb 14 22:15:55 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -9508,8 +9508,7 @@ PathItem.inject(new function() {
|
||||||
prevXEnd,
|
prevXEnd,
|
||||||
windLeftOnCurve = 0,
|
windLeftOnCurve = 0,
|
||||||
windRightOnCurve = 0,
|
windRightOnCurve = 0,
|
||||||
isOnCurve = false,
|
isOnCurve = false;
|
||||||
leftIntersVal;
|
|
||||||
for (var i = 0; i < length; i++) {
|
for (var i = 0; i < length; i++) {
|
||||||
var curve = curves[i],
|
var curve = curves[i],
|
||||||
winding = curve.winding,
|
winding = curve.winding,
|
||||||
|
@ -9520,7 +9519,6 @@ PathItem.inject(new function() {
|
||||||
prevWinding = curve.last.winding;
|
prevWinding = curve.last.winding;
|
||||||
prevXEnd = curve.last.values[6];
|
prevXEnd = curve.last.values[6];
|
||||||
isOnCurve = false;
|
isOnCurve = false;
|
||||||
leftIntersVal = null;
|
|
||||||
}
|
}
|
||||||
if (py >= yStart && py <= yEnd || py >= yEnd && py <= yStart) {
|
if (py >= yStart && py <= yEnd || py >= yEnd && py <= yStart) {
|
||||||
if (winding) {
|
if (winding) {
|
||||||
|
@ -9549,16 +9547,9 @@ PathItem.inject(new function() {
|
||||||
isOnCurve = true;
|
isOnCurve = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == length - 1 || curves[i + 1].last) {
|
if (isOnCurve && (i >= length - 1 || curves[i + 1].last)) {
|
||||||
if (isOnCurve) {
|
windLeftOnCurve += 1;
|
||||||
if (leftIntersVal && leftIntersVal[1] < 0) {
|
windRightOnCurve -= 1;
|
||||||
windLeftOnCurve -= 1;
|
|
||||||
windRightOnCurve += 1;
|
|
||||||
} else {
|
|
||||||
windLeftOnCurve += 1;
|
|
||||||
windRightOnCurve -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (windLeft === 0 && windRight === 0) {
|
if (windLeft === 0 && windRight === 0) {
|
||||||
|
|
19
dist/paper-core.js
vendored
19
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Sun Feb 14 22:06:55 2016 +0100
|
* Date: Sun Feb 14 22:15:55 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -9508,8 +9508,7 @@ PathItem.inject(new function() {
|
||||||
prevXEnd,
|
prevXEnd,
|
||||||
windLeftOnCurve = 0,
|
windLeftOnCurve = 0,
|
||||||
windRightOnCurve = 0,
|
windRightOnCurve = 0,
|
||||||
isOnCurve = false,
|
isOnCurve = false;
|
||||||
leftIntersVal;
|
|
||||||
for (var i = 0; i < length; i++) {
|
for (var i = 0; i < length; i++) {
|
||||||
var curve = curves[i],
|
var curve = curves[i],
|
||||||
winding = curve.winding,
|
winding = curve.winding,
|
||||||
|
@ -9520,7 +9519,6 @@ PathItem.inject(new function() {
|
||||||
prevWinding = curve.last.winding;
|
prevWinding = curve.last.winding;
|
||||||
prevXEnd = curve.last.values[6];
|
prevXEnd = curve.last.values[6];
|
||||||
isOnCurve = false;
|
isOnCurve = false;
|
||||||
leftIntersVal = null;
|
|
||||||
}
|
}
|
||||||
if (py >= yStart && py <= yEnd || py >= yEnd && py <= yStart) {
|
if (py >= yStart && py <= yEnd || py >= yEnd && py <= yStart) {
|
||||||
if (winding) {
|
if (winding) {
|
||||||
|
@ -9549,16 +9547,9 @@ PathItem.inject(new function() {
|
||||||
isOnCurve = true;
|
isOnCurve = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == length - 1 || curves[i + 1].last) {
|
if (isOnCurve && (i >= length - 1 || curves[i + 1].last)) {
|
||||||
if (isOnCurve) {
|
windLeftOnCurve += 1;
|
||||||
if (leftIntersVal && leftIntersVal[1] < 0) {
|
windRightOnCurve -= 1;
|
||||||
windLeftOnCurve -= 1;
|
|
||||||
windRightOnCurve += 1;
|
|
||||||
} else {
|
|
||||||
windLeftOnCurve += 1;
|
|
||||||
windRightOnCurve -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (windLeft === 0 && windRight === 0) {
|
if (windLeft === 0 && windRight === 0) {
|
||||||
|
|
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
19
dist/paper-full.js
vendored
19
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Sun Feb 14 22:06:55 2016 +0100
|
* Date: Sun Feb 14 22:15:55 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -9508,8 +9508,7 @@ PathItem.inject(new function() {
|
||||||
prevXEnd,
|
prevXEnd,
|
||||||
windLeftOnCurve = 0,
|
windLeftOnCurve = 0,
|
||||||
windRightOnCurve = 0,
|
windRightOnCurve = 0,
|
||||||
isOnCurve = false,
|
isOnCurve = false;
|
||||||
leftIntersVal;
|
|
||||||
for (var i = 0; i < length; i++) {
|
for (var i = 0; i < length; i++) {
|
||||||
var curve = curves[i],
|
var curve = curves[i],
|
||||||
winding = curve.winding,
|
winding = curve.winding,
|
||||||
|
@ -9520,7 +9519,6 @@ PathItem.inject(new function() {
|
||||||
prevWinding = curve.last.winding;
|
prevWinding = curve.last.winding;
|
||||||
prevXEnd = curve.last.values[6];
|
prevXEnd = curve.last.values[6];
|
||||||
isOnCurve = false;
|
isOnCurve = false;
|
||||||
leftIntersVal = null;
|
|
||||||
}
|
}
|
||||||
if (py >= yStart && py <= yEnd || py >= yEnd && py <= yStart) {
|
if (py >= yStart && py <= yEnd || py >= yEnd && py <= yStart) {
|
||||||
if (winding) {
|
if (winding) {
|
||||||
|
@ -9549,16 +9547,9 @@ PathItem.inject(new function() {
|
||||||
isOnCurve = true;
|
isOnCurve = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == length - 1 || curves[i + 1].last) {
|
if (isOnCurve && (i >= length - 1 || curves[i + 1].last)) {
|
||||||
if (isOnCurve) {
|
windLeftOnCurve += 1;
|
||||||
if (leftIntersVal && leftIntersVal[1] < 0) {
|
windRightOnCurve -= 1;
|
||||||
windLeftOnCurve -= 1;
|
|
||||||
windRightOnCurve += 1;
|
|
||||||
} else {
|
|
||||||
windLeftOnCurve += 1;
|
|
||||||
windRightOnCurve -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (windLeft === 0 && windRight === 0) {
|
if (windLeft === 0 && windRight === 0) {
|
||||||
|
|
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