@openvanilla/mcbopomofoweb
    Preparing search index...

    The result of a walk on the reading grid.

    Index
    edges: number
    elapsedMicroseconds: number
    nodes: Node[]
    totalReadings: number
    vertices: number
    • Makes a copy with the nodes also being copies instead of references to those in the current grid.

      For performance reasons, nodes is an array of nodes in the referenced grid. If the intent is to have the walk capture the current state of the grid before the grid mutates, the default behavior will not be enough. Instead, use this to make sure that the nodes are correctly copied.

      Returns WalkResult

    • Finds the node at a given cursor position.

      Parameters

      • cursor: number

        The cursor position.

      Returns readonly [Node | undefined, number, number | undefined]

      A tuple containing the found node, the cursor index, and the node index.