ViewerSpec

GLViewer input specification

Members

ambientOcclusion :AmbientOcclusionStyle

Ambient occlusion settings

antialias :boolean

Type:
  • boolean

backgroundAlpha :number

Alpha transparency of canvas background

Type:
  • number

backgroundColor :string

Color of the canvas background

Type:
  • string

callback :function

Callback function to be executed with this viewer after setup is complete

Type:
  • function

camerax :number|string

Type:
  • number | string

canvas :HTMLCanvasElement

Type:
  • HTMLCanvasElement

cartoonQuality :number

default 5

Type:
  • number

col :number

Type:
  • number

cols :number

Type:
  • number

control_all :boolean

Type:
  • boolean

defaultcolors :Record.<string, ColorSpec>

Object defining default atom colors as atom => color property value pairs for all models within this viewer

Type:

disableFog :boolean

Disable fog, default to false

Type:
  • boolean

hoverDuration :number

Type:
  • number

id :string

id of the canvas

Type:
  • string

lowerZoomLimit :number

Type:
  • number

minimumZoomToDistance :number

Type:
  • number

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

orthographic :boolean

Type:
  • boolean

outline :OutlineStyle

Outline parameters

row :number

Type:
  • number

rows :number

Type:
  • number

style :string

outline or ambientOcclusion deprecated

Type:
  • string

upperZoomLimit :number

Type:
  • number