MAIDR JavaScript API
    Preparing search index...

    Function readOverlayRegions

    • Reads the plot area and painted-over areas back off an overlay layer, in screen coordinates.

      Parameters

      • layer: Element

        The overlay layer

      Returns { plotArea: PixelRect | null; exclude: PixelRect[] }

      The plot area, or null when none was written, and the areas to treat as background