This event is emitted whenever an annotation is about to be resized.
You can use this event to add custom resize behavior for individual annotations.
Log text annotation value
instance.setOnAnnotationResizeStart((event) => { if (event.annotation instanceof NutrientViewer.Annotations.TextAnnotation) { return { maintainAspectRatio: true } }}); Copy
instance.setOnAnnotationResizeStart((event) => { if (event.annotation instanceof NutrientViewer.Annotations.TextAnnotation) { return { maintainAspectRatio: true } }});
The annotation that is resizing.
Remember that annotations are Immutable.map.
Immutable.map
This boolean represents if the user is holding the shift key.
This holds the name of the anchor the user is using the resize the annotation.
This event is emitted whenever an annotation is about to be resized.
You can use this event to add custom resize behavior for individual annotations.
Example
Log text annotation value