summaryrefslogtreecommitdiffstats
path: root/src/ellipse.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-29 15:39:40 +0100
committerwout <wout@impinc.co.uk>2012-12-29 15:39:40 +0100
commit95c7db4d86c429ce4ade55b2f4fec96126640d11 (patch)
tree27735bb6dde7d33aedff157da78e95b462c80594 /src/ellipse.js
parent5fc94f8c98602d8c5081e9f3c67cb409ff75eb56 (diff)
downloadsvg.js-95c7db4d86c429ce4ade55b2f4fec96126640d11.tar.gz
svg.js-95c7db4d86c429ce4ade55b2f4fec96126640d11.zip
Improved container
Diffstat (limited to 'src/ellipse.js')
-rw-r--r--src/ellipse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ellipse.js b/src/ellipse.js
index 006f89f..6280792 100644
--- a/src/ellipse.js
+++ b/src/ellipse.js
@@ -27,8 +27,8 @@ SVG.extend(SVG.Ellipse, {
// position element by its center
center: function(x, y) {
return this.attr({
- cx: (x || ((this.attrs.x || 0) + (this.attrs.rx || 0))),
- cy: (y || ((this.attrs.y || 0) + (this.attrs.ry || 0)))
+ cx: x || ((this.attrs.x || 0) + (this.attrs.rx || 0)),
+ cy: y || ((this.attrs.y || 0) + (this.attrs.ry || 0))
});
}