From 4e56df6d9c0083d8e4e52b1f3869f20ded358a81 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 20 Feb 2013 19:30:11 +0100 Subject: [PATCH] Updated README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20a0d98..a74c996 100644 --- 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 -- 2.39.5