GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — CellPath | @maxgraph/core

  • CellPath

Class CellPath

Implements a mechanism for temporary cell Ids. CellPath

  • Defined in view/cell/CellPath.ts:25
Index

Constructors

constructor

Properties

PATH_SEPARATOR

Methods

compare create getParentPath resolve

Constructors

constructor

  • new CellPath(): CellPath

    Returns CellPath

    • Defined in view/cell/CellPath.ts:26

Properties

StaticPATH_SEPARATOR

PATH_SEPARATOR: string = '.'

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

  • Defined in view/cell/CellPath.ts:33

Methods

Staticcompare

  • 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

    • Defined in view/cell/CellPath.ts:103

Staticcreate

  • create(cell: Cell): 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

      Cell whose path should be returned.

    Returns string

    • Defined in view/cell/CellPath.ts:42

StaticgetParentPath

  • getParentPath(path: string): string | null

    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: string

      Path whose parent path should be returned.

    Returns string | null

    • Defined in view/cell/CellPath.ts:68

Staticresolve

  • resolve(root: Cell, path: string): Cell

    Returns the cell for the specified cell path using the given root as the root of the path.

    Parameters

    • root: Cell

      Root cell of the path to be resolved.

    • path: string

      String that defines the path.

    Returns Cell

    • Defined in view/cell/CellPath.ts:88

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
PATH_SEPARATOR
Methods
comparecreategetParentPathresolve
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.