ixfx
    Preparing search index...

    Functions

    breadthLogic
    columnLogic

    Visits cells running down columns, left-to-right.

    create

    Logic types:

    • 'row': left-to-right, top-to-bottom
    • 'column': top-to-bottom, left-to-right
    • 'neighbours': neighbours surrounding cell (eight)
    • 'breadth`: breadth-first
    • 'depth': depth-first
    • 'random': any random cell in grid
    • 'random-contiguous': any random cell neighbouring an already visited cell
    depthLogic
    neighboursLogic
    randomContiguousLogic
    randomLogic
    rowLogic

    Visit by following rows. Normal order is left-to-right, top-to-bottom.

    stepper

    Runs the provided visitor for steps, returning the cell we end at

    // Create visitor & stepper
    const visitor = Grids.Visit.create(`row`);
    const stepper = Grids.Visit.stepper(grid, visitor
    visitByNeighbours

    Visits every cell in grid using supplied selection function In-built functions to use: visitorDepth, visitorBreadth, visitorRandom, visitorColumn, visitorRow.

    withLogic

    Type Aliases

    VisitorTypes