mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Prebuilt module for commit 70e58162f0
This commit is contained in:
parent
dfc0361177
commit
e2f97c958f
5 changed files with 20 additions and 18 deletions
15
dist/docs/assets/js/paper.js
vendored
15
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Oct 13 18:44:25 2018 +0200
|
||||
* Date: Sat Oct 13 18:49:54 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -16602,21 +16602,22 @@ Base.exports.PaperScript = function() {
|
|||
} else {
|
||||
func = Function(params, code);
|
||||
}
|
||||
var exports = func.apply(scope, args) || {};
|
||||
var exports = func && func.apply(scope, args);
|
||||
var obj = exports || {};
|
||||
Base.each(toolHandlers, function(key) {
|
||||
var value = exports[key];
|
||||
var value = obj[key];
|
||||
if (value)
|
||||
tool[key] = value;
|
||||
});
|
||||
if (view) {
|
||||
if (exports.onResize)
|
||||
view.setOnResize(exports.onResize);
|
||||
if (obj.onResize)
|
||||
view.setOnResize(obj.onResize);
|
||||
view.emit('resize', {
|
||||
size: view.size,
|
||||
delta: new Point()
|
||||
});
|
||||
if (exports.onFrame)
|
||||
view.setOnFrame(exports.onFrame);
|
||||
if (obj.onFrame)
|
||||
view.setOnFrame(obj.onFrame);
|
||||
view.requestUpdate();
|
||||
}
|
||||
return exports;
|
||||
|
|
2
dist/paper-core.js
vendored
2
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Oct 13 18:44:25 2018 +0200
|
||||
* Date: Sat Oct 13 18:49:54 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
2
dist/paper-core.min.js
vendored
2
dist/paper-core.min.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Oct 13 18:44:25 2018 +0200
|
||||
* Date: Sat Oct 13 18:49:54 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
15
dist/paper-full.js
vendored
15
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Oct 13 18:44:25 2018 +0200
|
||||
* Date: Sat Oct 13 18:49:54 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -16602,21 +16602,22 @@ Base.exports.PaperScript = function() {
|
|||
} else {
|
||||
func = Function(params, code);
|
||||
}
|
||||
var exports = func.apply(scope, args) || {};
|
||||
var exports = func && func.apply(scope, args);
|
||||
var obj = exports || {};
|
||||
Base.each(toolHandlers, function(key) {
|
||||
var value = exports[key];
|
||||
var value = obj[key];
|
||||
if (value)
|
||||
tool[key] = value;
|
||||
});
|
||||
if (view) {
|
||||
if (exports.onResize)
|
||||
view.setOnResize(exports.onResize);
|
||||
if (obj.onResize)
|
||||
view.setOnResize(obj.onResize);
|
||||
view.emit('resize', {
|
||||
size: view.size,
|
||||
delta: new Point()
|
||||
});
|
||||
if (exports.onFrame)
|
||||
view.setOnFrame(exports.onFrame);
|
||||
if (obj.onFrame)
|
||||
view.setOnFrame(obj.onFrame);
|
||||
view.requestUpdate();
|
||||
}
|
||||
return exports;
|
||||
|
|
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