MAIDR Documentation - v3.72.1
    Preparing search index...
    • Scopes a user-provided selector to a container, prefixing the result with the container's id so it resolves uniquely under page-global lookups (document.querySelectorAll). When the container lacks an id, one is auto-assigned via ensureContainerId so every binder emits an absolutely-scoped selector without per-binder boilerplate.

      With a D3PanelScope, the emitted selector is additionally narrowed to the panel: #<svgId> [data-maidr-panel="<i>"] <selector>.

      Parameters

      • container: Element

        The root SVG container (or panel extraction root).

      • selector: string

        The user-provided CSS selector.

      • Optionalpanel: D3PanelScope

        Optional panel scope for multi-panel binds.

      Returns string

      The id-scoped selector string, e.g. #<svgId> <selector>.