aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-06 11:34:47 +0000
committerwout <wout@impinc.co.uk>2013-03-06 11:34:47 +0000
commitf7be50c638587f5028a9c4cd54c433690c6fc671 (patch)
treeb3db521623d332e60246c57363dc0ab749dd070b /src/element.js
parent31e0a8f178185208aaf71702dadc1dbc8a6ff0eb (diff)
downloadsvg.js-f7be50c638587f5028a9c4cd54c433690c6fc671.tar.gz
svg.js-f7be50c638587f5028a9c4cd54c433690c6fc671.zip
Added during() method and unit morphing to fx module
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js7
1 files changed, 5 insertions, 2 deletions
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 */