Nutrient Web SDK
    Preparing search index...

    Interface AnnotationsWillChangeEvent

    This event is emitted when certain user actions are performed to an annotation.

    interface AnnotationsWillChangeEvent {
        annotations: NutrientViewer.Immutable.List<AnnotationsUnion>;
        reason:
            | "DRAW_START"
            | "DRAW_END"
            | "TEXT_EDIT_START"
            | "TEXT_EDIT_END"
            | "SELECT_START"
            | "SELECT_END"
            | "MOVE_START"
            | "MOVE_END"
            | "RESIZE_START"
            | "RESIZE_END"
            | "ROTATE_START"
            | "ROTATE_END"
            | "DELETE_START"
            | "DELETE_END"
            | "PROPERTY_CHANGE";
    }
    Index

    Properties

    Properties

    A list of affected annotations. At the moment, this can contain at most a single annotation.

    In some cases, it can return an empty list. Please See AnnotationsWillChangeReason for a complete reference when this is the case.

    reason:
        | "DRAW_START"
        | "DRAW_END"
        | "TEXT_EDIT_START"
        | "TEXT_EDIT_END"
        | "SELECT_START"
        | "SELECT_END"
        | "MOVE_START"
        | "MOVE_END"
        | "RESIZE_START"
        | "RESIZE_END"
        | "ROTATE_START"
        | "ROTATE_END"
        | "DELETE_START"
        | "DELETE_END"
        | "PROPERTY_CHANGE"

    This indicates the reason why the annotation will change.