Copy link to clipboard
Copied
Hi,
I want to be able to silently add annotations with out disturbing the user's workflow. Is there a way to not select an annotation when added using the addAnniotation method.
The update and delete methods work how I expect just not the add function.
Thanks
For anyone who may come across this in the future, adding multiple annotations in one call of addAnnotations had the behaviour I was looking for.
Hi,
I was wondering about the same thing, but the workaround with adding multiple annotations wasn't really an option for me, since it would pollute the undo history if I added a second annotation and instantly deleted it afterwards.
So I looked up the piece of code, that adds the annotations and it turns out, you can actually add a second argument to the addAnnotations method.
// silently adds a single annotation
annotationManager.addAnnotations([template], {silent: true});
Maybe someone should
...Copy link to clipboard
Copied
For anyone who may come across this in the future, adding multiple annotations in one call of addAnnotations had the behaviour I was looking for.
Copy link to clipboard
Copied
Hi,
I was wondering about the same thing, but the workaround with adding multiple annotations wasn't really an option for me, since it would pollute the undo history if I added a second annotation and instantly deleted it afterwards.
So I looked up the piece of code, that adds the annotations and it turns out, you can actually add a second argument to the addAnnotations method.
// silently adds a single annotation
annotationManager.addAnnotations([template], {silent: true});
Maybe someone should mention this in the documentation? Or will this be removed in future releases?
Copy link to clipboard
Copied