lib/diagram/force-simulation/position-cache.js
/**
   * Load position data to nodes in each network.
   * @param {TopologyPositionCache} storedData - Saved positions. (data)
   * @param {ForceSimulationNetworkData} networkData - Network data to load.
   * @param {ForceSimulationDiagramOperator} diagramOperator - Visualizer.
   * @private
   */
Load position data to nodes in each network.
@param {TopologyPositionCache} storedData - Saved positions. (data)
@param {ForceSimulationNetworkData} networkData - Network data to load.
@param {ForceSimulationDiagramOperator} diagramOperator - Visualizer.
@private
Load position data to nodes in each network . @param { TopologyPositionCache } storedData - Saved positions . ( data ) @param { ForceSimulationNetworkData } networkData - Network data to load . @param { ForceSimulationDiagramOperator } diagramOperator - Visualizer . @private
_loadToNetwork(storedData, networkData, diagramOperator) {
    if (!storedData.networks) {
      return
    }
    const cachedNetworkData = storedData.networks.find(
      (nw) => nw.name === networkData.name
    )
    if (cachedNetworkData) {
      this._loadToNodeData(cachedNetworkData, networkData, diagramOperator)
    }
  }
_loadToNetwork ( storedData , networkData , diagramOperator ) { if ( ! storedData . networks ) { return } const cachedNetworkData = storedData . networks . find ( ( nw ) => nw . name === networkData . name ) if ( cachedNetworkData ) { this . _loadToNodeData ( cachedNetworkData , networkData , diagramOperator ) } }
Load position data to nodes in each network.
Load position data to nodes in each network .