mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Prebuilt module for commit a29ada8f23
This commit is contained in:
parent
9c3769456c
commit
bb37fd5c21
6 changed files with 35 additions and 35 deletions
20
dist/docs/assets/js/paper.js
vendored
20
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Tue Jul 26 10:25:32 2016 +0200
|
* Date: Wed Jul 27 14:18:01 2016 +0200
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -579,7 +579,7 @@ Base.inject({
|
||||||
},
|
},
|
||||||
|
|
||||||
camelize: function(str) {
|
camelize: function(str) {
|
||||||
return str.replace(/-(.)/g, function(all, chr) {
|
return str.replace(/-(.)/g, function(match, chr) {
|
||||||
return chr.toUpperCase();
|
return chr.toUpperCase();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -752,7 +752,7 @@ var PaperScope = Base.extend({
|
||||||
agent[platform] = true;
|
agent[platform] = true;
|
||||||
user.replace(
|
user.replace(
|
||||||
/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
|
/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
|
||||||
function(all, n, v1, v2, rv) {
|
function(match, n, v1, v2, rv) {
|
||||||
if (!agent.chrome) {
|
if (!agent.chrome) {
|
||||||
var v = n === 'opera' ? v2 :
|
var v = n === 'opera' ? v2 :
|
||||||
/^(node|trident)$/.test(n) ? rv : v1;
|
/^(node|trident)$/.test(n) ? rv : v1;
|
||||||
|
@ -8240,8 +8240,8 @@ var Path = PathItem.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
flatten: function(flatness) {
|
flatten: function(flatness) {
|
||||||
var iterator = new PathIterator(this, flatness || 0.25, 256, true),
|
var flattener = new PathFlattener(this, flatness || 0.25, 256, true),
|
||||||
parts = iterator.parts,
|
parts = flattener.parts,
|
||||||
length = parts.length,
|
length = parts.length,
|
||||||
segments = [];
|
segments = [];
|
||||||
for (var i = 0; i < length; i++) {
|
for (var i = 0; i < length; i++) {
|
||||||
|
@ -8825,9 +8825,9 @@ new function() {
|
||||||
if (dashLength) {
|
if (dashLength) {
|
||||||
if (!dontStart)
|
if (!dontStart)
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
var iterator = new PathIterator(this, 0.25, 32, false,
|
var flattener = new PathFlattener(this, 0.25, 32, false,
|
||||||
strokeMatrix),
|
strokeMatrix),
|
||||||
length = iterator.length,
|
length = flattener.length,
|
||||||
from = -style.getDashOffset(), to,
|
from = -style.getDashOffset(), to,
|
||||||
i = 0;
|
i = 0;
|
||||||
from = from % length;
|
from = from % length;
|
||||||
|
@ -8837,7 +8837,7 @@ new function() {
|
||||||
while (from < length) {
|
while (from < length) {
|
||||||
to = from + getOffset(i++);
|
to = from + getOffset(i++);
|
||||||
if (from > 0 || to > 0)
|
if (from > 0 || to > 0)
|
||||||
iterator.drawPart(ctx,
|
flattener.drawPart(ctx,
|
||||||
Math.max(from, 0), Math.max(to, 0));
|
Math.max(from, 0), Math.max(to, 0));
|
||||||
from = to + getOffset(i++);
|
from = to + getOffset(i++);
|
||||||
}
|
}
|
||||||
|
@ -10390,8 +10390,8 @@ PathItem.inject(new function() {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
var PathIterator = Base.extend({
|
var PathFlattener = Base.extend({
|
||||||
_class: 'PathIterator',
|
_class: 'PathFlattener',
|
||||||
|
|
||||||
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
||||||
var curves = [],
|
var curves = [],
|
||||||
|
|
2
dist/node/window.js
vendored
2
dist/node/window.js
vendored
|
@ -45,7 +45,7 @@ XMLSerializer.prototype.serializeToString = function(node) {
|
||||||
var tagName = tagNames[i];
|
var tagName = tagNames[i];
|
||||||
text = text.replace(
|
text = text.replace(
|
||||||
new RegExp('(<|</)' + tagName.toLowerCase() + '\\b', 'g'),
|
new RegExp('(<|</)' + tagName.toLowerCase() + '\\b', 'g'),
|
||||||
function(all, start) {
|
function(match, start) {
|
||||||
return start + tagName;
|
return start + tagName;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
20
dist/paper-core.js
vendored
20
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Tue Jul 26 10:25:32 2016 +0200
|
* Date: Wed Jul 27 14:18:01 2016 +0200
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -579,7 +579,7 @@ Base.inject({
|
||||||
},
|
},
|
||||||
|
|
||||||
camelize: function(str) {
|
camelize: function(str) {
|
||||||
return str.replace(/-(.)/g, function(all, chr) {
|
return str.replace(/-(.)/g, function(match, chr) {
|
||||||
return chr.toUpperCase();
|
return chr.toUpperCase();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -752,7 +752,7 @@ var PaperScope = Base.extend({
|
||||||
agent[platform] = true;
|
agent[platform] = true;
|
||||||
user.replace(
|
user.replace(
|
||||||
/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
|
/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
|
||||||
function(all, n, v1, v2, rv) {
|
function(match, n, v1, v2, rv) {
|
||||||
if (!agent.chrome) {
|
if (!agent.chrome) {
|
||||||
var v = n === 'opera' ? v2 :
|
var v = n === 'opera' ? v2 :
|
||||||
/^(node|trident)$/.test(n) ? rv : v1;
|
/^(node|trident)$/.test(n) ? rv : v1;
|
||||||
|
@ -8240,8 +8240,8 @@ var Path = PathItem.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
flatten: function(flatness) {
|
flatten: function(flatness) {
|
||||||
var iterator = new PathIterator(this, flatness || 0.25, 256, true),
|
var flattener = new PathFlattener(this, flatness || 0.25, 256, true),
|
||||||
parts = iterator.parts,
|
parts = flattener.parts,
|
||||||
length = parts.length,
|
length = parts.length,
|
||||||
segments = [];
|
segments = [];
|
||||||
for (var i = 0; i < length; i++) {
|
for (var i = 0; i < length; i++) {
|
||||||
|
@ -8825,9 +8825,9 @@ new function() {
|
||||||
if (dashLength) {
|
if (dashLength) {
|
||||||
if (!dontStart)
|
if (!dontStart)
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
var iterator = new PathIterator(this, 0.25, 32, false,
|
var flattener = new PathFlattener(this, 0.25, 32, false,
|
||||||
strokeMatrix),
|
strokeMatrix),
|
||||||
length = iterator.length,
|
length = flattener.length,
|
||||||
from = -style.getDashOffset(), to,
|
from = -style.getDashOffset(), to,
|
||||||
i = 0;
|
i = 0;
|
||||||
from = from % length;
|
from = from % length;
|
||||||
|
@ -8837,7 +8837,7 @@ new function() {
|
||||||
while (from < length) {
|
while (from < length) {
|
||||||
to = from + getOffset(i++);
|
to = from + getOffset(i++);
|
||||||
if (from > 0 || to > 0)
|
if (from > 0 || to > 0)
|
||||||
iterator.drawPart(ctx,
|
flattener.drawPart(ctx,
|
||||||
Math.max(from, 0), Math.max(to, 0));
|
Math.max(from, 0), Math.max(to, 0));
|
||||||
from = to + getOffset(i++);
|
from = to + getOffset(i++);
|
||||||
}
|
}
|
||||||
|
@ -10390,8 +10390,8 @@ PathItem.inject(new function() {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
var PathIterator = Base.extend({
|
var PathFlattener = Base.extend({
|
||||||
_class: 'PathIterator',
|
_class: 'PathFlattener',
|
||||||
|
|
||||||
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
||||||
var curves = [],
|
var curves = [],
|
||||||
|
|
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
20
dist/paper-full.js
vendored
20
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Tue Jul 26 10:25:32 2016 +0200
|
* Date: Wed Jul 27 14:18:01 2016 +0200
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -579,7 +579,7 @@ Base.inject({
|
||||||
},
|
},
|
||||||
|
|
||||||
camelize: function(str) {
|
camelize: function(str) {
|
||||||
return str.replace(/-(.)/g, function(all, chr) {
|
return str.replace(/-(.)/g, function(match, chr) {
|
||||||
return chr.toUpperCase();
|
return chr.toUpperCase();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -752,7 +752,7 @@ var PaperScope = Base.extend({
|
||||||
agent[platform] = true;
|
agent[platform] = true;
|
||||||
user.replace(
|
user.replace(
|
||||||
/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
|
/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
|
||||||
function(all, n, v1, v2, rv) {
|
function(match, n, v1, v2, rv) {
|
||||||
if (!agent.chrome) {
|
if (!agent.chrome) {
|
||||||
var v = n === 'opera' ? v2 :
|
var v = n === 'opera' ? v2 :
|
||||||
/^(node|trident)$/.test(n) ? rv : v1;
|
/^(node|trident)$/.test(n) ? rv : v1;
|
||||||
|
@ -8240,8 +8240,8 @@ var Path = PathItem.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
flatten: function(flatness) {
|
flatten: function(flatness) {
|
||||||
var iterator = new PathIterator(this, flatness || 0.25, 256, true),
|
var flattener = new PathFlattener(this, flatness || 0.25, 256, true),
|
||||||
parts = iterator.parts,
|
parts = flattener.parts,
|
||||||
length = parts.length,
|
length = parts.length,
|
||||||
segments = [];
|
segments = [];
|
||||||
for (var i = 0; i < length; i++) {
|
for (var i = 0; i < length; i++) {
|
||||||
|
@ -8825,9 +8825,9 @@ new function() {
|
||||||
if (dashLength) {
|
if (dashLength) {
|
||||||
if (!dontStart)
|
if (!dontStart)
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
var iterator = new PathIterator(this, 0.25, 32, false,
|
var flattener = new PathFlattener(this, 0.25, 32, false,
|
||||||
strokeMatrix),
|
strokeMatrix),
|
||||||
length = iterator.length,
|
length = flattener.length,
|
||||||
from = -style.getDashOffset(), to,
|
from = -style.getDashOffset(), to,
|
||||||
i = 0;
|
i = 0;
|
||||||
from = from % length;
|
from = from % length;
|
||||||
|
@ -8837,7 +8837,7 @@ new function() {
|
||||||
while (from < length) {
|
while (from < length) {
|
||||||
to = from + getOffset(i++);
|
to = from + getOffset(i++);
|
||||||
if (from > 0 || to > 0)
|
if (from > 0 || to > 0)
|
||||||
iterator.drawPart(ctx,
|
flattener.drawPart(ctx,
|
||||||
Math.max(from, 0), Math.max(to, 0));
|
Math.max(from, 0), Math.max(to, 0));
|
||||||
from = to + getOffset(i++);
|
from = to + getOffset(i++);
|
||||||
}
|
}
|
||||||
|
@ -10390,8 +10390,8 @@ PathItem.inject(new function() {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
var PathIterator = Base.extend({
|
var PathFlattener = Base.extend({
|
||||||
_class: 'PathIterator',
|
_class: 'PathFlattener',
|
||||||
|
|
||||||
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
||||||
var curves = [],
|
var curves = [],
|
||||||
|
|
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