The type of the properties of the grid cells.
Initializes a new instance of the grid cell collection.
The cells to initialize with.
Gets the cells adjacent to the current cells. Can be chained. Note: Can be slow with large collections.
Optional
distance: numberThe distance to move. Defaults to 1.
Optional
fill: booleanWhether to fill the cells. Defaults to false
.
Gets the cells diagonally from the current cells. Can be chained. Note: Can be slow with large collections.
Optional
distance: numberThe distance to move. Defaults to 1.
Optional
fill: booleanWhether to fill the cells. Defaults to false
.
Gets the cells in a specific direction from the current cells.
The direction to move.
Optional
distance: numberThe distance to move. Defaults to 1.
Optional
fill: booleanWhether to fill the cells. Defaults to false
.
Gets the cells below the current cells. Can be chained.
Optional
distance: numberThe distance to move. Defaults to 1.
Gets the cells encircling the current cells. Can be chained. Note: Can be slow with large collections.
Optional
distance: numberThe distance to move. Defaults to 1.
Optional
fill: booleanWhether to fill the cells. Defaults to false
.
Gets the cells to the left of the current cells. Can be chained.
Optional
distance: numberThe distance to move. Defaults to 1.
Gets the cells to the right of the current cells. Can be chained.
Optional
distance: numberThe distance to move. Defaults to 1.
Gets the cells a specified distance away from the current cell.
The x distance to move
The y distance to move
The translated cells
Gets the cells above the current cells. Can be chained.
Optional
distance: numberThe distance to move. Defaults to 1.
Represents a collection of grid cells.