Prebuilt module for commit 4c12f1505c

This commit is contained in:
Paper.js Bot 2016-07-27 20:33:27 +00:00
parent f03308432b
commit 8596e4a1a0
5 changed files with 26 additions and 38 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Wed Jul 27 21:40:53 2016 +0200 * Date: Wed Jul 27 21:48:55 2016 +0200
* *
*** ***
* *
@ -10119,18 +10119,17 @@ PathItem.inject(new function() {
}); });
for (var i = 0, l = segments.length; i < l; i++) { for (var i = 0, l = segments.length; i < l; i++) {
var path = null, var seg = segments[i],
path = null,
finished = false, finished = false,
closed = true, closed = true,
branches = [], branches = [],
branch, branch,
visited, visited,
seg = segments[i],
inter = seg._intersection,
handleIn; handleIn;
if (!seg._visited && seg._path._overlapsOnly) { if (!seg._visited && seg._path._overlapsOnly) {
var path1 = seg._path, var path1 = seg._path,
path2 = inter._segment._path; path2 = seg._intersection._segment._path;
if (path1.compare(path2)) { if (path1.compare(path2)) {
if ((operator.unite || operator.intersect) if ((operator.unite || operator.intersect)
&& path1.getArea()) { && path1.getArea()) {
@ -10169,12 +10168,11 @@ PathItem.inject(new function() {
branch = null; branch = null;
} }
if (!branch) { if (!branch) {
visited = [];
branch = { branch = {
start: path._segments.length, start: path._segments.length,
segment: seg, segment: seg,
handleIn: handleIn, handleIn: handleIn,
visited: visited visited: visited = []
}; };
} }
if (cross) if (cross)
@ -10188,10 +10186,8 @@ PathItem.inject(new function() {
handleIn = branch.handleIn; handleIn = branch.handleIn;
visited = branch.visited; visited = branch.visited;
branch = branches.pop(); branch = branches.pop();
if (!branch) { if (!branch)
console.log('run out of branches, breaking.');
break; break;
}
} }
var next = seg.getNext(); var next = seg.getNext();
path.add(new Segment(seg._point, handleIn, path.add(new Segment(seg._point, handleIn,

16
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Wed Jul 27 21:40:53 2016 +0200 * Date: Wed Jul 27 21:48:55 2016 +0200
* *
*** ***
* *
@ -10119,18 +10119,17 @@ PathItem.inject(new function() {
}); });
for (var i = 0, l = segments.length; i < l; i++) { for (var i = 0, l = segments.length; i < l; i++) {
var path = null, var seg = segments[i],
path = null,
finished = false, finished = false,
closed = true, closed = true,
branches = [], branches = [],
branch, branch,
visited, visited,
seg = segments[i],
inter = seg._intersection,
handleIn; handleIn;
if (!seg._visited && seg._path._overlapsOnly) { if (!seg._visited && seg._path._overlapsOnly) {
var path1 = seg._path, var path1 = seg._path,
path2 = inter._segment._path; path2 = seg._intersection._segment._path;
if (path1.compare(path2)) { if (path1.compare(path2)) {
if ((operator.unite || operator.intersect) if ((operator.unite || operator.intersect)
&& path1.getArea()) { && path1.getArea()) {
@ -10169,12 +10168,11 @@ PathItem.inject(new function() {
branch = null; branch = null;
} }
if (!branch) { if (!branch) {
visited = [];
branch = { branch = {
start: path._segments.length, start: path._segments.length,
segment: seg, segment: seg,
handleIn: handleIn, handleIn: handleIn,
visited: visited visited: visited = []
}; };
} }
if (cross) if (cross)
@ -10188,10 +10186,8 @@ PathItem.inject(new function() {
handleIn = branch.handleIn; handleIn = branch.handleIn;
visited = branch.visited; visited = branch.visited;
branch = branches.pop(); branch = branches.pop();
if (!branch) { if (!branch)
console.log('run out of branches, breaking.');
break; break;
}
} }
var next = seg.getNext(); var next = seg.getNext();
path.add(new Segment(seg._point, handleIn, path.add(new Segment(seg._point, handleIn,

File diff suppressed because one or more lines are too long

16
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Wed Jul 27 21:40:53 2016 +0200 * Date: Wed Jul 27 21:48:55 2016 +0200
* *
*** ***
* *
@ -10119,18 +10119,17 @@ PathItem.inject(new function() {
}); });
for (var i = 0, l = segments.length; i < l; i++) { for (var i = 0, l = segments.length; i < l; i++) {
var path = null, var seg = segments[i],
path = null,
finished = false, finished = false,
closed = true, closed = true,
branches = [], branches = [],
branch, branch,
visited, visited,
seg = segments[i],
inter = seg._intersection,
handleIn; handleIn;
if (!seg._visited && seg._path._overlapsOnly) { if (!seg._visited && seg._path._overlapsOnly) {
var path1 = seg._path, var path1 = seg._path,
path2 = inter._segment._path; path2 = seg._intersection._segment._path;
if (path1.compare(path2)) { if (path1.compare(path2)) {
if ((operator.unite || operator.intersect) if ((operator.unite || operator.intersect)
&& path1.getArea()) { && path1.getArea()) {
@ -10169,12 +10168,11 @@ PathItem.inject(new function() {
branch = null; branch = null;
} }
if (!branch) { if (!branch) {
visited = [];
branch = { branch = {
start: path._segments.length, start: path._segments.length,
segment: seg, segment: seg,
handleIn: handleIn, handleIn: handleIn,
visited: visited visited: visited = []
}; };
} }
if (cross) if (cross)
@ -10188,10 +10186,8 @@ PathItem.inject(new function() {
handleIn = branch.handleIn; handleIn = branch.handleIn;
visited = branch.visited; visited = branch.visited;
branch = branches.pop(); branch = branches.pop();
if (!branch) { if (!branch)
console.log('run out of branches, breaking.');
break; break;
}
} }
var next = seg.getNext(); var next = seg.getNext();
path.add(new Segment(seg._point, handleIn, path.add(new Segment(seg._point, handleIn,

File diff suppressed because one or more lines are too long