Interface

ViewerSpec

ViewerSpec

GLViewer input specification

View Source GLViewer.ts, line 6021

Members

boolean

# antialias Optional

View Source GLViewer.ts, line 6116

number

# backgroundAlpha Optional

Alpha transparency of canvas background

View Source GLViewer.ts, line 6051

string

# backgroundColor Optional

Color of the canvas background

View Source GLViewer.ts, line 6046

function

# callback Optional

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

View Source GLViewer.ts, line 6025

number

# camerax Optional

View Source GLViewer.ts, line 6056

HTMLCanvasElement

# canvas Optional

View Source GLViewer.ts, line 6096

number

# cartoonQuality Optional

default 5

View Source GLViewer.ts, line 6071

number

# col Optional

View Source GLViewer.ts, line 6081

number

# cols Optional

View Source GLViewer.ts, line 6091

boolean

# control_all Optional

View Source GLViewer.ts, line 6121

Record.<string, string>

# defaultcolors Optional

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

View Source GLViewer.ts, line 6030

boolean

# disableFog Optional

Disable fog, default to false

View Source GLViewer.ts, line 6131

number

# hoverDuration Optional

View Source GLViewer.ts, line 6061

string

# id Optional

id of the canvas

View Source GLViewer.ts, line 6066

number

# lowerZoomLimit Optional

View Source GLViewer.ts, line 6106

number

# minimumZoomToDistance Optional

View Source GLViewer.ts, line 6101

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 6035

boolean

# orthographic Optional

View Source GLViewer.ts, line 6126

number

# row Optional

View Source GLViewer.ts, line 6076

number

# rows Optional

View Source GLViewer.ts, line 6086

number

# upperZoomLimit Optional

View Source GLViewer.ts, line 6111