aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-07 08:07:27 +0000
committerwout <wout@impinc.co.uk>2013-03-07 08:07:27 +0000
commit16c4a146ee97fa43e0c456fe801490351e551e96 (patch)
tree42fbca3e7d2d1fe6931e68f062d9cfc51eec077d
parentb75df7a1c5b0260070de9bc535e9917c100c6035 (diff)
downloadsvg.js-16c4a146ee97fa43e0c456fe801490351e551e96.tar.gz
svg.js-16c4a146ee97fa43e0c456fe801490351e551e96.zip
Updated README0.9
-rw-r--r--README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index bcaf63f..228aedd 100644
--- a/README.md
+++ b/README.md
@@ -848,7 +848,6 @@ _SVG.Ellipse < SVG.Shape < SVG.Element_
The SVG document can be extended by using:
```javascript
-
SVG.extend(SVG.Doc, {
paintAllPink: function() {
var children = this.children()
@@ -862,6 +861,17 @@ SVG.extend(SVG.Doc, {
})
```
+You can also extend multiple elements at once:
+```javascript
+SVG.extend(SVG.Ellipse, SVG.Path, SVG.Polygon, {
+ paintRed: function() {
+ return this.fill({ color: 'orangered' })
+ }
+})
+
+```
+
+
## Plugins
Here are a few nice plugins that are available for svg.js: