ixfx
    Preparing search index...

    Functions

    access

    Returns a GridCellAccessor to get values from array based on cell ({x,y}) coordinates.

    createArray

    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.

    createMutable

    Creates a GridArray1d instance given the dimensions of the grid. Use createArray if you just want to create an array sized for a grid.

    set
    setMutate

    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
    wrap

    Wraps array for grid access. Immutable, such that underlying array is not modified and a call to set returns a new GridArray1d.

    wrapMutable

    Wraps array for grid access. Mutable, meaning that array gets modified if set function is used.