diff options
author | wout <wout@impinc.co.uk> | 2012-12-29 15:20:50 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-29 15:20:50 +0100 |
commit | 331068a979be8b735e92f074ce0d2438f5f2127b (patch) | |
tree | 25983c08fc3c28ab7bdf5c394a4800b3b095d092 /src/ellipse.js | |
parent | a20c0b1430fb97ff203a9afd6ba6945cf18e58d1 (diff) | |
download | svg.js-331068a979be8b735e92f074ce0d2438f5f2127b.tar.gz svg.js-331068a979be8b735e92f074ce0d2438f5f2127b.zip |
Added polyline and polygon, removed cicle
Diffstat (limited to 'src/ellipse.js')
-rw-r--r-- | src/ellipse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ellipse.js b/src/ellipse.js index d897969..006f89f 100644 --- a/src/ellipse.js +++ b/src/ellipse.js @@ -20,7 +20,7 @@ SVG.extend(SVG.Ellipse, { // custom size function size: function(w, h) { return this. - attr({ rx: w / 2, ry: h / 2 }). + attr({ rx: w / 2, ry: (h != null ? h : w) / 2 }). center(); }, |