Nutrient Web SDK

v0.0.0-dev

ReferenceEventsAnnotationPresetsUpdateEvent

Interface AnnotationPresetsUpdateEvent

This event will be emitted whenever the current preset is about to be updated with new property values set by the user in the annotation toolbar.

Interface

Example

Register a AnnotationPresetsUpdateEvent using NutrientViewer.EventName.ANNOTATION_PRESETS_UPDATE and prevent the current preset from being updated.

instance.addEventListener("annotationPresets.update", (event) => {
event.preventDefault();
});

Properties

string

Current active preset ID.

AnnotationPreset

Properties and values of the current active preset.

AnnotationPreset

Properties and values to be merged with the ones in the current active preset.

() => boolean

Call this method to opt-out from updating the current preset.