Type alias PdfHighlighterUtils Pdf Highlighter Utils : { getCurrentSelection ( ) : null | PdfSelection ; getEventBus ( ) : unknown ; getGhostHighlight ( ) : null | GhostHighlight ; getLinkService ( ) : unknown ; getTip ( ) : null | Tip ; getViewer ( ) : null | PDFViewer ; goToPage ( pageNumber ) : void ; isEditInProgress ( ) : boolean ; isEditingOrHighlighting ( ) : boolean ; isSelectionInProgress ( ) : boolean ; removeGhostHighlight ( ) : void ; scrollToHighlight ( highlight ) : void ; setTip ( tip ) : void ; toggleEditInProgress ( flag ? ) : void ; updateTipPosition ( ) : void ; } Type declaration get Current Selection : functionget Current Selection ( ) : null | PdfSelection
current selection or null if no selection is being made.
get Event Bus : functionget Event Bus ( ) : unknown Returns unknown
The currently active event bus or null.
get Ghost Highlight : functionget Ghost Highlight ( ) : null | GhostHighlight
currently present ghost highlight or null if non-existent.
get Link Service : functionget Link Service ( ) : unknown Returns unknown
The currently active PDF link service or null.
get Tip : functionget Tip ( ) : null | Tip Returns null | Tip
the currently active tip or null if inactive.
get Viewer : functionget Viewer ( ) : null | PDFViewer Returns null | PDFViewer
The currently active PDF Viewer.
go To Page : functiongo To Page ( pageNumber ) : void Returns void is Edit In Progress : functionis Edit In Progress ( ) : boolean Returns boolean
true if AreaHighlight is being edited or edit mode was set.
is Editing Or Highlighting : functionis Editing Or Highlighting ( ) : boolean Returns boolean
true if editing, ghost highlighting, or selecting.
is Selection In Progress : functionis Selection In Progress ( ) : boolean Returns boolean
true if mouse selection or text selection is being performed.
remove Ghost Highlight : functionremove Ghost Highlight ( ) : void Returns void scroll To Highlight : functionscroll To Highlight ( highlight ) : void Returns void set Tip : functionset Tip ( tip ) : void Returns void toggle Edit In Progress : functiontoggle Edit In Progress ( flag ? ) : void Returns void update Tip Position : functionupdate Tip Position ( ) : void Returns void
A set of utilities for to control the behaviour of PdfHighlighter.