ReaderViewAnnotationOptions

data class ReaderViewAnnotationOptions(val containerClassName: String? = null, val containerStyle: Map<String, String>? = null, val positionClassName: String? = null, val positionStyle: Map<String, String>? = null, val rangeClassName: String? = null, val rangeStyle: Map<String, String>? = null)

Options related with the presentation of ReaderViewAnnotations.

Constructors

Link copied to clipboard
fun ReaderViewAnnotationOptions(containerClassName: String? = null, containerStyle: Map<String, String>? = null, positionClassName: String? = null, positionStyle: Map<String, String>? = null, rangeClassName: String? = null, rangeStyle: Map<String, String>? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

Class name to add to the ReaderViewAnnotation container elements. This element defines the bounding box for all ranges and points created by the ReaderViewAnnotation for a page.

Link copied to clipboard

CSS style declarations to add to the ReaderViewAnnotation container element. This element defines the bounding box for all ranges and points created by the ReaderViewAnnotation for a page.

Link copied to clipboard

Class name to add to each rectangle generated by the ReaderViewAnnotation when it represents a position.

Link copied to clipboard

An object with css declarations to apply to rectangles when ReaderViewAnnotation represents a position.

Link copied to clipboard
val rangeClassName: String? = null

Class name to add to each rectangle generated by the ReaderViewAnnotation when it represents a range. For example, when an annotation refers to serveral lines of text, one element will be rendered per line.

Link copied to clipboard
val rangeStyle: Map<String, String>? = null

An object with css declarations to apply to rectangles when ReaderViewAnnotation represents a range. For example, when an annotation refers to serveral lines of text, one element will be rendered per line.