Skip to content

Commit

Permalink
Use symmetric API for constantLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
anvaka committed Feb 4, 2015
1 parent 39e6bbb commit fcd6e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layout/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fcd6e44

Please sign in to comment.