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

    Interface IReaderViewTransformManagerOptions

    Options for the ReaderViewTransformManager.

    interface IReaderViewTransformManagerOptions {
        maxPanOffsetHorizontal?: ILength;
        maxPanOffsetVertical?: ILength;
        maxScaleFactor?: number;
        removeTransformAnimationDurationMs?: number;
        removeTransformOnNavigation?: boolean;
    }

    Properties

    maxPanOffsetHorizontal?: ILength

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

    If this option is not specified or set to null, the value from IReaderViewOptions.gestureOptions.panZoom.maxPanOffsetHorizontal will be used.

    Example: Setting it to "0%" will not allow the left side of the publication to be panned further right than the left side of the ReaderView. (and the opposite for the right side)

    Example: Setting it to "50%" will allow the left side of the publication to be panned to the midpoint of the ReaderView. (and the same for the right side)

    Example: Setting it to "100%" will allow the publication to be panned all the way outside the ReaderView.

    Example: Setting it to 80 CSS_PIXELS (or DEVICE_PIXELS) will not allow the left side of the publication to be panned further right than 80 CSS_PIXELS (or DEVICE_PIXELS) from the left side of the ReaderView (and the opposite for the right side).

    null
    
    maxPanOffsetVertical?: ILength

    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.

    If this option is not specified or set to null, the value from IReaderViewOptions.gestureOptions.panZoom.maxPanOffsetVertical will be used.

    Example: Setting it to "0%" will not allow the top of the publication to be panned further down than the top of the ReaderView (and the opposite for the bottom).

    Example: Setting it to "50%" will allow the top of the publication to be panned to the midpoint of the ReaderView (and the same for the bottom).

    Example: Setting it to "100%" will allow the publication to be panned all the way outside the ReaderView.

    Example: Setting it to 80 CSS_PIXELS (or DEVICE_PIXELS) will not allow the top of the publication to be panned further down than 80 CSS_PIXELS (or DEVICE_PIXELS) from the top of the ReaderView (and the opposite for the bottom).

    null
    
    maxScaleFactor?: number

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

    If this option is not specified or set to null, the value from IReaderViewOptions.gestureOptions.panZoom.maxScaleFactor will be used.

    null
    
    removeTransformAnimationDurationMs?: number

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

    300
    
    removeTransformOnNavigation?: boolean

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

    true