mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Prebuilt module for commit 7412939096
This commit is contained in:
parent
b19cf62c62
commit
cb95b131a0
5 changed files with 55 additions and 40 deletions
27
dist/docs/assets/js/paper.js
vendored
27
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Wed Oct 4 17:52:09 2017 +0200
|
* Date: Wed Oct 4 21:43:56 2017 +0200
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -10350,16 +10350,20 @@ PathItem.inject(new function() {
|
||||||
function collect(inter, end) {
|
function collect(inter, end) {
|
||||||
while (inter && inter !== end) {
|
while (inter && inter !== end) {
|
||||||
var other = inter._segment,
|
var other = inter._segment,
|
||||||
path = other._path,
|
path = other && other._path;
|
||||||
next = other.getNext() || path && path.getFirstSegment(),
|
if (path) {
|
||||||
nextInter = next && next._intersection;
|
var next = other.getNext() || path.getFirstSegment(),
|
||||||
if (other !== segment && (isStart(other) || isStart(next)
|
nextInter = next._intersection;
|
||||||
|| next && (isValid(other) && (isValid(next)
|
if (other !== segment && (isStart(other)
|
||||||
|| nextInter && isValid(nextInter._segment))))) {
|
|| isStart(next)
|
||||||
crossings.push(other);
|
|| next && (isValid(other) && (isValid(next)
|
||||||
|
|| nextInter && isValid(nextInter._segment))))
|
||||||
|
) {
|
||||||
|
crossings.push(other);
|
||||||
|
}
|
||||||
|
if (collectStarts)
|
||||||
|
starts.push(other);
|
||||||
}
|
}
|
||||||
if (collectStarts)
|
|
||||||
starts.push(other);
|
|
||||||
inter = inter._next;
|
inter = inter._next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10450,7 +10454,8 @@ PathItem.inject(new function() {
|
||||||
visited.length = 0;
|
visited.length = 0;
|
||||||
do {
|
do {
|
||||||
seg = branch && branch.crossings.shift();
|
seg = branch && branch.crossings.shift();
|
||||||
if (!seg) {
|
if (!seg || !seg._path) {
|
||||||
|
seg = null;
|
||||||
branch = branches.pop();
|
branch = branches.pop();
|
||||||
if (branch) {
|
if (branch) {
|
||||||
visited = branch.visited;
|
visited = branch.visited;
|
||||||
|
|
27
dist/paper-core.js
vendored
27
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Wed Oct 4 17:52:09 2017 +0200
|
* Date: Wed Oct 4 21:43:56 2017 +0200
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -10350,16 +10350,20 @@ PathItem.inject(new function() {
|
||||||
function collect(inter, end) {
|
function collect(inter, end) {
|
||||||
while (inter && inter !== end) {
|
while (inter && inter !== end) {
|
||||||
var other = inter._segment,
|
var other = inter._segment,
|
||||||
path = other._path,
|
path = other && other._path;
|
||||||
next = other.getNext() || path && path.getFirstSegment(),
|
if (path) {
|
||||||
nextInter = next && next._intersection;
|
var next = other.getNext() || path.getFirstSegment(),
|
||||||
if (other !== segment && (isStart(other) || isStart(next)
|
nextInter = next._intersection;
|
||||||
|| next && (isValid(other) && (isValid(next)
|
if (other !== segment && (isStart(other)
|
||||||
|| nextInter && isValid(nextInter._segment))))) {
|
|| isStart(next)
|
||||||
crossings.push(other);
|
|| next && (isValid(other) && (isValid(next)
|
||||||
|
|| nextInter && isValid(nextInter._segment))))
|
||||||
|
) {
|
||||||
|
crossings.push(other);
|
||||||
|
}
|
||||||
|
if (collectStarts)
|
||||||
|
starts.push(other);
|
||||||
}
|
}
|
||||||
if (collectStarts)
|
|
||||||
starts.push(other);
|
|
||||||
inter = inter._next;
|
inter = inter._next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10450,7 +10454,8 @@ PathItem.inject(new function() {
|
||||||
visited.length = 0;
|
visited.length = 0;
|
||||||
do {
|
do {
|
||||||
seg = branch && branch.crossings.shift();
|
seg = branch && branch.crossings.shift();
|
||||||
if (!seg) {
|
if (!seg || !seg._path) {
|
||||||
|
seg = null;
|
||||||
branch = branches.pop();
|
branch = branches.pop();
|
||||||
if (branch) {
|
if (branch) {
|
||||||
visited = branch.visited;
|
visited = branch.visited;
|
||||||
|
|
8
dist/paper-core.min.js
vendored
8
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
27
dist/paper-full.js
vendored
27
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Wed Oct 4 17:52:09 2017 +0200
|
* Date: Wed Oct 4 21:43:56 2017 +0200
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -10350,16 +10350,20 @@ PathItem.inject(new function() {
|
||||||
function collect(inter, end) {
|
function collect(inter, end) {
|
||||||
while (inter && inter !== end) {
|
while (inter && inter !== end) {
|
||||||
var other = inter._segment,
|
var other = inter._segment,
|
||||||
path = other._path,
|
path = other && other._path;
|
||||||
next = other.getNext() || path && path.getFirstSegment(),
|
if (path) {
|
||||||
nextInter = next && next._intersection;
|
var next = other.getNext() || path.getFirstSegment(),
|
||||||
if (other !== segment && (isStart(other) || isStart(next)
|
nextInter = next._intersection;
|
||||||
|| next && (isValid(other) && (isValid(next)
|
if (other !== segment && (isStart(other)
|
||||||
|| nextInter && isValid(nextInter._segment))))) {
|
|| isStart(next)
|
||||||
crossings.push(other);
|
|| next && (isValid(other) && (isValid(next)
|
||||||
|
|| nextInter && isValid(nextInter._segment))))
|
||||||
|
) {
|
||||||
|
crossings.push(other);
|
||||||
|
}
|
||||||
|
if (collectStarts)
|
||||||
|
starts.push(other);
|
||||||
}
|
}
|
||||||
if (collectStarts)
|
|
||||||
starts.push(other);
|
|
||||||
inter = inter._next;
|
inter = inter._next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10450,7 +10454,8 @@ PathItem.inject(new function() {
|
||||||
visited.length = 0;
|
visited.length = 0;
|
||||||
do {
|
do {
|
||||||
seg = branch && branch.crossings.shift();
|
seg = branch && branch.crossings.shift();
|
||||||
if (!seg) {
|
if (!seg || !seg._path) {
|
||||||
|
seg = null;
|
||||||
branch = branches.pop();
|
branch = branches.pop();
|
||||||
if (branch) {
|
if (branch) {
|
||||||
visited = branch.visited;
|
visited = branch.visited;
|
||||||
|
|
6
dist/paper-full.min.js
vendored
6
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue