|
|
@ -221,7 +221,7 @@ Network.prototype._updateVisibleIndices = function () { |
|
|
|
*/ |
|
|
|
Network.prototype.bindEventListeners = function () { |
|
|
|
// this event will trigger a rebuilding of the cache everything. Used when nodes or edges have been added or removed.
|
|
|
|
this.body.emitter.on("_dataChanged", (params) => { |
|
|
|
this.body.emitter.on("_dataChanged", () => { |
|
|
|
// update shortcut lists
|
|
|
|
this._updateVisibleIndices(); |
|
|
|
this.physics.updatePhysicsIndices(); |
|
|
@ -238,7 +238,7 @@ Network.prototype.bindEventListeners = function () { |
|
|
|
// start simulation (can be called safely, even if already running)
|
|
|
|
this.body.emitter.emit("startSimulation"); |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -250,7 +250,6 @@ Network.prototype.bindEventListeners = function () { |
|
|
|
* {String} [dot] String containing data in DOT format |
|
|
|
* {String} [gephi] String containing data in gephi JSON format |
|
|
|
* {Options} [options] Object with options |
|
|
|
* @param {Boolean} [disableStart] | optional: disable the calling of the start function. |
|
|
|
*/ |
|
|
|
Network.prototype.setData = function (data) { |
|
|
|
// reset the physics engine.
|
|
|
@ -391,45 +390,45 @@ Network.prototype.isActive = function () { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Network.prototype.setSize = function() {this.canvas.setSize.apply(this.canvas,arguments);} |
|
|
|
Network.prototype.canvasToDOM = function() {this.canvas.canvasToDOM.apply(this.canvas,arguments);} |
|
|
|
Network.prototype.DOMtoCanvas = function() {this.canvas.setSize.DOMtoCanvas(this.canvas,arguments);} |
|
|
|
Network.prototype.findNode = function() {this.clustering.findNode.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.isCluster = function() {this.clustering.isCluster.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.openCluster = function() {this.clustering.openCluster.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.cluster = function() {this.clustering.cluster.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.clusterByConnection = function() {this.clustering.clusterByConnection.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.clusterByHubsize = function() {this.clustering.clusterByHubsize.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.clusterOutliers = function() {this.clustering.clusterOutliers.apply(this.clustering,arguments);} |
|
|
|
Network.prototype.getSeed = function() {this.layoutEngine.getSeed.apply(this.layoutEngine,arguments);} |
|
|
|
Network.prototype.enableEditMode = function() {this.manipulation.enableEditMode.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.disableEditMode = function() {this.manipulation.disableEditMode.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.addNodeMode = function() {this.manipulation.addNodeMode.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.editNodeMode = function() {this.manipulation.editNodeMode.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.addEdgeMode = function() {this.manipulation.addEdgeMode.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.editEdgeMode = function() {this.manipulation.editEdgeMode.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.deleteSelected = function() {this.manipulation.deleteSelected.apply(this.manipulation,arguments);} |
|
|
|
Network.prototype.getPositions = function() {this.nodesHandler.getPositions.apply(this.nodesHandler,arguments);} |
|
|
|
Network.prototype.storePositions = function() {this.nodesHandler.storePositions.apply(this.nodesHandler,arguments);} |
|
|
|
Network.prototype.getBoundingBox = function() {this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments);} |
|
|
|
Network.prototype.getConnectedNodes = function() {this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments);} |
|
|
|
Network.prototype.getEdges = function() {this.nodesHandler.getEdges.apply(this.nodesHandler,arguments);} |
|
|
|
Network.prototype.startSimulation = function() {this.physics.startSimulation.apply(this.physics,arguments);} |
|
|
|
Network.prototype.stopSimulation = function() {this.physics.stopSimulation.apply(this.physics,arguments);} |
|
|
|
Network.prototype.stabilize = function() {this.physics.stabilize.apply(this.physics,arguments);} |
|
|
|
Network.prototype.getSelection = function() {this.selectionHandler.getSelection.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.getSelectedNodes = function() {this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.getSelectedEdges = function() {this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.getNodeAt = function() {this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.getEdgeAt = function() {this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.selectNodes = function() {this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.selectEdges = function() {this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.unselectAll = function() {this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments);} |
|
|
|
Network.prototype.getScale = function() {this.view.getScale.apply(this.view,arguments);} |
|
|
|
Network.prototype.getPosition = function() {this.view.getPosition.apply(this.view,arguments);} |
|
|
|
Network.prototype.fit = function() {this.view.fit.apply(this.view,arguments);} |
|
|
|
Network.prototype.moveTo = function() {this.view.moveTo.apply(this.view,arguments);} |
|
|
|
Network.prototype.focusOnNode = function() {this.view.focusOnNode.apply(this.view,arguments);} |
|
|
|
Network.prototype.releaseNode = function() {this.view.releaseNode.apply(this.view,arguments);} |
|
|
|
Network.prototype.setSize = function() {this.canvas.setSize.apply(this.canvas,arguments);}; |
|
|
|
Network.prototype.canvasToDOM = function() {this.canvas.canvasToDOM.apply(this.canvas,arguments);}; |
|
|
|
Network.prototype.DOMtoCanvas = function() {this.canvas.setSize.DOMtoCanvas(this.canvas,arguments);}; |
|
|
|
Network.prototype.findNode = function() {this.clustering.findNode.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.isCluster = function() {this.clustering.isCluster.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.openCluster = function() {this.clustering.openCluster.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.cluster = function() {this.clustering.cluster.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.clusterByConnection = function() {this.clustering.clusterByConnection.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.clusterByHubsize = function() {this.clustering.clusterByHubsize.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.clusterOutliers = function() {this.clustering.clusterOutliers.apply(this.clustering,arguments);}; |
|
|
|
Network.prototype.getSeed = function() {this.layoutEngine.getSeed.apply(this.layoutEngine,arguments);}; |
|
|
|
Network.prototype.enableEditMode = function() {this.manipulation.enableEditMode.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.disableEditMode = function() {this.manipulation.disableEditMode.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.addNodeMode = function() {this.manipulation.addNodeMode.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.editNodeMode = function() {this.manipulation.editNodeMode.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.addEdgeMode = function() {this.manipulation.addEdgeMode.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.editEdgeMode = function() {this.manipulation.editEdgeMode.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.deleteSelected = function() {this.manipulation.deleteSelected.apply(this.manipulation,arguments);}; |
|
|
|
Network.prototype.getPositions = function() {this.nodesHandler.getPositions.apply(this.nodesHandler,arguments);}; |
|
|
|
Network.prototype.storePositions = function() {this.nodesHandler.storePositions.apply(this.nodesHandler,arguments);}; |
|
|
|
Network.prototype.getBoundingBox = function() {this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments);}; |
|
|
|
Network.prototype.getConnectedNodes = function() {this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments);}; |
|
|
|
Network.prototype.getEdges = function() {this.nodesHandler.getEdges.apply(this.nodesHandler,arguments);}; |
|
|
|
Network.prototype.startSimulation = function() {this.physics.startSimulation.apply(this.physics,arguments);}; |
|
|
|
Network.prototype.stopSimulation = function() {this.physics.stopSimulation.apply(this.physics,arguments);}; |
|
|
|
Network.prototype.stabilize = function() {this.physics.stabilize.apply(this.physics,arguments);}; |
|
|
|
Network.prototype.getSelection = function() {this.selectionHandler.getSelection.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.getSelectedNodes = function() {this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.getSelectedEdges = function() {this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.getNodeAt = function() {this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.getEdgeAt = function() {this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.selectNodes = function() {this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.selectEdges = function() {this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.unselectAll = function() {this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments);}; |
|
|
|
Network.prototype.getScale = function() {this.view.getScale.apply(this.view,arguments);}; |
|
|
|
Network.prototype.getPosition = function() {this.view.getPosition.apply(this.view,arguments);}; |
|
|
|
Network.prototype.fit = function() {this.view.fit.apply(this.view,arguments);}; |
|
|
|
Network.prototype.moveTo = function() {this.view.moveTo.apply(this.view,arguments);}; |
|
|
|
Network.prototype.focusOnNode = function() {this.view.focusOnNode.apply(this.view,arguments);}; |
|
|
|
Network.prototype.releaseNode = function() {this.view.releaseNode.apply(this.view,arguments);}; |
|
|
|
|
|
|
|
module.exports = Network; |