Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements a mechanism for temporary cell Ids.

Hierarchy

  • mxCellPath

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static PATH_SEPARATOR

PATH_SEPARATOR: string

Defines the separator between the path components. Default is ".".

Methods

Static compare

  • compare(p1: string, p2: string): number
  • Compares the given cell paths and returns -1 if p1 is smaller, 0 if p1 is equal and 1 if p1 is greater than p2.

    Parameters

    • p1: string
    • p2: string

    Returns number

Static create

  • create(cell: mxCell): string
  • Creates the cell path for the given cell. The cell path is a concatenation of the indices of all ancestors on the (finite) path to the root, eg. "0.0.0.1".

    Parameters:

    cell - Cell whose path should be returned.

    Parameters

    Returns string

Static getParentPath

  • getParentPath(path: string): string
  • Returns the path for the parent of the cell represented by the given path. Returns null if the given path has no parent.

    Parameters:

    path - Path whose parent path should be returned.

    Parameters

    • path: string

    Returns string

Static resolve

  • resolve(root: string, path: string): string
  • Returns the cell for the specified cell path using the given root as the root of the path.

    Parameters:

    root - Root cell of the path to be resolved. path - String that defines the path.

    Parameters

    • root: string
    • path: string

    Returns string

Generated using TypeDoc