MAIDR JavaScript API
    Preparing search index...

    Function syncHighlightCopies

    • Moves MAIDR's copies of the chart's marks to where the marks now are.

      MAIDR outlines a mark by copying it when the plot takes focus: a hidden copy straight after the mark, and the visible outline copied from that. Nivo moves a mark by rewriting its attributes rather than replacing it, so after a resize, or when focus arrives while react-spring is still animating the chart in, the copies keep the geometry the mark had when they were made. This carries the mark's geometry over to every copy of it that names the same mark — the ones this adapter's selectors point at — so the next outline, and the one showing, sit on the mark again.

      Copies of marks that carry no naming attribute (the parts of a box, and the edges and whiskers the core derives from them) are left as they are.

      Parameters

      • container: HTMLElement

        The chart's container

      Returns void