diff options
author | wout <wout@impinc.co.uk> | 2013-02-20 19:30:11 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-02-20 19:30:11 +0100 |
commit | 4e56df6d9c0083d8e4e52b1f3869f20ded358a81 (patch) | |
tree | e9f01652db6c518e684938d87071f9b4270edb10 /README.md | |
parent | baea1166eb024e924c66a5c5e4686c12eaa5f6ee (diff) | |
download | svg.js-4e56df6d9c0083d8e4e52b1f3869f20ded358a81.tar.gz svg.js-4e56df6d9c0083d8e4e52b1f3869f20ded358a81.zip |
Updated README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |