FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
|
This is a class that encapsulates the function of creating callout annotations. It is usually used to customize the state handler for creating callout annotations. It can easily implement the process of creating callouts without having to care about more details. More...
Public Member Functions | |
Promise< Annot[]> | complete () |
This method is called at the end of the creation operation, at this time a real callout annotation will be created. More... | |
prepare (pageRender:PDFPageRender) | |
This method accepts a pageRender parameter and performs initialization. It should only be executed once. More... | |
start (point:DevicePoint) | |
This method is called at the beginning of creation, it will record a starting point. More... | |
void | update (point:DevicePoint, options?:Record< string, any >) |
Update the current coordinate point, usually called when the mouse is dragged. More... | |
Public Member Functions inherited from Disposable | |
addDestroyHook (...hooks) | |
destroy () | |
This is a class that encapsulates the function of creating callout annotations. It is usually used to customize the state handler for creating callout annotations. It can easily implement the process of creating callouts without having to care about more details.
Promise<Annot[]> complete | ( | ) |
This method is called at the end of the creation operation, at this time a real callout annotation will be created.
|
inline |
This method accepts a pageRender parameter and performs initialization. It should only be executed once.
pageRender | PDFPageRender - |
Implements CreateAnnotationService.
CreateFreeTextCalloutService::start | ( | point:DevicePoint | ) |
This method is called at the beginning of creation, it will record a starting point.
point | DevicePoint - The start point |
void CreateFreeTextCalloutService::update | ( | point:DevicePoint | , |
options?:Record< string, any > | |||
) |
Update the current coordinate point, usually called when the mouse is dragged.
point | DevicePoint - Current mouse position relative to left-top corner of the PDFPage. |
[options] | Record<string, any> - more options to create callout |