diff options
author | wout <wout@impinc.co.uk> | 2014-06-25 15:05:03 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-25 15:05:03 +0200 |
commit | e567c774c17e6649041d4972defd1232ab602012 (patch) | |
tree | 05140fe4715a652c99f15672e1d56c0fc8426824 /src/sugar.js | |
parent | ec21f496bddc588e2113fd5418d713ce8ae78f39 (diff) | |
download | svg.js-e567c774c17e6649041d4972defd1232ab602012.tar.gz svg.js-e567c774c17e6649041d4972defd1232ab602012.zip |
Added SVG.Circle, removed structural internal references
Diffstat (limited to 'src/sugar.js')
-rwxr-xr-x | src/sugar.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sugar.js b/src/sugar.js index 4a8fff8..493c6c7 100755 --- a/src/sugar.js +++ b/src/sugar.js @@ -66,15 +66,13 @@ SVG.extend(SVG.Element, SVG.FX, { , opacity: function(value) { return this.attr('opacity', value) } - }) -SVG.extend(SVG.Rect, SVG.Ellipse, SVG.FX, { +SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Circle, SVG.FX, { // Add x and y radius radius: function(x, y) { - return this.attr({ rx: x, ry: y || x }) + return this.rx(x).ry(y == null ? x : y) } - }) SVG.extend(SVG.Path, { @@ -86,7 +84,6 @@ SVG.extend(SVG.Path, { , pointAt: function(length) { return this.node.getPointAtLength(length) } - }) SVG.extend(SVG.Parent, SVG.Text, SVG.FX, { @@ -103,6 +100,5 @@ SVG.extend(SVG.Parent, SVG.Text, SVG.FX, { return this } - }) |