From f7be50c638587f5028a9c4cd54c433690c6fc671 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 6 Mar 2013 11:34:47 +0000 Subject: Added during() method and unit morphing to fx module --- src/element.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/element.js') diff --git a/src/element.js b/src/element.js index 05008a8..63f8c31 100644 --- a/src/element.js +++ b/src/element.js @@ -199,8 +199,11 @@ SVG.extend(SVG.Element, { /* add rotation */ if (o.rotation != 0) { - var box = this.bbox() - transform.push('rotate(' + o.rotation + ',' + (o.cx != null ? o.cx : box.cx) + ',' + (o.cy != null ? o.cy : box.cy) + ')') + transform.push( + 'rotate(' + o.rotation + ',' + + (o.cx != null ? o.cx : this.bbox().cx) + ',' + + (o.cy != null ? o.cy : this.bbox().cy) + ')' + ) } /* add scale */ -- cgit v1.2.3