aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-03-03 00:15:45 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-03-03 00:15:45 +0100
commitcc9a4a372893d948900ce3fe83dd1324b153757d (patch)
tree5727d4a0291130e390281ac623f1bfad6a5453b0 /src
parent2eff42ea62f1ff8301000b49eae54cc8c370ee66 (diff)
downloadsvg.js-cc9a4a372893d948900ce3fe83dd1324b153757d.tar.gz
svg.js-cc9a4a372893d948900ce3fe83dd1324b153757d.zip
Fixes #258, added few fx-specs
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fx.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fx.js b/src/fx.js
index b723235..6dceb2a 100755
--- a/src/fx.js
+++ b/src/fx.js
@@ -233,6 +233,13 @@ SVG.FX = SVG.invent({
/* dlete matrixstring from object */
delete o.matrix
+ /* add rotation-center to transformations */
+ this.target.trans.cx = o.cx || null
+ this.target.trans.cy = o.cy || null
+
+ delete o.cx
+ delete o.cy
+
/* store matrix values */
for (v in o)
this.trans[v] = { from: this.target.trans[v], to: o[v] }