Type Alias InkSignatureCreateEvent
Type Alias
Type Signature
type InkSignatureCreateEvent =
| NutrientViewer.Annotations.InkAnnotation
| NutrientViewer.Annotations.ImageAnnotation
| NutrientViewer.Annotations.InkAnnotation
| NutrientViewer.Annotations.ImageAnnotation
Example
Get the new signature.
instance.addEventListener("inkSignatures.create", (signature: InkSignatureCreateEvent) => {
console.log(signature.toJS());
});
This event will fire whenever a signature is created and stored
storedSignatures.createpayload returnsnullvalues 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.