aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-17 19:52:09 +0100
committerwout <wout@impinc.co.uk>2012-12-17 19:52:09 +0100
commit5d77bc580a389999a6e4433defdad43726409426 (patch)
treef7b87c6b80b47e0d5d447ce9f67200a61f806d83 /dist/svg.js
parentfcab9dc4d28abb27b166b7974bf07de0f9fa9fc2 (diff)
downloadsvg.js-5d77bc580a389999a6e4433defdad43726409426.tar.gz
svg.js-5d77bc580a389999a6e4433defdad43726409426.zip
New dist
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js33
1 files changed, 0 insertions, 33 deletions
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'));