mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Make Matrix#toString() behave the same as in Scriptographer.
This commit is contained in:
parent
c6b5b11b1e
commit
14bfb4c78e
1 changed files with 3 additions and 3 deletions
|
@ -166,9 +166,9 @@ var Matrix = Base.extend({
|
|||
* "matrix(a,b,c,d,e,f)".
|
||||
*/
|
||||
toString: function() {
|
||||
// TODO: Make behave the same as in Scriptographer
|
||||
return 'matrix(' + [this._m00, this._m10, this._m01, this._m11,
|
||||
this._m02, this._m12].join(',') + ')';
|
||||
return '[['
|
||||
+ [this._m00, this._m10, this._m01].join(', ') + '], ['
|
||||
+ [this._m11, this._m02, this._m12].join(', ') + ']]';
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue