server/graph/dependency/network.js
/**
   * Convert to dependency graph network.
   * @returns {DependencyNetworkData} A network of dependency graph.
   */
Convert to dependency graph network.
@returns {DependencyNetworkData} A network of dependency graph.
Convert to dependency graph network . @returns { DependencyNetworkData } A network of dependency graph .
toData() {
    return {
      number: this.index,
      x: this.x,
      y: this.y,
      height: this._layerHeight(),
      name: this.name,
      path: this.path,
      nodes: this.nodes.map((node) => node.toData()),
      tps: this.termPoints.map((tp) => tp.toData())
    }
  }
toData ( ) { return { number : this . index , x : this . x , y : this . y , height : this . _layerHeight ( ) , name : this . name , path : this . path , nodes : this . nodes . map ( ( node ) => node . toData ( ) ) , tps : this . termPoints . map ( ( tp ) => tp . toData ( ) ) } }
Convert to dependency graph network.
Convert to dependency graph network .
/**
     * @typedef {Object} DependencyNetworkData
     * @prop {number} number
     * @prop {number} x - X position of network.
     * @prop {number} y - Y position of network.
     * @prop {number} height - Height of network.
     * @prop {string} name - Name of network.
     * @prop {string} path - Path of network.
     * @prop {Array<DependencyNodeData>} nodes - Nodes in layer (node-type nodes).
     * @prop {Array<DependencyTermPointData>} tps - Term-points in layer (tp-type nodes).
     */