aboutsummaryrefslogtreecommitdiffstats
path: root/src/morph.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/morph.js
parent52a00f2e865ed7cd21e76877c77ea2afada7aea0 (diff)
downloadsvg.js-d0d4f865246845fcdd409632d499cb0f15599670.tar.gz
svg.js-d0d4f865246845fcdd409632d499cb0f15599670.zip
first tries to make transformations work
Diffstat (limited to 'src/morph.js')
-rw-r--r--src/morph.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/morph.js b/src/morph.js
index 54d7d53..bea349d 100644
--- a/src/morph.js
+++ b/src/morph.js
@@ -143,6 +143,7 @@ SVG.Morphable.NonMorphable = SVG.invent({
})
SVG.Morphable.TransformBag = SVG.invent({
+ inherit: SVG.Matrix,
create: function (obj) {
if(Array.isArray(obj)) {
obj = {
@@ -154,16 +155,14 @@ SVG.Morphable.TransformBag = SVG.invent({
translateY: obj[5]
}
}
- this.value = new SVG.Matrix(obj)
+
+ SVG.Matrix.call(this, obj)
+ //this.value = new SVG.Matrix(obj)
},
extend: {
- valueOf: function () {
- return this.value
- },
-
toArray: function (){
- var v = this.value.decompose()
+ var v = this.decompose()
return [
v.scaleX,