diff options
| author | Alon Levy <alon@pobox.com> | 2015-07-30 12:28:04 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-07-30 18:05:06 +0300 |
| commit | 09a999fdabf1f415f8a33b318ccd3551e41654d3 (patch) | |
| tree | 5b729ef6e0e9d0a018db22f4147bc22fefdf042d /src/client/view | |
| parent | 100b384a4aa88a469e27ff4d404b7266f9e3b9af (diff) | |
client: node position storing: change key format to use underscores, more cypher friendly
Diffstat (limited to 'src/client/view')
| -rw-r--r-- | src/client/view/graph_view.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 687b766f..94bb13ff 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -206,8 +206,8 @@ function GraphView(spec) { graph.diffBus.onValue(function (diff) { var relayout = !temporary && (false === model_diff.is_attr_diff(diff)), have_position = 0, - layout_x_key = 'layouts.' + layout.name + '.x', - layout_y_key = 'layouts.' + layout.name + '.y'; + layout_x_key = graph.layout_x_key(layout.name), + layout_y_key = graph.layout_y_key(layout.name); // copy position from diff based on current layout if (layout.name && diff.node_set_add) { |
