Single Document Scroll Renderer Options
data class SingleDocumentScrollRendererOptions(val ignoreAspectRatio: Boolean = false, val maxWidth: Length? = null, val pageBackgroundColor: String = "#ffffff", val readingAreaOffsetBottom: Length? = null, val readingAreaOffsetTop: Length? = null, val scrollAnimationDurationMs: Int = 250, val scrollAnimationMaxDistance: Length? = null, val scrollbarPosition: ScrollRendererScrollbarPosition = ScrollRendererScrollbarPosition.DOCUMENT, val disableAnimations: Boolean = false)
Options specific for the SingleDocumentScrollRenderer.
Constructors
Link copied to clipboard
constructor(ignoreAspectRatio: Boolean = false, maxWidth: Length? = null, pageBackgroundColor: String = "#ffffff", readingAreaOffsetBottom: Length? = null, readingAreaOffsetTop: Length? = null, scrollAnimationDurationMs: Int = 250, scrollAnimationMaxDistance: Length? = null, scrollbarPosition: ScrollRendererScrollbarPosition = ScrollRendererScrollbarPosition.DOCUMENT, disableAnimations: Boolean = false)
Properties
Link copied to clipboard
If animations should be used or not by the renderer.
Link copied to clipboard
Ignore the calculated aspectRatio to take up as much of the available view space as possible.
Link copied to clipboard
A CSS color to use as default page background.
Link copied to clipboard
This option describes how far from the bottom of the renderer's visible area the Reading Area will end.
Link copied to clipboard
This option describes how far from the top of the renderer's visible area the Reading Area will start.
Link copied to clipboard
The amount of time to spend on scrolling animations.
Link copied to clipboard
Sets the maximum scroll distance that will result in an animation. Scroll navigations longer than this distance will instead jump directly to the target location.
Link copied to clipboard
Controls where the vertical scrollbar is placed.