diff options
author | wout <wout@impinc.co.uk> | 2012-12-29 15:39:40 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-29 15:39:40 +0100 |
commit | 95c7db4d86c429ce4ade55b2f4fec96126640d11 (patch) | |
tree | 27735bb6dde7d33aedff157da78e95b462c80594 /src/ellipse.js | |
parent | 5fc94f8c98602d8c5081e9f3c67cb409ff75eb56 (diff) | |
download | svg.js-95c7db4d86c429ce4ade55b2f4fec96126640d11.tar.gz svg.js-95c7db4d86c429ce4ade55b2f4fec96126640d11.zip |
Improved container
Diffstat (limited to 'src/ellipse.js')
-rw-r--r-- | src/ellipse.js | 4 |
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)) }); } |