new DisplayModeManager(docViewer)
Creates a new instance of DisplayModeManager
Parameters:
Name | Type | Description |
---|---|---|
docViewer |
object | The DocumentViewer instance |
Methods
-
getDisplayMode()
-
Returns the current display mode.
Returns:
The current display mode. -
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