Creates a 1-dimensional array to fit a grid of rows x cols. Use createArray if you want to create this array and wrap it for grid access.
Creates a GridArray1d instance given the dimensions of the grid. Use createArray if you just want to create an array sized for a grid.
Returns a GridCellSetter that can mutate array values based on cell {x,y} positions.
const arr = [
1,2,3,
4,5,6
]
const a = setMutate(arr, 3);
a(10, {x:0,y:0});
a(20, {x:2, y:2
Wraps array for grid access.
Immutable, such that underlying array is not modified and a
call to set returns a new GridArray1d.
Wraps array for grid access.
Mutable, meaning that array gets modified if set function is used.
Returns a GridCellAccessor to get values from
arraybased on cell ({x,y}) coordinates.