mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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.
|
||||
*
|
||||
* 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) {
|
||||
return str.replace(/-(.)/g, function(all, chr) {
|
||||
return str.replace(/-(.)/g, function(match, chr) {
|
||||
return chr.toUpperCase();
|
||||
});
|
||||
},
|
||||
|
@ -752,7 +752,7 @@ var PaperScope = Base.extend({
|
|||
agent[platform] = true;
|
||||
user.replace(
|
||||
/(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) {
|
||||
var v = n === 'opera' ? v2 :
|
||||
/^(node|trident)$/.test(n) ? rv : v1;
|
||||
|
@ -8240,8 +8240,8 @@ var Path = PathItem.extend({
|
|||
},
|
||||
|
||||
flatten: function(flatness) {
|
||||
var iterator = new PathIterator(this, flatness || 0.25, 256, true),
|
||||
parts = iterator.parts,
|
||||
var flattener = new PathFlattener(this, flatness || 0.25, 256, true),
|
||||
parts = flattener.parts,
|
||||
length = parts.length,
|
||||
segments = [];
|
||||
for (var i = 0; i < length; i++) {
|
||||
|
@ -8825,9 +8825,9 @@ new function() {
|
|||
if (dashLength) {
|
||||
if (!dontStart)
|
||||
ctx.beginPath();
|
||||
var iterator = new PathIterator(this, 0.25, 32, false,
|
||||
var flattener = new PathFlattener(this, 0.25, 32, false,
|
||||
strokeMatrix),
|
||||
length = iterator.length,
|
||||
length = flattener.length,
|
||||
from = -style.getDashOffset(), to,
|
||||
i = 0;
|
||||
from = from % length;
|
||||
|
@ -8837,7 +8837,7 @@ new function() {
|
|||
while (from < length) {
|
||||
to = from + getOffset(i++);
|
||||
if (from > 0 || to > 0)
|
||||
iterator.drawPart(ctx,
|
||||
flattener.drawPart(ctx,
|
||||
Math.max(from, 0), Math.max(to, 0));
|
||||
from = to + getOffset(i++);
|
||||
}
|
||||
|
@ -10390,8 +10390,8 @@ PathItem.inject(new function() {
|
|||
};
|
||||
});
|
||||
|
||||
var PathIterator = Base.extend({
|
||||
_class: 'PathIterator',
|
||||
var PathFlattener = Base.extend({
|
||||
_class: 'PathFlattener',
|
||||
|
||||
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
||||
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];
|
||||
text = text.replace(
|
||||
new RegExp('(<|</)' + tagName.toLowerCase() + '\\b', 'g'),
|
||||
function(all, start) {
|
||||
function(match, start) {
|
||||
return start + tagName;
|
||||
});
|
||||
}
|
||||
|
|
20
dist/paper-core.js
vendored
20
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* 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) {
|
||||
return str.replace(/-(.)/g, function(all, chr) {
|
||||
return str.replace(/-(.)/g, function(match, chr) {
|
||||
return chr.toUpperCase();
|
||||
});
|
||||
},
|
||||
|
@ -752,7 +752,7 @@ var PaperScope = Base.extend({
|
|||
agent[platform] = true;
|
||||
user.replace(
|
||||
/(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) {
|
||||
var v = n === 'opera' ? v2 :
|
||||
/^(node|trident)$/.test(n) ? rv : v1;
|
||||
|
@ -8240,8 +8240,8 @@ var Path = PathItem.extend({
|
|||
},
|
||||
|
||||
flatten: function(flatness) {
|
||||
var iterator = new PathIterator(this, flatness || 0.25, 256, true),
|
||||
parts = iterator.parts,
|
||||
var flattener = new PathFlattener(this, flatness || 0.25, 256, true),
|
||||
parts = flattener.parts,
|
||||
length = parts.length,
|
||||
segments = [];
|
||||
for (var i = 0; i < length; i++) {
|
||||
|
@ -8825,9 +8825,9 @@ new function() {
|
|||
if (dashLength) {
|
||||
if (!dontStart)
|
||||
ctx.beginPath();
|
||||
var iterator = new PathIterator(this, 0.25, 32, false,
|
||||
var flattener = new PathFlattener(this, 0.25, 32, false,
|
||||
strokeMatrix),
|
||||
length = iterator.length,
|
||||
length = flattener.length,
|
||||
from = -style.getDashOffset(), to,
|
||||
i = 0;
|
||||
from = from % length;
|
||||
|
@ -8837,7 +8837,7 @@ new function() {
|
|||
while (from < length) {
|
||||
to = from + getOffset(i++);
|
||||
if (from > 0 || to > 0)
|
||||
iterator.drawPart(ctx,
|
||||
flattener.drawPart(ctx,
|
||||
Math.max(from, 0), Math.max(to, 0));
|
||||
from = to + getOffset(i++);
|
||||
}
|
||||
|
@ -10390,8 +10390,8 @@ PathItem.inject(new function() {
|
|||
};
|
||||
});
|
||||
|
||||
var PathIterator = Base.extend({
|
||||
_class: 'PathIterator',
|
||||
var PathFlattener = Base.extend({
|
||||
_class: 'PathFlattener',
|
||||
|
||||
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
||||
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.
|
||||
*
|
||||
* 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) {
|
||||
return str.replace(/-(.)/g, function(all, chr) {
|
||||
return str.replace(/-(.)/g, function(match, chr) {
|
||||
return chr.toUpperCase();
|
||||
});
|
||||
},
|
||||
|
@ -752,7 +752,7 @@ var PaperScope = Base.extend({
|
|||
agent[platform] = true;
|
||||
user.replace(
|
||||
/(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) {
|
||||
var v = n === 'opera' ? v2 :
|
||||
/^(node|trident)$/.test(n) ? rv : v1;
|
||||
|
@ -8240,8 +8240,8 @@ var Path = PathItem.extend({
|
|||
},
|
||||
|
||||
flatten: function(flatness) {
|
||||
var iterator = new PathIterator(this, flatness || 0.25, 256, true),
|
||||
parts = iterator.parts,
|
||||
var flattener = new PathFlattener(this, flatness || 0.25, 256, true),
|
||||
parts = flattener.parts,
|
||||
length = parts.length,
|
||||
segments = [];
|
||||
for (var i = 0; i < length; i++) {
|
||||
|
@ -8825,9 +8825,9 @@ new function() {
|
|||
if (dashLength) {
|
||||
if (!dontStart)
|
||||
ctx.beginPath();
|
||||
var iterator = new PathIterator(this, 0.25, 32, false,
|
||||
var flattener = new PathFlattener(this, 0.25, 32, false,
|
||||
strokeMatrix),
|
||||
length = iterator.length,
|
||||
length = flattener.length,
|
||||
from = -style.getDashOffset(), to,
|
||||
i = 0;
|
||||
from = from % length;
|
||||
|
@ -8837,7 +8837,7 @@ new function() {
|
|||
while (from < length) {
|
||||
to = from + getOffset(i++);
|
||||
if (from > 0 || to > 0)
|
||||
iterator.drawPart(ctx,
|
||||
flattener.drawPart(ctx,
|
||||
Math.max(from, 0), Math.max(to, 0));
|
||||
from = to + getOffset(i++);
|
||||
}
|
||||
|
@ -10390,8 +10390,8 @@ PathItem.inject(new function() {
|
|||
};
|
||||
});
|
||||
|
||||
var PathIterator = Base.extend({
|
||||
_class: 'PathIterator',
|
||||
var PathFlattener = Base.extend({
|
||||
_class: 'PathFlattener',
|
||||
|
||||
initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {
|
||||
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