mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-09 06:12:34 -05:00
Prebuilt module for commit 892e56793d
This commit is contained in:
parent
3a80eb8e89
commit
9e7d8d1444
6 changed files with 57 additions and 42 deletions
23
dist/docs/assets/js/paper.js
vendored
23
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Fri Feb 12 17:59:37 2016 +0100
|
* Date: Fri Feb 12 18:20:40 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -139,16 +139,18 @@ var Base = new function() {
|
||||||
return bind;
|
return bind;
|
||||||
}
|
}
|
||||||
|
|
||||||
function set(obj, props, exclude) {
|
function set(obj, args, start) {
|
||||||
|
for (var i = start, l = args.length; i < l; i++) {
|
||||||
|
var props = args[i];
|
||||||
for (var key in props)
|
for (var key in props)
|
||||||
if (props.hasOwnProperty(key) && !(exclude && exclude[key]))
|
if (props.hasOwnProperty(key))
|
||||||
obj[key] = props[key];
|
obj[key] = props[key];
|
||||||
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
return inject(function Base() {
|
return inject(function Base() {
|
||||||
for (var i = 0, l = arguments.length; i < l; i++)
|
return set(this, arguments, 0);
|
||||||
set(this, arguments[i]);
|
|
||||||
}, {
|
}, {
|
||||||
inject: function(src) {
|
inject: function(src) {
|
||||||
if (src) {
|
if (src) {
|
||||||
|
@ -205,8 +207,8 @@ var Base = new function() {
|
||||||
return each(this, iter, bind);
|
return each(this, iter, bind);
|
||||||
},
|
},
|
||||||
|
|
||||||
set: function(props) {
|
set: function() {
|
||||||
return set(this, props);
|
return set(this, arguments, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
clone: function() {
|
clone: function() {
|
||||||
|
@ -218,10 +220,13 @@ var Base = new function() {
|
||||||
create: create,
|
create: create,
|
||||||
define: define,
|
define: define,
|
||||||
describe: describe,
|
describe: describe,
|
||||||
set: set,
|
|
||||||
|
set: function(obj) {
|
||||||
|
return set(obj, arguments, 1);
|
||||||
|
},
|
||||||
|
|
||||||
clone: function(obj) {
|
clone: function(obj) {
|
||||||
return set(new obj.constructor(), obj);
|
return set(new obj.constructor(), arguments, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
isPlainObject: function(obj) {
|
isPlainObject: function(obj) {
|
||||||
|
|
23
dist/paper-core.js
vendored
23
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Fri Feb 12 17:59:37 2016 +0100
|
* Date: Fri Feb 12 18:20:40 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -139,16 +139,18 @@ var Base = new function() {
|
||||||
return bind;
|
return bind;
|
||||||
}
|
}
|
||||||
|
|
||||||
function set(obj, props, exclude) {
|
function set(obj, args, start) {
|
||||||
|
for (var i = start, l = args.length; i < l; i++) {
|
||||||
|
var props = args[i];
|
||||||
for (var key in props)
|
for (var key in props)
|
||||||
if (props.hasOwnProperty(key) && !(exclude && exclude[key]))
|
if (props.hasOwnProperty(key))
|
||||||
obj[key] = props[key];
|
obj[key] = props[key];
|
||||||
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
return inject(function Base() {
|
return inject(function Base() {
|
||||||
for (var i = 0, l = arguments.length; i < l; i++)
|
return set(this, arguments, 0);
|
||||||
set(this, arguments[i]);
|
|
||||||
}, {
|
}, {
|
||||||
inject: function(src) {
|
inject: function(src) {
|
||||||
if (src) {
|
if (src) {
|
||||||
|
@ -205,8 +207,8 @@ var Base = new function() {
|
||||||
return each(this, iter, bind);
|
return each(this, iter, bind);
|
||||||
},
|
},
|
||||||
|
|
||||||
set: function(props) {
|
set: function() {
|
||||||
return set(this, props);
|
return set(this, arguments, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
clone: function() {
|
clone: function() {
|
||||||
|
@ -218,10 +220,13 @@ var Base = new function() {
|
||||||
create: create,
|
create: create,
|
||||||
define: define,
|
define: define,
|
||||||
describe: describe,
|
describe: describe,
|
||||||
set: set,
|
|
||||||
|
set: function(obj) {
|
||||||
|
return set(obj, arguments, 1);
|
||||||
|
},
|
||||||
|
|
||||||
clone: function(obj) {
|
clone: function(obj) {
|
||||||
return set(new obj.constructor(), obj);
|
return set(new obj.constructor(), arguments, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
isPlainObject: function(obj) {
|
isPlainObject: function(obj) {
|
||||||
|
|
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
23
dist/paper-full.js
vendored
23
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Fri Feb 12 17:59:37 2016 +0100
|
* Date: Fri Feb 12 18:20:40 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -139,16 +139,18 @@ var Base = new function() {
|
||||||
return bind;
|
return bind;
|
||||||
}
|
}
|
||||||
|
|
||||||
function set(obj, props, exclude) {
|
function set(obj, args, start) {
|
||||||
|
for (var i = start, l = args.length; i < l; i++) {
|
||||||
|
var props = args[i];
|
||||||
for (var key in props)
|
for (var key in props)
|
||||||
if (props.hasOwnProperty(key) && !(exclude && exclude[key]))
|
if (props.hasOwnProperty(key))
|
||||||
obj[key] = props[key];
|
obj[key] = props[key];
|
||||||
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
return inject(function Base() {
|
return inject(function Base() {
|
||||||
for (var i = 0, l = arguments.length; i < l; i++)
|
return set(this, arguments, 0);
|
||||||
set(this, arguments[i]);
|
|
||||||
}, {
|
}, {
|
||||||
inject: function(src) {
|
inject: function(src) {
|
||||||
if (src) {
|
if (src) {
|
||||||
|
@ -205,8 +207,8 @@ var Base = new function() {
|
||||||
return each(this, iter, bind);
|
return each(this, iter, bind);
|
||||||
},
|
},
|
||||||
|
|
||||||
set: function(props) {
|
set: function() {
|
||||||
return set(this, props);
|
return set(this, arguments, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
clone: function() {
|
clone: function() {
|
||||||
|
@ -218,10 +220,13 @@ var Base = new function() {
|
||||||
create: create,
|
create: create,
|
||||||
define: define,
|
define: define,
|
||||||
describe: describe,
|
describe: describe,
|
||||||
set: set,
|
|
||||||
|
set: function(obj) {
|
||||||
|
return set(obj, arguments, 1);
|
||||||
|
},
|
||||||
|
|
||||||
clone: function(obj) {
|
clone: function(obj) {
|
||||||
return set(new obj.constructor(), obj);
|
return set(new obj.constructor(), arguments, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
isPlainObject: function(obj) {
|
isPlainObject: function(obj) {
|
||||||
|
|
8
dist/paper-full.min.js
vendored
8
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,7 @@
|
||||||
"require-dir": "^0.3.0",
|
"require-dir": "^0.3.0",
|
||||||
"resemblejs": "^2.1.0",
|
"resemblejs": "^2.1.0",
|
||||||
"stats.js": "0.0.14-master",
|
"stats.js": "0.0.14-master",
|
||||||
"straps": "^1.8.0"
|
"straps": "^1.9.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"vector",
|
"vector",
|
||||||
|
|
Loading…
Reference in a new issue