StackRendererOptions

data class StackRendererOptions(val disable3dPerspective: Boolean = false, val fixDisappearingCharactersInChromeForAndroid: Boolean = false, val pageTurnShadowMaxOpacity: Double = 0.5, val perspectiveFactor: Double = 2.0, val rendererBackgroundShadowOpacity: Double = 0.2, val rubberBandElasticity: Double = 0.65, val showPageTurnShadow: Boolean = true, val showRendererBackgroundShadow: Boolean = true, val animationDurationMs: Double? = null, val disableAnimations: Boolean = false, val goToAnimationDurationMs: Int? = null, val ignoreAspectRatio: Boolean = false, val pageBackgroundColor: String = "#ffffff")

Options used with the StackRenderer.

Constructors

Link copied to clipboard
fun StackRendererOptions(disable3dPerspective: Boolean = false, fixDisappearingCharactersInChromeForAndroid: Boolean = false, pageTurnShadowMaxOpacity: Double = 0.5, perspectiveFactor: Double = 2.0, rendererBackgroundShadowOpacity: Double = 0.2, rubberBandElasticity: Double = 0.65, showPageTurnShadow: Boolean = true, showRendererBackgroundShadow: Boolean = true, animationDurationMs: Double? = null, disableAnimations: Boolean = false, goToAnimationDurationMs: Int? = null, ignoreAspectRatio: Boolean = false, pageBackgroundColor: String = "#ffffff")

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

How long the animations to next/previous will be. Default is null which will use specific values dependent on the presentation mode and platform types: 'mobile', 'tablet' or 'desktop'.

Link copied to clipboard

Disables 3D perspective when swiping pages. This will also force showPageTurnShadow to false.

Link copied to clipboard

If animations should be used or not by the renderer.

Set to true to enable a bugfix for a specific bug in Chrome on Android. The bug causes content to sometimes disappear when performing pan-zoom gestures.

Link copied to clipboard

The goTo animation duration when fading in. The default value null will use platform specific duration.

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

A value between 0 and 1 describing maximum amount of opacity that is used for the page turn shadow effects. Larger values will give darker shadows.

Link copied to clipboard

Sets the perspective factor for the page turn animation. The final CSS value is calculated by multiplying this factor with the width (px) of the renderer. A larger value means the viewer is further away.

Link copied to clipboard

A value between 0 and 1, controlling the opacity for the shadow beneath the renderer.

Link copied to clipboard

A number between 0 and 1 configuring the rubberband effect when trying to swipe before the first page or after the last page. Lower value means less elasticity.

Link copied to clipboard

Render shadow effects when turning pages.

Link copied to clipboard

Render shadow effects beneath the renderer.