summaryrefslogtreecommitdiff
path: root/src/client/view
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-16 21:08:20 +0200
committerAlon Levy <alon@pobox.com>2015-03-16 21:08:20 +0200
commitcb8304d24eefe57cd3ae35aa26275277af92d73d (patch)
tree9ac08205ff540258c1fce8cb676cd7bf15941b97 /src/client/view
parentbde034fb87784f42349b4527aa343b89d3999090 (diff)
client: plus/minus zoom implementation using log scale, state still in d3.behavior.zoom
Diffstat (limited to 'src/client/view')
-rw-r--r--src/client/view/graph_view.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index 1f43b634..9942e2d6 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -666,6 +666,12 @@ function GraphView(spec) {
}
gv.__set_scale_translate = set_scale_translate;
+ var scale__absolute = function (scale) {
+ set_scale_translate(scale, zoom_obj.translate());
+ }
+
+ gv.scale__absolute = scale__absolute;
+
gv.update_view = update_view;
function start_layout_animation() {
on_interval = function() {