Get the parent annotation layer.
Get the custom data set for this annotation.
Get the locator to this instance.
If setOptions() has been called on this instance to override options.
If this instance has been destroyed.
If this instance is currently intersecting the visible range of the ReaderView.
Sets the custom data for this annotation.
Set the options for this annotation. When passing an options object, all the default options from the ReaderViewAnnotationLayer are ignored. In other words, there is no inheritance from the default options.
When passing null, all the default options will be used.
Generated using TypeDoc
A ReaderViewAnnotation can either reference a range of publication content or a position (point) within publication content. ReaderViewAnnotations are rendered inside a ReaderViewAnnotationLayer, which in turn is rendered on top of publication content.
When an annotation is rendered, a container element is created. The container element dimensions and position is calculated from the bounding box encapsulating all referenced content.
Both range and position annotations, as well as their container can be styled separately using CSS. You can also attach custom data to each ReaderViewAnnotation instance.