Class: VirtualDisplayMode

Core. VirtualDisplayMode

Represents a VirtualDisplay Mode.

new VirtualDisplayMode(docViewer, mode [, scrollable])

Constructs a new Virtual Display Mode that specifies how the pages are displayed on the screen
Parameters:
Name Type Argument Description
docViewer object The DocumentViewer instance
mode Core.DisplayModes The display mode type
scrollable boolean <optional>
(Optional) Whether the virtual display mode is scrollable or not

Methods


getVisiblePages( [amountAhead] [, amountSide])

Returns an array of page indexes that are visible on screen.
Parameters:
Name Type Argument Description
amountAhead number <optional>
The amount of space ahead of the viewport to count as visible as a multiple of the screen height (default is 0.5)
amountSide number <optional>
The amount of space to the side of the viewport to count as visible as a multiple of the screen height (default is 0.5)
Returns:
an array page numbers.
Type
Array.<number>