Testing AnnotationChanged (modify)

Currently I am able to unit test events for ‘annotationChanged’ for add and delete programatically.

However I am unable to trigger ‘modify’ via code. It only triggers these when actually using a mouse.

Is there a way I can either…

A) programatically trigger these events
B) use standard testing-library user events to simulate a user move or modifying an annotation?

1 Like

Hello Dale,

Annotation manager has an API called trigger that can trigger the annotationChanged event. You just have to pass in the event name and data.
https://sdk.apryse.com/api/web/Core.AnnotationManager.html#trigger__anchor

Best Regards,
Darian