MAIDR Documentation - v3.65.0
    Preparing search index...

    Function queryD3Elements

    • Queries all matching elements within a container and returns them with their D3-bound data.

      Parameters

      • container: Element

        The root element (typically an SVG) to query within.

      • selector: string

        CSS selector for the target elements.

      Returns { element: Element; datum: unknown; index: number }[]

      Array of { element, datum, index } tuples.

      Error if the selector is empty.