From fcd6e44c53ba2777f9153754f6e788d6b57dc10d Mon Sep 17 00:00:00 2001 From: anvaka Date: Tue, 3 Feb 2015 23:48:15 -0800 Subject: [PATCH] Use symmetric API for constantLayout --- src/Layout/constant.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Layout/constant.js b/src/Layout/constant.js index 21efe78..758c51a 100644 --- a/src/Layout/constant.js +++ b/src/Layout/constant.js @@ -154,8 +154,8 @@ function constant(graph, userSettings) { /** * Sets position of a node to a given coordinates */ - setNodePosition: function (node, x, y) { - var pos = layoutNodes[node.id]; + setNodePosition: function (nodeId, x, y) { + var pos = layoutNodes[nodeId]; if (pos) { pos.x = x; pos.y = y;