server/graph/nested/shallow-topology.js
/**
   * Calculate position of root nodes.
   * @protected
   */
Calculate position of root nodes.
@protected
Calculate position of root nodes . @protected
calcRootNodePosition() {
    for (const rootNode of this.rootNodes) {
      const ordinalPosition = this.grid.ordinalPositionByNodePath(rootNode.path)
      rootNode.setGridPosition(ordinalPosition)
      const basePosition = this.grid.positionByOrdinal(ordinalPosition)
      this._calcNodePosition(rootNode, basePosition, 0)
    }
  }
calcRootNodePosition ( ) { for ( const rootNode of this . rootNodes ) { const ordinalPosition = this . grid . ordinalPositionByNodePath ( rootNode . path ) rootNode . setGridPosition ( ordinalPosition ) const basePosition = this . grid . positionByOrdinal ( ordinalPosition ) this . _calcNodePosition ( rootNode , basePosition , 0 ) } }
Calculate position of root nodes.
Calculate position of root nodes .
// only root node has grid information