MAIDR Documentation - v4.4.0
    Preparing search index...
    • Stamps a layer's elements and returns the selector that matches them.

      Parameters

      • elements: readonly Element[]

        The layer's drawn elements, in data order.

      • containerId: string

        Id of the plot's <svg>, which scopes the selector.

      • token: string

        Value identifying this layer within the plot.

      Returns string

      A selector matching exactly those elements.

      stampLayer(rects, 'maidr-observable-1-a3f', 'L0');
      // => '#maidr-observable-1-a3f [data-maidr-observable="L0"]'