Nutrient Web SDK

ReferenceEventsAnnotationsCreateEvent

Type Alias AnnotationsCreateEvent

This event is emitted when new annotations are created. The event includes the list of created annotations.

Type Alias
Type Signature
type AnnotationsCreateEvent = NutrientViewer.Immutable.List<AnnotationsUnion>

Example

Get the list of created annotations.

instance.addEventListener("annotations.create", (annotations: AnnotationsCreateEvent) => {
console.log(annotations.toJS());
});

See Also