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).
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>.