FoxitPDFSDKforWeb v10.0.0
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... | |
Public Member Functions inherited from Disposable | |
addDestroyHook (...hooks) | |
destroy () | |
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) |