Nutrient Web SDK
    Preparing search index...

    Interface AnnotationsDuplicateEvent

    This event is emitted whenever an annotation is duplicated. You can do this by pressing Cmd/Ctrl+D on the keyboard.

    Get current duplicate annotation

    instance.addEventListener("annotations.duplicate", (event) => {
    const duplicatedAnnotations = event.annotations;
    });
    interface AnnotationsDuplicateEvent {
        annotations: AnnotationsUnion[];
        formFields?: NutrientViewer.FormFields.FormField[];
        originalAnnotations: AnnotationsUnion[];
        originalFormFields?: NutrientViewer.Immutable.Map<
            string,
            NutrientViewer.FormFields.FormField,
        >;
    }

    Hierarchy

    Index

    Properties

    annotations: AnnotationsUnion[]

    The annotation that was duplicated.

    The newly created form field for the duplicated widget annotation.

    originalAnnotations: AnnotationsUnion[]

    The original annotation that was duplicated.

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

    The form field of the widget annotation that was duplicated.