MAIDR Documentation - v4.4.0
    Preparing search index...

    Everything the runtime needs to turn a MAIDR navigation position back into a Tableau mark selection.

    Positions are addressed exactly as MAIDR addresses them, so a lookup is an index rather than a search:

    • a bar or pie layer is one row, so its cells live at [0][col];
    • a grouped layer (dodged/stacked bars, multi-series lines and areas) is one row per series, in the same order as the layer's outer data array — note that SegmentedTrace appends a synthetic "Total" row of its own, and that row deliberately has no entry here: a total is not a mark; the lookup misses and the runtime clears the selection instead;
    • a heat layer's rows are reversed to match Heatmap's own constructor, which flips y and points so row 0 is the bottom of the drawn grid;
    • a point cloud is addressed by pointIndices rather than by row/column, so it lives in SelectionIndex.points instead.

    A null entry means the position is not addressable — a rectangularized filler cell that no mark was ever drawn for, or a row whose dimension value is missing. The runtime clears the selection for those rather than selecting something adjacent.

    interface SelectionIndex {
        cells: Map<string, (readonly TableauSelectionCriteria[] | null)[][]>;
        points: Map<string, (readonly TableauSelectionCriteria[] | null)[]>;
        worksheets: Map<string, string>;
    }
    Index

    Properties

    cells: Map<string, (readonly TableauSelectionCriteria[] | null)[][]>

    Layer id → [row][col] → criteria for that cell, or null.

    points: Map<string, (readonly TableauSelectionCriteria[] | null)[]>

    Layer id → per-data-index criteria, for point clouds only.

    worksheets: Map<string, string>

    Layer id → the name of the worksheet that layer was built from.

    A worksheet that yields no layer contributes no subplot, so a layer id is the index among the survivors and does not line up with the caller's own worksheet list. The binder needs the correspondence to route a selection to the right worksheet, and only the extractor knows which snapshots survived.