mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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)".
|
* "matrix(a,b,c,d,e,f)".
|
||||||
*/
|
*/
|
||||||
toString: function() {
|
toString: function() {
|
||||||
// TODO: Make behave the same as in Scriptographer
|
return '[['
|
||||||
return 'matrix(' + [this._m00, this._m10, this._m01, this._m11,
|
+ [this._m00, this._m10, this._m01].join(', ') + '], ['
|
||||||
this._m02, this._m12].join(',') + ')';
|
+ [this._m11, this._m02, this._m12].join(', ') + ']]';
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue