ReaderViewTransformManagerOptions

data class ReaderViewTransformManagerOptions(val maxPanOffsetHorizontal: Length? = null, val maxPanOffsetVertical: Length? = null, val maxScaleFactor: Double? = null, val removeTransformAnimationDurationMs: Int = 300, val removeTransformOnNavigation: Boolean = true)

Options for the ReaderViewTransformManager.

Constructors

Link copied to clipboard
fun ReaderViewTransformManagerOptions(maxPanOffsetHorizontal: Length? = null, maxPanOffsetVertical: Length? = null, maxScaleFactor: Double? = null, removeTransformAnimationDurationMs: Int = 300, removeTransformOnNavigation: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The maximum horizontal pan offset relative to the dimensions of the ReaderView, defined as a CSS string in pixels or percentage.

Link copied to clipboard

The maximum vertical pan offset relative to the dimensions of the ReaderView, defined as a CSS string in pixels or percentage. If a PERCENTAGE value is used, it will be based on the width of the ReaderView's width.

Link copied to clipboard
val maxScaleFactor: Double? = null

The maximum allowed scale factor. This applies to both pan-zoom gestures and when calling any method on the ReaderViewTransformManager.

Link copied to clipboard

The default duration of the animation when the active transform is removed.

Link copied to clipboard

If the ReaderView's active transform should be removed before the ReaderView navigates.