new DisplayModeManager(docViewer)
Creates a new instance of DisplayModeManager
Parameters:
Name | Type | Description |
---|---|---|
docViewer |
object | The DocumentViewer instance |
Methods
-
disableVirtualDisplayMode()
-
Disable virtual display mode and switch to non-virtual display mode. This only takes effect after loading a new document (Not on the fly)
-
enableVirtualDisplayMode()
-
Enable virtual display mode and switch to virtual display mode. This only takes effect after loading a new document (Not on the fly)
-
getDisplayMode()
-
Returns the current display mode.
Returns:
The current display mode. -
isVirtualDisplayEnabled()
-
Check if virtual display mode for pages is enabled
-
setDisplayMode(displayMode)
-
Sets the display mode. Also removes selection caused by text selection or search. Only renders if a document has been loaded.
Parameters:
Name Type Description displayMode
object The display mode object to set as the current display mode