diff options
author | wout <wout@impinc.co.uk> | 2014-07-12 21:18:26 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-07-12 21:18:26 +0200 |
commit | 40bf2f8ecda3f426e7f13e1d891ab1ab6e004116 (patch) | |
tree | b3d339c104c2c0e829fd5e607428a9e077619e12 /src/fx.js | |
parent | 03f358a4d85a292c16774ba64836e0b2937df2fe (diff) | |
download | svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.tar.gz svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.zip |
Added support for scale center on matrices
Diffstat (limited to 'src/fx.js')
-rwxr-xr-x | src/fx.js | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -226,26 +226,26 @@ SVG.FX = SVG.invent({ } // Add animatable transformations , transform: function(o, v) { - if (arguments.length == 1) { - /* parse matrix string */ - o = parseMatrix(o) + // if (arguments.length == 1) { + // /* parse matrix string */ + // o = parseMatrix(o) - /* dlete matrixstring from object */ - delete o.matrix + // /* dlete matrixstring from object */ + // delete o.matrix - /* store matrix values */ - for (v in o) - this.trans[v] = { from: this.target.trans[v], to: o[v] } + // /* store matrix values */ + // for (v in o) + // this.trans[v] = { from: this.target.trans[v], to: o[v] } - } else { - /* apply transformations as object if key value arguments are given*/ - var transform = {} - transform[o] = v + // } else { + // /* apply transformations as object if key value arguments are given*/ + // var transform = {} + // transform[o] = v - this.transform(transform) - } + // this.transform(transform) + // } - return this + // return this } // Add animatable styles , style: function(s, v) { |