Add an annotation to store
Type of annotation to add: "highlight", "underline", "mark"
EpubCFI range to attach annotation to
Optionaldata: Record<string, any>Data to assign to annotation
Optionalcb: EventListenerCallback after annotation is added
OptionalclassName: stringCSS class to assign to annotation
Optionalstyles: Record<string, string>CSS styles to assign to annotation
annotation
iterate over annotations in the store
[Not Implemented] Hide annotations @TODO: needs implementation in View
Add a highlight to the store
EpubCFI range to attach annotation to
Optionaldata: Record<string, any>Data to assign to annotation
Optionalcb: EventListenerCallback after annotation is clicked
OptionalclassName: stringCSS class to assign to annotation
Optionalstyles: Record<string, string>CSS styles to assign to annotation
Add a mark to the store
EpubCFI range to attach annotation to
Optionaldata: Record<string, any>Data to assign to annotation
Optionalcb: EventListenerCallback after annotation is clicked
Remove an annotation from store
EpubCFI range the annotation is attached to
Optionaltype: stringType of annotation to add: "highlight", "underline", "mark"
[Not Implemented] Show annotations @TODO: needs implementation in View
Add a underline to the store
EpubCFI range to attach annotation to
Optionaldata: Record<string, any>Data to assign to annotation
Optionalcb: EventListenerCallback after annotation is clicked
OptionalclassName: stringCSS class to assign to annotation
Optionalstyles: Record<string, string>CSS styles to assign to annotation
Handles managing adding & removing Annotations
Param: rendition