MAIDR JavaScript API
    Preparing search index...

    Function findNamedCell

    • Finds the node a name belongs to in a hierarchy or a graph, so a layer switch keeps the reader on the same node when both layers draw it.

      The cursor's own cell first, when it already carries the name -- of two siblings both called "Other", the reader stays on the one they were on -- then the first match at the cursor's depth, then the first at any depth from the top. A name matches exactly, or failing that when one of the two is the other with a note in parentheses after it: one layer of a Cynefin framework announces "Complex (Probe → Sense → Respond, Emergent Practices)" where the other draws "Complex". Two names with different notes are different nodes.

      Parameters

      • levels: readonly (readonly ({ name: string } | null | undefined)[])[]

        The nodes, by depth and position, with gaps as null

      • name: string

        The name to find

      • row: number

        The cursor's depth

      • col: number

        The cursor's position at that depth

      Returns Coordinate | null

      Where the node is, or null when no node carries the name