Closed Talha345 closed 2 weeks ago
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
Before you start - checklist
Description
Hi,
I have tried using the
onRenderAnnotationLayerSuccess
andonRenderSuccess
callbacks as I want to execute a function after the annotationLayer has rendered on my screen, howeveronRenderAnnotationLayerSuccess
callback is executed before the paint is completed on the screen. The documentation says: "Function called when annotations are successfully rendered on the screen.", however this is not happening in my scenario.Steps to reproduce
npm install
npm run dev
sample/vite/Sample.tsx
Update the page component call to:
The alert will be shown before the document is displayed on the screen.
Expected behavior
The
onRenderAnnotationLayerSuccess
function should be executed once the annotation layer is completed rendered on the screen. Same for onRenderSuccess.Actual behavior
The
onRenderAnnotationLayerSuccess
function is executed before the DOM is rendered on the screen.Additional information
No response
Environment