lib/diagram/force-simulation/visualizer.js
/**
   * Draw diagrams of each network.
   * @private
   */
Draw diagrams of each network.
@private
Draw diagrams of each network . @private
_drawNetworkDiagrams() {
    this._clearAllDiagrams()
    const callback = (path) => this._findNodeDataByPath(path)
    for (const networkData of this.topologyData) {
      const networkDiagram = new ForceSimulationDiagramOperator(
        networkData,
        callback
      )
      this.positionCache.loadToTopologyData(
        this.storageKey,
        networkData,
        networkDiagram
      )
      networkDiagram.restartSimulation()
      this.diagramOperators.push(networkDiagram)
    }
  }
_drawNetworkDiagrams ( ) { this . _clearAllDiagrams ( ) const callback = ( path ) => this . _findNodeDataByPath ( path ) for ( const networkData of this . topologyData ) { const networkDiagram = new ForceSimulationDiagramOperator ( networkData , callback ) this . positionCache . loadToTopologyData ( this . storageKey , networkData , networkDiagram ) networkDiagram . restartSimulation ( ) this . diagramOperators . push ( networkDiagram ) } }
Draw diagrams of each network.
Draw diagrams of each network .
// hand-over the operation through all layers // NOTICE: BIND `this` // entry-point: draw each layer /** @type {ForceSimulationDiagramOperator} */