Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Array<Cell>
    • CellArray

Index

Constructors

constructor

Methods

cloneCells

  • cloneCells(includeChildren?: boolean, mapping?: any): CellArray
  • Returns an array of clones for the given array of Cell`. Depending on the value of includeChildren, a deep clone is created for each cell. Connections are restored based if the corresponding cell is contained in the passed in array.

    Parameters

    • includeChildren: boolean = true

      Boolean indicating if the cells should be cloned with all descendants.

    • mapping: any = {}

      Optional mapping for existing clones.

    Returns CellArray

concat

filter

filterCells

getOpposites

  • getOpposites(terminal: Cell, sources?: boolean, targets?: boolean): CellArray
  • Returns all opposite vertices wrt terminal for the given edges, only returning sources and/or targets as specified. The result is returned as an array of Cell.

    Parameters

    • terminal: Cell

      that specifies the known end of the edges.

    • sources: boolean = true

      Boolean that specifies if source terminals should be contained in the result. Default is true.

    • targets: boolean = true

      Boolean that specifies if target terminals should be contained in the result. Default is true.

    Returns CellArray

getParents

getTopmostCells

  • Returns the topmost cells of the hierarchy in an array that contains no descendants for each Cell that it contains. Duplicates should be removed in the cells array to improve performance.

    Returns CellArray

map

slice

splice

  • splice(arg0: number, ...args: any): CellArray

Generated using TypeDoc