summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-14 11:34:39 +0200
committerAlon Levy <alon@pobox.com>2015-04-14 13:32:38 +0200
commit81af045f53b7c4e944f8d4992a0022a550b1e3e8 (patch)
tree7493924fbfc7ef4e936bdaefbf974c7e17501476 /src/client
parentb99876f22dc728e8899255dbad31c50e07005043 (diff)
client/graph_view: move translate around
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view/graph_view.js13
1 files changed, 7 insertions, 6 deletions
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();