Interface

ViewerSpec

ViewerSpec

GLViewer input specification

View Source GLViewer.ts, line 6018

Members

boolean

# antialias Optional

View Source GLViewer.ts, line 6113

number

# backgroundAlpha Optional

Alpha transparency of canvas background

View Source GLViewer.ts, line 6048

string

# backgroundColor Optional

Color of the canvas background

View Source GLViewer.ts, line 6043

function

# callback Optional

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

View Source GLViewer.ts, line 6022

number

# camerax Optional

View Source GLViewer.ts, line 6053

HTMLCanvasElement

# canvas Optional

View Source GLViewer.ts, line 6093

number

# cartoonQuality Optional

default 5

View Source GLViewer.ts, line 6068

number

# col Optional

View Source GLViewer.ts, line 6078

number

# cols Optional

View Source GLViewer.ts, line 6088

boolean

# control_all Optional

View Source GLViewer.ts, line 6118

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 6027

boolean

# disableFog Optional

Disable fog, default to false

View Source GLViewer.ts, line 6128

number

# hoverDuration Optional

View Source GLViewer.ts, line 6058

string

# id Optional

id of the canvas

View Source GLViewer.ts, line 6063

number

# lowerZoomLimit Optional

View Source GLViewer.ts, line 6103

number

# minimumZoomToDistance Optional

View Source GLViewer.ts, line 6098

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 6032

boolean

# orthographic Optional

View Source GLViewer.ts, line 6123

number

# row Optional

View Source GLViewer.ts, line 6073

number

# rows Optional

View Source GLViewer.ts, line 6083

number

# upperZoomLimit Optional

View Source GLViewer.ts, line 6108