Prebuilt module for commit 70e58162f0

This commit is contained in:
Paper.js Bot 2018-10-13 16:57:03 +00:00
parent dfc0361177
commit e2f97c958f
5 changed files with 20 additions and 18 deletions

View file

@ -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
View file

@ -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
*
***
*

View file

@ -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
View file

@ -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;

File diff suppressed because one or more lines are too long