GLViewer input specification
- Source
Members
ambientOcclusion :AmbientOcclusionStyle
Ambient occlusion settings
- Source
antialias :boolean
- boolean
- Source
backgroundAlpha :number
Alpha transparency of canvas background
- number
- Source
backgroundColor :string
Color of the canvas background
- string
- Source
callback :function
Callback function to be executed with this viewer after setup is complete
- function
- Source
camerax :number|string
- number |
string
- Source
canvas :HTMLCanvasElement
- HTMLCanvasElement
- Source
cartoonQuality :number
default 5
- number
- Source
col :number
- number
- Source
cols :number
- number
- Source
control_all :boolean
- boolean
- Source
defaultcolors :Record.<string, ColorSpec>
Object defining default atom colors as atom => color property value pairs for all models within this viewer
- Record.<string, ColorSpec>
- Source
disableFog :boolean
Disable fog, default to false
- boolean
- Source
hoverDuration :number
- number
- Source
id :string
id of the canvas
- string
- Source
lowerZoomLimit :number
- number
- Source
minimumZoomToDistance :number
- 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
- boolean |
string
- Source
orthographic :boolean
- boolean
- Source
outline :OutlineStyle
Outline parameters
- Source
row :number
- number
- Source
rows :number
- number
- Source
style :string
outline or ambientOcclusion deprecated
- string
- Source
upperZoomLimit :number
- number
- Source