GLViewer input specification
- Source
Members
antialias :boolean
Type:
- boolean
- Source
backgroundAlpha :number
Alpha transparency of canvas background
Type:
- number
- Source
backgroundColor :string
Color of the canvas background
Type:
- string
- Source
callback :function
Callback function to be executed with this viewer after setup is complete
Type:
- function
- Source
camerax :number
Type:
- number
- Source
canvas :HTMLCanvasElement
Type:
- HTMLCanvasElement
- Source
cartoonQuality :number
default 5
Type:
- number
- Source
col :number
Type:
- number
- Source
cols :number
Type:
- number
- Source
control_all :boolean
Type:
- boolean
- Source
defaultcolors :Record.<string, ColorSpec>
Object defining default atom colors as atom => color property value pairs for all models within this viewer
Type:
- Record.<string, ColorSpec>
- Source
disableFog :boolean
Disable fog, default to false
Type:
- boolean
- Source
hoverDuration :number
Type:
- number
- Source
id :string
id of the canvas
Type:
- string
- Source
lowerZoomLimit :number
Type:
- number
- Source
minimumZoomToDistance :number
Type:
- number
- Source
nomouse :boolean|string
Whether to disable disable handling of mouse events.
If you want to use your own mouse handlers, set this then bind your handlers to the canvas object.
The default 3Dmol.js handlers are available for use:
'mousedown touchstart': viewer._handleMouseDown,
'DOMMouseScroll mousewheel': viewer._handleMouseScroll
'mousemove touchmove': viewer._handleMouseMove
Type:
- boolean |
string
- Source
orthographic :boolean
Type:
- boolean
- Source
row :number
Type:
- number
- Source
rows :number
Type:
- number
- Source
upperZoomLimit :number
Type:
- number
- Source