react-pdf-highlighter-extended
ViewportPosition: {
    boundingRect: LTWHP;
    rects: LTWHP[];
}

Position of a Highlight relative to the viewport.

Type declaration

  • boundingRect: LTWHP

    Bounding rectangle for the entire highlight.

  • rects: LTWHP[]

    For text highlights, the rectangular highlights for each block of text.