diff options
author | wout <wout@impinc.co.uk> | 2013-03-07 08:07:27 +0000 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-07 08:07:27 +0000 |
commit | 16c4a146ee97fa43e0c456fe801490351e551e96 (patch) | |
tree | 42fbca3e7d2d1fe6931e68f062d9cfc51eec077d | |
parent | b75df7a1c5b0260070de9bc535e9917c100c6035 (diff) | |
download | svg.js-16c4a146ee97fa43e0c456fe801490351e551e96.tar.gz svg.js-16c4a146ee97fa43e0c456fe801490351e551e96.zip |
Updated README0.9
-rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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: |