From 5d77bc580a389999a6e4433defdad43726409426 Mon Sep 17 00:00:00 2001 From: wout Date: Mon, 17 Dec 2012 19:52:09 +0100 Subject: New dist --- dist/svg.js | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'dist/svg.js') diff --git a/dist/svg.js b/dist/svg.js index f0b8cc8..62d32af 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -311,39 +311,6 @@ // inherit from SVG.Element SVG.Shape.prototype = new SVG.Element(); - - // Add shape-specific functions - SVG.Utils.merge(SVG.Shape, { - - // set fill color and opacity - fill: function(f) { - if (f.color != null) - this.attr('fill', f.color); - - if (f.opacity != null) - this.attr('fill-opacity', f.opacity); - - return this; - }, - - // set stroke color and opacity - stroke: function(s) { - if (s.color) - this.attr('stroke', s.color); - - if (s.width != null) - this.attr('stroke-width', s.width); - - if (s.opacity != null) - this.attr('stroke-opacity', s.opacity); - - if (this.attrs['fill-opacity'] == null) - this.fill({ opacity: 0 }); - - return this; - } - - }); SVG.Rect = function Rect() { this.constructor.call(this, SVG.create('rect')); -- cgit v1.2.3