From 81af045f53b7c4e944f8d4992a0022a550b1e3e8 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 14 Apr 2015 11:34:39 +0200 Subject: client/graph_view: move translate around --- src/client/view/graph_view.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 63b1a075..97214b6f 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -55,6 +55,13 @@ function enableDebugViewOfDiffs(graph) }); } +function translate(x, y) { + if (x === undefined || y === undefined) { + console.log('oops, undefined translate'); + } + return "translate(" + x + "," + y + ")"; +} + function init_checkboxes(graph, update_view) { var // FIXME take filter names from index.html or both from graph db filter_states = _.object(_.map(model_types.nodetypes, function (type) { return [type, null]; })); @@ -1111,12 +1118,6 @@ function GraphView(spec) { d.by = d2.y; }); - function translate(x, y) { - if (x === undefined || y === undefined) { - console.log('oops, undefined translate'); - } - return "translate(" + x + "," + y + ")"; - } function transform(d, istext) { var bbox = $('#' + d.id)[0].getBBox(); -- cgit v1.3.1