Browse Source

Merge pull request #1481 from zefrog/setselection-method-not-exposed

Expose publicly setSelection method
codeClimate
Jos de Jong 8 years ago
parent
commit
4ccd606914
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/network/Network.js

+ 1
- 0
lib/network/Network.js View File

@ -466,6 +466,7 @@ Network.prototype.startSimulation = function() {return this.physics.startSim
Network.prototype.stopSimulation = function() {return this.physics.stopSimulation.apply(this.physics,arguments);};
Network.prototype.stabilize = function() {return this.physics.stabilize.apply(this.physics,arguments);};
Network.prototype.getSelection = function() {return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments);};
Network.prototype.setSelection = function() {return this.selectionHandler.setSelection.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.getNodeAt = function() {

Loading…
Cancel
Save