Browse Source

renamed loadXYinDataset to storePosition

css_transitions
Alex de Mulder 10 years ago
parent
commit
9138fc7000
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      dist/vis.js
  2. +1
    -1
      docs/graph.html
  3. +1
    -1
      src/graph/Graph.js

+ 1
- 1
dist/vis.js View File

@ -17700,7 +17700,7 @@ Graph.prototype._initializeMixinLoaders = function () {
/** /**
* Load the XY positions of the nodes into the dataset. * Load the XY positions of the nodes into the dataset.
*/ */
Graph.prototype.loadXYinDataset = function() {
Graph.prototype.storePosition = function() {
var dataArray = []; var dataArray = [];
for (var nodeId in this.nodes) { for (var nodeId in this.nodes) {
if (this.nodes.hasOwnProperty(nodeId)) { if (this.nodes.hasOwnProperty(nodeId)) {

+ 1
- 1
docs/graph.html View File

@ -1784,7 +1784,7 @@ var options: {
</td> </td>
</tr> </tr>
<tr> <tr>
<td>loadXYinDataset()</td>
<td>storePosition()</td>
<td>none</td> <td>none</td>
<td>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. <td>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. 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.

+ 1
- 1
src/graph/Graph.js View File

@ -1929,7 +1929,7 @@ Graph.prototype._initializeMixinLoaders = function () {
/** /**
* Load the XY positions of the nodes into the dataset. * Load the XY positions of the nodes into the dataset.
*/ */
Graph.prototype.loadXYinDataset = function() {
Graph.prototype.storePosition = function() {
var dataArray = []; var dataArray = [];
for (var nodeId in this.nodes) { for (var nodeId in this.nodes) {
if (this.nodes.hasOwnProperty(nodeId)) { if (this.nodes.hasOwnProperty(nodeId)) {

Loading…
Cancel
Save