Prebuilt module for commit 928a58b79a

This commit is contained in:
Paper.js Bot 2016-12-31 05:55:17 +00:00
parent 05c454a537
commit 76d4143e3e
6 changed files with 49 additions and 55 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Dec 31 01:09:28 2016 +0100
* Date: Sat Dec 31 06:52:56 2016 +0100
*
***
*
@ -7064,25 +7064,23 @@ new function() {
}
var v = [v1, v2],
insert = 'push',
pairs = [];
for (var i = 0, t1 = 0;
i < 2 && pairs.length < 2;
i += t1 === 0 ? 0 : 1, t1 = t1 ^ 1) {
var t2 = Curve.getTimeOf(v[i ^ 1], new Point(
v[i][t1 === 0 ? 0 : 6],
v[i][t1 === 0 ? 1 : 7]));
for (var i = 0; i < 4 && pairs.length < 2; i++) {
var i1 = i & 1,
i2 = i1 ^ 1,
t1 = i >> 1,
t2 = Curve.getTimeOf(v[i1], new Point(
v[i2][t1 === 0 ? 0 : 6],
v[i2][t1 === 0 ? 1 : 7]));
if (t2 != null) {
var pair = i === 0 ? [t1, t2] : [t2, t1];
var pair = i1 ? [t1, t2] : [t2, t1];
if (!pairs.length ||
abs(pair[0] - pairs[0][0]) > timeEpsilon &&
abs(pair[1] - pairs[0][1]) > timeEpsilon) {
pairs[insert](pair);
if (i || t1)
insert = 'unshift';
pairs.push(pair);
}
}
if (i && !pairs.length)
if (i > 2 && !pairs.length)
break;
}
if (pairs.length !== 2) {
@ -8153,7 +8151,7 @@ var Path = PathItem.extend({
},
divideAt: function(location) {
var loc = this.getLocationAt(location);
var loc = this.getLocationAt(location),
ret = null;
if (loc) {
var curve = loc.getCurve().divideAt(loc.getCurveOffset());

6
dist/node/extend.js vendored
View file

@ -15,7 +15,7 @@ var fs = require('fs'),
module.exports = function(paper) {
if (paper.PaperScript) {
var sourceMapSupprt = 'require("source-map-support").install(paper.PaperScript.sourceMapSupport);\n',
var sourceMapSupport = 'require("source-map-support").install(paper.PaperScript.sourceMapSupport);\n',
sourceMaps = {};
paper.PaperScript.sourceMapSupport = {
@ -32,12 +32,12 @@ module.exports = function(paper) {
// PaperScope.
module.exports = function(canvas) {
var source = fs.readFileSync(filename, 'utf8'),
code = sourceMapSupprt + source,
code = sourceMapSupport + source,
compiled = paper.PaperScript.compile(code, {
url: filename,
source: source,
sourceMaps: true,
offset: -1 // remove sourceMapSupprt...
offset: -1 // remove sourceMapSupport...
}),
scope = new paper.PaperScope();
// Keep track of sourceMaps so retrieveSourceMap() can link them up

26
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Dec 31 01:09:28 2016 +0100
* Date: Sat Dec 31 06:52:56 2016 +0100
*
***
*
@ -7064,25 +7064,23 @@ new function() {
}
var v = [v1, v2],
insert = 'push',
pairs = [];
for (var i = 0, t1 = 0;
i < 2 && pairs.length < 2;
i += t1 === 0 ? 0 : 1, t1 = t1 ^ 1) {
var t2 = Curve.getTimeOf(v[i ^ 1], new Point(
v[i][t1 === 0 ? 0 : 6],
v[i][t1 === 0 ? 1 : 7]));
for (var i = 0; i < 4 && pairs.length < 2; i++) {
var i1 = i & 1,
i2 = i1 ^ 1,
t1 = i >> 1,
t2 = Curve.getTimeOf(v[i1], new Point(
v[i2][t1 === 0 ? 0 : 6],
v[i2][t1 === 0 ? 1 : 7]));
if (t2 != null) {
var pair = i === 0 ? [t1, t2] : [t2, t1];
var pair = i1 ? [t1, t2] : [t2, t1];
if (!pairs.length ||
abs(pair[0] - pairs[0][0]) > timeEpsilon &&
abs(pair[1] - pairs[0][1]) > timeEpsilon) {
pairs[insert](pair);
if (i || t1)
insert = 'unshift';
pairs.push(pair);
}
}
if (i && !pairs.length)
if (i > 2 && !pairs.length)
break;
}
if (pairs.length !== 2) {
@ -8153,7 +8151,7 @@ var Path = PathItem.extend({
},
divideAt: function(location) {
var loc = this.getLocationAt(location);
var loc = this.getLocationAt(location),
ret = null;
if (loc) {
var curve = loc.getCurve().divideAt(loc.getCurveOffset());

File diff suppressed because one or more lines are too long

26
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Dec 31 01:09:28 2016 +0100
* Date: Sat Dec 31 06:52:56 2016 +0100
*
***
*
@ -7064,25 +7064,23 @@ new function() {
}
var v = [v1, v2],
insert = 'push',
pairs = [];
for (var i = 0, t1 = 0;
i < 2 && pairs.length < 2;
i += t1 === 0 ? 0 : 1, t1 = t1 ^ 1) {
var t2 = Curve.getTimeOf(v[i ^ 1], new Point(
v[i][t1 === 0 ? 0 : 6],
v[i][t1 === 0 ? 1 : 7]));
for (var i = 0; i < 4 && pairs.length < 2; i++) {
var i1 = i & 1,
i2 = i1 ^ 1,
t1 = i >> 1,
t2 = Curve.getTimeOf(v[i1], new Point(
v[i2][t1 === 0 ? 0 : 6],
v[i2][t1 === 0 ? 1 : 7]));
if (t2 != null) {
var pair = i === 0 ? [t1, t2] : [t2, t1];
var pair = i1 ? [t1, t2] : [t2, t1];
if (!pairs.length ||
abs(pair[0] - pairs[0][0]) > timeEpsilon &&
abs(pair[1] - pairs[0][1]) > timeEpsilon) {
pairs[insert](pair);
if (i || t1)
insert = 'unshift';
pairs.push(pair);
}
}
if (i && !pairs.length)
if (i > 2 && !pairs.length)
break;
}
if (pairs.length !== 2) {
@ -8153,7 +8151,7 @@ var Path = PathItem.extend({
},
divideAt: function(location) {
var loc = this.getLocationAt(location);
var loc = this.getLocationAt(location),
ret = null;
if (loc) {
var curve = loc.getCurve().divideAt(loc.getCurveOffset());

File diff suppressed because one or more lines are too long