Browse Source

fixed getNodeAt and getEdgeAt functions

flowchartTest
Alex de Mulder 9 years ago
parent
commit
043f198860
2 changed files with 1386 additions and 1366 deletions
  1. +1372
    -1364
      dist/vis.js
  2. +14
    -2
      lib/network/Network.js

+ 1372
- 1364
dist/vis.js
File diff suppressed because it is too large
View File


+ 14
- 2
lib/network/Network.js View File

@ -466,8 +466,20 @@ Network.prototype.stabilize = function() {return this.physics.stabiliz
Network.prototype.getSelection = function() {return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments);}; Network.prototype.getSelection = function() {return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments);};
Network.prototype.getSelectedNodes = function() {return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments);}; Network.prototype.getSelectedNodes = function() {return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments);};
Network.prototype.getSelectedEdges = function() {return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments);}; Network.prototype.getSelectedEdges = function() {return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments);};
Network.prototype.getNodeAt = function() {return this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);};
Network.prototype.getEdgeAt = function() {return this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);};
Network.prototype.getNodeAt = function() {
var node = this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);
if (node !== undefined && node.id !== undefined) {
return node.id;
}
return node;
};
Network.prototype.getEdgeAt = function() {
var edge = this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);
if (edge !== undefined && edge.id !== undefined) {
return edge.id;
}
return edge;
};
Network.prototype.selectNodes = function() {return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments);}; Network.prototype.selectNodes = function() {return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments);};
Network.prototype.selectEdges = function() {return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments);}; Network.prototype.selectEdges = function() {return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments);};
Network.prototype.unselectAll = function() {return this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments);}; Network.prototype.unselectAll = function() {return this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments);};

Loading…
Cancel
Save