Resize annotation event

Which product are you using?
PDF.js Express

PDF.js Express Version
8.7

Detailed description of issue

  1. Is there any event to listen to when annotation is being resized by clicking and dragging their control handle ?
  2. Is there any event to listen to when annotations are being dragged/moving using SelectionTool ?

Thank you

Hello dev_onehub,

  1. Is there any event to listen to when annotation is being resized by clicking and dragging their control handle ?
    We dont have a direct event for when the control handle is being clicked, however we have an event that tracks when an annotation has been changed:
annotationManager.addEventListener('annotationChanged', (annotations, action, info)=>{
  if(action === 'modify') {
   console.log("annotation has been changed")
  }
})
  1. Is there any event to listen to when annotations are being dragged/moving using SelectionTool ?
    Similar to above you can listen to the annotationChanged event. Additionally you can trigger an event when the Select tool’s mouse move has been triggered by customizing the tool. See our docs here: Customize PDF.js Express Viewer Annotations in Toolbar | Documentation