Filter
A Filter is a function to control whether an annotation should be made visible
or not. The function receives the ImageAnnotation
as an input argument and must return a boolean value: true
if the annotation should
be visible, false
otherwise.
You can set the filter on your annotator instance via the setFilter method.