summaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/fx.js')
-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] }