]> source.dussan.org Git - svg.js.git/commitdiff
Updated README
authorwout <wout@impinc.co.uk>
Wed, 20 Feb 2013 18:30:11 +0000 (19:30 +0100)
committerwout <wout@impinc.co.uk>
Wed, 20 Feb 2013 18:30:11 +0000 (19:30 +0100)
README.md

index 20a0d981ad93a996fc655991bb60d5bb11ff0930..a74c99690cbb711327b9ca077d915e8600097406 100644 (file)
--- a/README.md
+++ b/README.md
@@ -65,10 +65,11 @@ var box = draw.viewbox()
 But the best thing about the `viewbox()` method is that you can get the zoom of the viewbox:
 
 ```javascript
-var zoom = draw.viewbox().zoom
+var box = draw.viewbox()
+var zoom = box.zoom
 ```
 
-If the size of the viewbox equals the side of the svg canvas, the zoom value will be 1.
+If the size of the viewbox equals the size of the svg canvas, the zoom value will be 1.
 
 ## Elements