From 9138fc70007e48760a3cbfbe5a5a6709db3c905b Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 6 Mar 2014 15:24:34 +0100 Subject: [PATCH] renamed loadXYinDataset to storePosition --- dist/vis.js | 2 +- docs/graph.html | 2 +- src/graph/Graph.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/vis.js b/dist/vis.js index a781dfb1..5c2e8cb2 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -17700,7 +17700,7 @@ Graph.prototype._initializeMixinLoaders = function () { /** * Load the XY positions of the nodes into the dataset. */ -Graph.prototype.loadXYinDataset = function() { +Graph.prototype.storePosition = function() { var dataArray = []; for (var nodeId in this.nodes) { if (this.nodes.hasOwnProperty(nodeId)) { diff --git a/docs/graph.html b/docs/graph.html index 20ebaa4b..c0cd1cd7 100644 --- a/docs/graph.html +++ b/docs/graph.html @@ -1784,7 +1784,7 @@ var options: { - loadXYinDataset() + storePosition() none This will put the X and Y positions of all nodes in the dataset. It will also include allowedToMoveX and allowedToMoveY with the correct values. You can use this to stablize your graph once, then save the positions in a database so the next time you load the nodes, stabilization will be near instantaneous. diff --git a/src/graph/Graph.js b/src/graph/Graph.js index 15e44e65..ea4bf15d 100644 --- a/src/graph/Graph.js +++ b/src/graph/Graph.js @@ -1929,7 +1929,7 @@ Graph.prototype._initializeMixinLoaders = function () { /** * Load the XY positions of the nodes into the dataset. */ -Graph.prototype.loadXYinDataset = function() { +Graph.prototype.storePosition = function() { var dataArray = []; for (var nodeId in this.nodes) { if (this.nodes.hasOwnProperty(nodeId)) {