summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-02-20 19:28:54 +0100
committerwout <wout@impinc.co.uk>2013-02-20 19:28:54 +0100
commitbaea1166eb024e924c66a5c5e4686c12eaa5f6ee (patch)
tree91ffe126387a09e7af3c744191199b34eda87c38 /README.md
parent1265eaa43b5619eabf40d626632315a13c6c23aa (diff)
downloadsvg.js-baea1166eb024e924c66a5c5e4686c12eaa5f6ee.tar.gz
svg.js-baea1166eb024e924c66a5c5e4686c12eaa5f6ee.zip
ViewBox zoom description
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 05db23f..20a0d98 100644
--- a/README.md
+++ b/README.md
@@ -62,12 +62,13 @@ Without any attributes a an instance of `SVG.ViewBox` will be returned:
var box = draw.viewbox()
```
-But the best thing about the `viewbox()` method is that you can get the scale of the viewbox:
+But the best thing about the `viewbox()` method is that you can get the zoom of the viewbox:
```javascript
-var scale = draw.viewbox().scale
+var zoom = draw.viewbox().zoom
```
+If the size of the viewbox equals the side of the svg canvas, the zoom value will be 1.
## Elements