Interface

ViewerSpec

ViewerSpec

GLViewer input specification

View Source GLViewer.ts, line 6054

Members

boolean

# antialias Optional

View Source GLViewer.ts, line 6149

number

# backgroundAlpha Optional

Alpha transparency of canvas background

View Source GLViewer.ts, line 6084

string

# backgroundColor Optional

Color of the canvas background

View Source GLViewer.ts, line 6079

function

# callback Optional

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

View Source GLViewer.ts, line 6058

number

# camerax Optional

View Source GLViewer.ts, line 6089

HTMLCanvasElement

# canvas Optional

View Source GLViewer.ts, line 6129

number

# cartoonQuality Optional

default 5

View Source GLViewer.ts, line 6104

number

# col Optional

View Source GLViewer.ts, line 6114

number

# cols Optional

View Source GLViewer.ts, line 6124

boolean

# control_all Optional

View Source GLViewer.ts, line 6154

Record.<string, ColorSpec>

# defaultcolors Optional

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

View Source GLViewer.ts, line 6063

boolean

# disableFog Optional

Disable fog, default to false

View Source GLViewer.ts, line 6164

number

# hoverDuration Optional

View Source GLViewer.ts, line 6094

string

# id Optional

id of the canvas

View Source GLViewer.ts, line 6099

number

# lowerZoomLimit Optional

View Source GLViewer.ts, line 6139

number

# minimumZoomToDistance Optional

View Source GLViewer.ts, line 6134

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

View Source GLViewer.ts, line 6068

boolean

# orthographic Optional

View Source GLViewer.ts, line 6159

number

# row Optional

View Source GLViewer.ts, line 6109

number

# rows Optional

View Source GLViewer.ts, line 6119

number

# upperZoomLimit Optional

View Source GLViewer.ts, line 6144