mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Implement a better way to name and export class constructors.
This change also simplified the way classes are exported to PaperScope objects.
This commit is contained in:
parent
15b1ea7af0
commit
10d5de3ed6
45 changed files with 127 additions and 154 deletions
src/basic
|
@ -37,9 +37,7 @@
|
|||
* knowledge of the underlying matrix (as opposed to say simply performing
|
||||
* matrix multiplication).
|
||||
*/
|
||||
var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
||||
_class: 'Matrix',
|
||||
|
||||
var Matrix = Base.extend(/** @lends Matrix# */{
|
||||
/**
|
||||
* Creates a 2D affine transform.
|
||||
*
|
||||
|
@ -50,7 +48,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
* @param {Number} tx The translateX coordinate of the transform
|
||||
* @param {Number} ty The translateY coordinate of the transform
|
||||
*/
|
||||
initialize: function(arg) {
|
||||
initialize: function Matrix(arg) {
|
||||
var count = arguments.length,
|
||||
ok = true;
|
||||
if (count == 6) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue