Cell

Cell

new Cell(x, y)

Source:
Parameters:
Name Type Description
x number
y number

Members

(readonly) x :number

Source:
Type:
  • number

(readonly) y :number

Source:
Type:
  • number

(readonly) neighbors :Array.<Neighbor>

Source:
Type:

(readonly) row :Row

Source:
Type:

(readonly) data :*

Source:
Type:
  • *

Methods

getRelativePosition(cell) → {RelativePosition}

Source:
Parameters:
Name Type Description
cell Cell
Returns:
Type
RelativePosition

getAxisCells(axis, pathopt, axisCellsopt) → {Array.<Cell>}

Source:
Example
getAxisCells(RelativePosition.AXIS.VERTICAL)
Parameters:
Name Type Attributes Default Description
axis Axis
path string <optional>
axisCells string <optional>
[]
Returns:
Type
Array.<Cell>

getNeighborByCell(cell) → {Neighbor}

Source:
Parameters:
Name Type Description
cell Cell
Returns:
Type
Neighbor