summaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-07-12 21:18:26 +0200
committerwout <wout@impinc.co.uk>2014-07-12 21:18:26 +0200
commit40bf2f8ecda3f426e7f13e1d891ab1ab6e004116 (patch)
treeb3d339c104c2c0e829fd5e607428a9e077619e12 /src/fx.js
parent03f358a4d85a292c16774ba64836e0b2937df2fe (diff)
downloadsvg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.tar.gz
svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.zip
Added support for scale center on matrices
Diffstat (limited to 'src/fx.js')
-rwxr-xr-xsrc/fx.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fx.js b/src/fx.js
index 2b983c3..fb5539a 100755
--- a/src/fx.js
+++ b/src/fx.js
@@ -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) {