aboutsummaryrefslogtreecommitdiffstats
path: root/src/viewbox.js
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 /src/viewbox.js
parent1265eaa43b5619eabf40d626632315a13c6c23aa (diff)
downloadsvg.js-baea1166eb024e924c66a5c5e4686c12eaa5f6ee.tar.gz
svg.js-baea1166eb024e924c66a5c5e4686c12eaa5f6ee.zip
ViewBox zoom description
Diffstat (limited to 'src/viewbox.js')
-rw-r--r--src/viewbox.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewbox.js b/src/viewbox.js
index b6ccfab..0e24e97 100644
--- a/src/viewbox.js
+++ b/src/viewbox.js
@@ -24,12 +24,12 @@ SVG.ViewBox = function(element) {
}
/* calculate zoom accoring to viewbox */
- this.scale = (this.width / this.height > width / height) ?
+ this.zoom = (this.width / this.height > width / height) ?
this.height / height :
this.width / width
} else {
- this.scale = 1
+ this.zoom = 1
}
} \ No newline at end of file