From e567c774c17e6649041d4972defd1232ab602012 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 25 Jun 2014 15:05:03 +0200 Subject: Added SVG.Circle, removed structural internal references --- src/sugar.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/sugar.js') 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 } - }) -- cgit v1.2.3