summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-06 22:28:20 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-11-06 22:28:20 +0100
commit3cb00000586340276998144d202d7af35c47ae36 (patch)
tree6b431cf16f05efeef63e145d1d1dc6aaceede4fb /README.md
parent2702ceb26d3021720f3ff979bcf5f46fc65699e9 (diff)
downloadsvg.js-3cb00000586340276998144d202d7af35c47ae36.tar.gz
svg.js-3cb00000586340276998144d202d7af35c47ae36.zip
tab to space, block comments to line comments
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 4e75c4c..6c0b432 100644
--- a/README.md
+++ b/README.md
@@ -23,9 +23,9 @@ This will generate the following output:
```html
<div id="drawing">
- <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300">
- <rect width="100" height="100" fill="#f06"></rect>
- </svg>
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300">
+ <rect width="100" height="100" fill="#f06"></rect>
+ </svg>
</div>
```
@@ -888,13 +888,13 @@ var elements = group.select('rect.my-class').fill('#f06')
Another way is to use [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/). Here is an example:
```javascript
-/* add elements */
+// add elements
var draw = SVG('drawing')
var group = draw.group().addClass('my-group')
var rect = group.rect(100,100).addClass('my-element')
var circle = group.circle(100).addClass('my-element').move(100, 100)
-/* get elements in group */
+// get elements in group
var elements = $('#drawing g.my-group .my-element').each(function() {
this.instance.animate().fill('#f09')
})