summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-05-03 19:29:37 +0300
committerAlon Levy <alon@pobox.com>2015-05-03 19:38:27 +0300
commit6a9d18f2b00ae37ccf73c9ef28304f3bef24bcdc (patch)
treed8df31d3ae49ad9d0bddbb66cc03c10ac5a58153 /src/client/view/graph_view.js
parent0dd1f3e1eacb905b5de4e74e6a1edb1bcbcc922b (diff)
client/graph_view: make nodes__user_visible available locally
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index cdfbc063..7953b93b 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -892,7 +892,7 @@ function GraphView(spec) {
];
}
- gv.nodes__user_visible = function(nodes, zoom_if_visible) {
+ function nodes__user_visible(nodes, zoom_if_visible) {
if (nodes.length == 0) {
return;
}
@@ -924,7 +924,8 @@ function GraphView(spec) {
if (zoom_if_visible || (!x_in_view || !y_in_view)) {
set_scale_translate(min_scale, [x_translate, y_translate]);
}
- }
+ };
+ gv.nodes__user_visible = nodes__user_visible;
var set_scale_translate = function(scale, translate) {
var current_scale = zoom_obj.scale(),