aboutsummaryrefslogtreecommitdiffstats
path: root/src/matrix.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-06-02 13:51:18 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-06-02 13:51:18 +0200
commitd0d4f865246845fcdd409632d499cb0f15599670 (patch)
tree53ba8c445df53e7cf385df3018c40257f4806020 /src/matrix.js
parent52a00f2e865ed7cd21e76877c77ea2afada7aea0 (diff)
downloadsvg.js-d0d4f865246845fcdd409632d499cb0f15599670.tar.gz
svg.js-d0d4f865246845fcdd409632d499cb0f15599670.zip
first tries to make transformations work
Diffstat (limited to 'src/matrix.js')
-rw-r--r--src/matrix.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/matrix.js b/src/matrix.js
index a8e92aa..0d72fea 100644
--- a/src/matrix.js
+++ b/src/matrix.js
@@ -331,6 +331,17 @@ SVG.Matrix = SVG.invent({
toArray: function () {
return [this.a, this.b, this.c, this.d, this.e, this.f]
+ },
+
+ valueOf: function () {
+ return {
+ a: this.a,
+ b: this.b,
+ c: this.c,
+ d: this.d,
+ e: this.e,
+ f: this.f
+ }
}
},