Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for the ReaderViewTransformManager.

Hierarchy

  • IReaderViewTransformManagerOptions

Index

Properties

Optional maxPanOffsetHorizontal

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

default

null

Optional maxPanOffsetVertical

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

default

null

Optional maxScaleFactor

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.

double
default

null

Optional removeTransformAnimationDurationMs

removeTransformAnimationDurationMs?: number

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

int
default

300

Optional removeTransformOnNavigation

removeTransformOnNavigation?: boolean

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

default

true

Generated using TypeDoc