diff options
author | wout <wout@impinc.co.uk> | 2012-12-30 18:54:03 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-30 18:54:03 +0100 |
commit | b663ead6ee026e4c7b6f3b971e2490222c4a3a1a (patch) | |
tree | 29e660578920c7b2bbe997030be4215b711d6070 | |
parent | cfabe5671d91b9f2acd000cdd4803fd014bfef2d (diff) | |
download | svg.js-b663ead6ee026e4c7b6f3b971e2490222c4a3a1a.tar.gz svg.js-b663ead6ee026e4c7b6f3b971e2490222c4a3a1a.zip |
Updated README
-rw-r--r-- | README.md | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -407,9 +407,7 @@ All usual events are accessible on elements: ```javascript rect.click(function() { - this.fill({ color: '#f06' }); - }); ``` @@ -422,11 +420,9 @@ Svg.js has a modular structure. It is very easy to add you own methods at differ ```javascript SVG.extend(SVG.Shape, { - paintRed: function() { return this.fill({ color: 'red' }); } - }); ``` @@ -434,11 +430,9 @@ Now all shapes will have the paintRed method available. Say we want to have the ```javascript SVG.extend(SVG.Ellipse, { - paintRed: function() { return this.fill({ color: 'orangered' }); } - }); ``` @@ -451,7 +445,6 @@ The SVG document can be extended by using: ```javascript SVG.extend(SVG.Doc, { - paintAllPink: function() { var children = this.children(); @@ -461,7 +454,6 @@ SVG.extend(SVG.Doc, { return this; } - }); ``` |