FoxitPDFSDKforWeb v11.0.1
Foxit PDF SDK for Web
|
An abstract class used to implement floating box components displayed after text selection or other operations. More...
Public Member Functions | |
destroy () | |
Override this method to implement the destruction logic of tooltip. | |
disable () | |
Override this method to implement the logical to make tooltip unusable. | |
enable () | |
Override this method to implement the logical to make tooltip usable. | |
hide () | |
Override this method to implement to hide the tooltip. | |
showAt (x, y, text, rects) | |
Override this method to implement the logical to display the tooltip at specified position which relative to the top left of the currently operatering PDF page. More... | |
![]() | |
addDestroyHook (...hooks) | |
Add a function to destroyHooks list, which will be called during destroy. More... | |
destroy () | |
ownsTo (owner) | |
Establishes an ownership relationship where this instance will be destroyed when the owner is destroyed. Additionally, the owner will be automatically removed from the destroyHooks list when this instance is destroyed. More... | |
An abstract class used to implement floating box components displayed after text selection or other operations.
|
inline |
Override this method to implement the logical to display the tooltip at specified position which relative to the top left of the currently operatering PDF page.
pageX | number - The x-axis coordinate relative to the top left corner of the page in pixel |
pageY | number - The y-axis coordinate relative to the top left corner of the page in pixel |
text | string - selected text (This parameter is only available when selecting text operation) |
rects | Array<{left:number,right:number,top:number,bottom:number}> - The selected text rects, relatives to the left top corner of the page in pixel. (This parameter is only available when selecting text operation) |