mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -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.
|
* 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 {
|
} else {
|
||||||
func = Function(params, code);
|
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) {
|
Base.each(toolHandlers, function(key) {
|
||||||
var value = exports[key];
|
var value = obj[key];
|
||||||
if (value)
|
if (value)
|
||||||
tool[key] = value;
|
tool[key] = value;
|
||||||
});
|
});
|
||||||
if (view) {
|
if (view) {
|
||||||
if (exports.onResize)
|
if (obj.onResize)
|
||||||
view.setOnResize(exports.onResize);
|
view.setOnResize(obj.onResize);
|
||||||
view.emit('resize', {
|
view.emit('resize', {
|
||||||
size: view.size,
|
size: view.size,
|
||||||
delta: new Point()
|
delta: new Point()
|
||||||
});
|
});
|
||||||
if (exports.onFrame)
|
if (obj.onFrame)
|
||||||
view.setOnFrame(exports.onFrame);
|
view.setOnFrame(obj.onFrame);
|
||||||
view.requestUpdate();
|
view.requestUpdate();
|
||||||
}
|
}
|
||||||
return exports;
|
return exports;
|
||||||
|
|
2
dist/paper-core.js
vendored
2
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* 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.
|
* 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.
|
* 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 {
|
} else {
|
||||||
func = Function(params, code);
|
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) {
|
Base.each(toolHandlers, function(key) {
|
||||||
var value = exports[key];
|
var value = obj[key];
|
||||||
if (value)
|
if (value)
|
||||||
tool[key] = value;
|
tool[key] = value;
|
||||||
});
|
});
|
||||||
if (view) {
|
if (view) {
|
||||||
if (exports.onResize)
|
if (obj.onResize)
|
||||||
view.setOnResize(exports.onResize);
|
view.setOnResize(obj.onResize);
|
||||||
view.emit('resize', {
|
view.emit('resize', {
|
||||||
size: view.size,
|
size: view.size,
|
||||||
delta: new Point()
|
delta: new Point()
|
||||||
});
|
});
|
||||||
if (exports.onFrame)
|
if (obj.onFrame)
|
||||||
view.setOnFrame(exports.onFrame);
|
view.setOnFrame(obj.onFrame);
|
||||||
view.requestUpdate();
|
view.requestUpdate();
|
||||||
}
|
}
|
||||||
return exports;
|
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