Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Options used with the SpreadSwipeRenderer.

    interface ISpreadSwipeRendererOptions {
        animationDurationMs?: number;
        direction?: Axis;
        disableAnimations?: boolean;
        enablePageSpreadCenterSupport?: boolean;
        goToAnimationDurationMs?: number;
        ignoreAspectRatio?: boolean;
        insets?: IRectMargins;
        minMarginBetweenSpreads?: number;
        name?: string;
        pageBackgroundColor?: string;
        rubberBandElasticity?: number;
        swipeNavigationGestureThreshold?: ILength;
        useWindowDimensionsForPageContainers?: boolean;
    }

    Hierarchy (View Summary)

    Properties

    animationDurationMs?: number

    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'.

    null
    
    direction?: Axis

    The swipe direction to use. Default value is Axis.X

    X
    
    disableAnimations?: boolean

    If animations should be used or not by the renderer.

    false
    
    enablePageSpreadCenterSupport?: boolean

    Enables support for center spread in pages

    true
    
    goToAnimationDurationMs?: number

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

    null
    
    ignoreAspectRatio?: boolean

    Ignore the calculated aspectRatio to take up as much of the available view space as possible.

    false
    

    Please use the ReaderView option contentDisplayAreaOptions instead.

    insets?: IRectMargins

    Configures insets that can be used to allow the user to scroll content below system UI elements like the notch on mobile devices.

    For vertical insets (top and bottom), this adds extra space at the top or bottom of the scrolling container.

    For horizontal insets (left and right), this acts as padding that pushes the content in from the sides.

    Percentage values are based on the ReaderView's dimensions. Any value higher than 40% of the ReaderView's width or height will be clamped to 40%.

    Note: This option currently only has an effect when using scrolling renderers (e.g., ContinuousScrollRenderer or SingleDocumentScrollRenderer).

    Defaults to 0 for all sides.

    This API is experimental and might be subject to changes in future releases.

    minMarginBetweenSpreads?: number

    Minimum margin between spreads in pixels.

    24
    
    name?: string

    The name of the Renderer. This can be used to retrieve the Renderer from the ReaderView etc.

    Defaults to generated name.

    pageBackgroundColor?: string

    A CSS color to use as default page background.

    transparent
    
    rubberBandElasticity?: number

    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 stronger rubberband effect.

    0.65
    
    swipeNavigationGestureThreshold?: ILength

    Controls the minimum swipe distance required to trigger navigation to the next or previous page. A higher value means the user must swipe farther to turn pages.

    Percentage values are based on the width of the ReaderView.

    Defaults to 20 CSS pixels.

    useWindowDimensionsForPageContainers?: boolean

    Use full window dimensions when calculating spread container sizes. This option should be true if the ReaderView element allows content to overflow.

    true