GLViewer input specification
Members
function
# callback Optional
Callback function to be executed with this viewer after setup is complete
Record.<string, string>
# defaultcolors Optional
Object defining default atom colors as atom => color property value pairs for all models within this viewer
boolean
|
string
# nomouse Optional
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