I want to control show/hide annotations. I have checkbox and based on state of that checkbox (checked or not) I want to show or hide annotations.
I found "filter" functionality in library but when I try to implement that functionality I get warning in console:
Version of library is: "@annotorious/react": "^3.7.7",
My code:
annotator?.setFilter(showAnnotations ? undefined : () => false);