Nutrient Web SDK

ReferenceAnnotationsResizeEvent

Type Alias AnnotationsResizeEvent

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.

Type Alias

Example

Log text annotation value

instance.setOnAnnotationResizeStart((event) => {
if (event.annotation instanceof NutrientViewer.Annotations.TextAnnotation) {
return {
maintainAspectRatio: true
}
}
});

Properties

The annotation that is resizing.

Remember that annotations are Immutable.map.

boolean

This boolean represents if the user is holding the shift key.


    | "TOP"
    | "BOTTOM"
    | "LEFT"
    | "RIGHT"
    | "TOP_LEFT"
    | "TOP_RIGHT"
    | "BOTTOM_RIGHT"
    | "BOTTOM_LEFT"

This holds the name of the anchor the user is using the resize the annotation.