diff options
author | wout <wout@impinc.co.uk> | 2014-01-29 21:20:58 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-01-29 21:20:58 +0100 |
commit | 5b6736666dd85f8a063b87e6c6483ea47be4391c (patch) | |
tree | 139b35c98807ac36cad095af13ef45495958b78f /src/ellipse.js | |
parent | 9688054367938f1e9240c2d8572e94bb0149bc77 (diff) | |
download | svg.js-5b6736666dd85f8a063b87e6c6483ea47be4391c.tar.gz svg.js-5b6736666dd85f8a063b87e6c6483ea47be4391c.zip |
Added SVG.PathArray, updated data() and bumped to v1.0rc1
Diffstat (limited to 'src/ellipse.js')
-rwxr-xr-x | src/ellipse.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ellipse.js b/src/ellipse.js index 86186c9..237a5ca 100755 --- a/src/ellipse.js +++ b/src/ellipse.js @@ -34,9 +34,11 @@ SVG.extend(SVG.Ellipse, { } // Custom size function , size: function(width, height) { + var p = this._proportionalSize(width, height) + return this.attr({ - rx: new SVG.Number(width).divide(2) - , ry: new SVG.Number(height).divide(2) + rx: new SVG.Number(p.width).divide(2) + , ry: new SVG.Number(p.height).divide(2) }) } |