Nutrient Web SDK

v0.0.0-dev

ReferenceEventsInkSignatureCreateEvent

Type Alias InkSignatureCreateEvent

This event will fire whenever a signature is created and stored storedSignatures.create payload returns null values for the annotation id and name. We return these values because the created signature is not attached to the document hence it isn't assigned an id or name. If you want to retrieve a complete list of values of the signature annotation we suggest to listen to the annotations.create event.

Type Alias
Type Signature
type InkSignatureCreateEvent =
    | NutrientViewer.Annotations.InkAnnotation
    | NutrientViewer.Annotations.ImageAnnotation

Example

Get the new signature.

instance.addEventListener("inkSignatures.create", (signature: InkSignatureCreateEvent) => {
console.log(signature.toJS());
});

See Also