aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-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: