Nutrient Web SDK
    Preparing search index...

    Interface AnnotationsPasteEvent

    This event is emitted whenever an annotation is pasted.

    Get current pasted annotation

    instance.addEventListener("annotations.paste", (event) => {
    const pastedAnnotations = event.annotations;
    });
    interface AnnotationsPasteEvent {
        annotations: AnnotationsUnion[];
        formFields?: NutrientViewer.FormFields.FormField[];
        originalAnnotations: AnnotationsUnion[];
        originalFormFields?: NutrientViewer.Immutable.Map<
            string,
            NutrientViewer.FormFields.FormField,
        >;
        previousAction: "COPY"
        | "CUT";
    }

    Hierarchy

    Index

    Properties

    annotations: AnnotationsUnion[]

    The annotation that was pasted.

    The form field generated for the pasted annotation.

    originalAnnotations: AnnotationsUnion[]

    The original annotation that was cut or copied.

    originalFormFields?: NutrientViewer.Immutable.Map<
        string,
        NutrientViewer.FormFields.FormField,
    >

    The form field associated with the original widget annotation that was cut or copied.

    previousAction: "COPY" | "CUT"

    The action that was taken on the original annotation. This can be CUT or COPY.