The type of the properties of the grid cell.
Initializes a new instance of the grid cell. Note: The properties are copied using object spread to prevent reference sharing. This may break with getters and setters.
The x-coordinate.
The y-coordinate.
The properties to initialize with.
The symbol of the grid the cell belongs to.
Gets the value of a property on the cell.
The name of the property.
Use get instead.
The properties of the cell.
Sets the value of a property on the cell.
The name of the property.
The value to set.
The set value.
Use set instead.
The x-coordinate of the cell.
The y-coordinate of the cell.
The grid instance the cell belongs to.
Gets the cell in a specific direction from the current cell.
The direction to move.
The distance to move. Defaults to 1.
Optional
fill: booleanWhether to fill the cells. Defaults to false
.
Gets the cell below the current cell. Can be chained.
The distance to move. Defaults to 1.
Gets the value of a property on the cell.
The name of the property.
Gets the cell to the left of the current cell. Can be chained.
The distance to move. Defaults to 1.
Gets the cell to the right of the current cell. Can be chained.
The distance to move. Defaults to 1.
Sets the value of a property on the cell.
The name of the property.
The value to set.
The set value.
Gets the cell a specified distance away from the current cell.
The x distance to move
The y distance to move
The translated cell
Gets the cell to the right of the current cell. Can be chained.
The distance to move. Defaults to 1.
Represents a grid cell with coordinates and properties.