This should be a highlight container/renderer of some sorts. It will be given appropriate context for a single highlight which it can then use to render a TextHighlight, AreaHighlight, etc. in the correct place.
Array of all highlights to be organised and fed through to the child highlight container.
Optional
mouseOptional CSS styling for the rectangular mouse selection.
PDF document to view and overlay highlights.
Optional
pdfWhat scale to render the PDF at inside the viewer.
Optional
selectionOptional element that can be displayed as a tip whenever a user makes a selection.
Optional
styleStyle properties for the PdfHighlighter (scrollbar, background, etc.), NOT
the PDF.js viewer it encloses. If you want to edit the latter, use the
other style props like textSelectionColor
or overwrite pdf_viewer.css
Optional
textColoring for unhighlighted, selected text.
Optional
enableOptional
onCallback triggered whenever a ghost (non-permanent) highlight is created.
Ghost Highlight that has been created.
Optional
onCallback triggered whenever a ghost (non-permanent) highlight is removed.
Ghost Highlight that has been removed.
Optional
onOptional
onCallback triggered whenever a user finishes making a mouse selection or has selected text.
Content and positioning of the selection. NOTE:
makeGhostHighlight
will not work if the selection disappears.
Creates a reference to the PdfHighlighterContext above the component.
various useful tools with a PdfHighlighter. See PdfHighlighterContext for more description.
The props type for PdfHighlighter.