diff options
Diffstat (limited to 'src/matrix.js')
-rw-r--r-- | src/matrix.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/matrix.js b/src/matrix.js index e9c8900..7ee2874 100644 --- a/src/matrix.js +++ b/src/matrix.js @@ -141,7 +141,11 @@ SVG.Matrix = SVG.invent({ } // Convert matrix to string , toString: function() { - return 'matrix(' + [this.a, this.b, this.c, this.d, this.e, this.f].join() + ')' + return 'matrix(' + this.toArray().join() + ')' + } + // Convert matrix to array + , toArray: function() { + return [this.a, this.b, this.c, this.d, this.e, this.f] } } |