Interface

AtomSpec

AtomSpec

Atom representation. Depending on the input file format, not all fields may be defined.

View Source specs.ts, line 10

Members

string

# atom Optional

Atom name; may be more specific than 'elem' (e.g 'CA' for alpha carbon)

View Source specs.ts, line 74

number

# b Optional

Atom b factor data

View Source specs.ts, line 104

Array

# bondOrder Optional

Array of this atom's bond orders, corresponding to bonds identfied by 'bonds'

View Source specs.ts, line 94

Array

# bondStyles Optional

custom bond styling by position in bonds

View Source specs.ts, line 149

Array

# bonds Optional

Array of atom ids this atom is bonded to

View Source specs.ts, line 79

function

# callback Optional

Callback click handler function to be executed on this atom and its parent viewer

View Source specs.ts, line 119

string

# chain Optional

Chain this atom belongs to, if specified in input file (e.g 'A' for chain A)

View Source specs.ts, line 54

boolean

# clickable Optional

Set this flag to true to enable click selection handling for this atom

View Source specs.ts, line 114

ColorSpec

# color Optional

Atom's color, as hex code or built-in color string

View Source specs.ts, line 34

string

# elem Optional

Element abbreviation (e.g. 'H', 'Ca', etc)

View Source specs.ts, line 44

boolean

# hetflag Optional

Set to true if atom is a heteroatom

View Source specs.ts, line 49

function

# hover_callback Optional

Callback hover handler function to be executed on this atom and its parent viewer

View Source specs.ts, line 129

boolean

# hoverable Optional

Set this flag to true to enable hover selection handling for this atom

View Source specs.ts, line 124

number

# index Optional

Index of atom in molecule

View Source specs.ts, line 69

boolean

# invert Optional

for selection, inverts the meaning of the selection

View Source specs.ts, line 139

string

# pdbline Optional

If applicable, this atom's record entry from the input PDB file (used to output new PDB from models)

View Source specs.ts, line 109

Record.<string, any>

# properties Optional

Optional mapping of additional properties

View Source specs.ts, line 99

number

# resi Optional

Residue number

View Source specs.ts, line 59

string

# resn Optional

Parent residue name

View Source specs.ts, line 14

number

# serial Optional

Atom's serial id number

View Source specs.ts, line 64

boolean

# singleBonds Optional

true if this atom forms only single bonds or no bonds at all

View Source specs.ts, line 89

string

# ss Optional

Secondary structure identifier (for cartoon render; e.g. 'h' for helix)

View Source specs.ts, line 84

AtomStyleSpec

# style Optional

style of atom

View Source specs.ts, line 144

ColorSpec

# surfaceColor Optional

Hex code for color to be used for surface patch over this atom

View Source specs.ts, line 39

function

# unhover_callback Optional

Callback handling "unhover" to be executed on this atom and its parent viewer

View Source specs.ts, line 134

number

# x Optional

Atom's x coordinate

View Source specs.ts, line 19

number

# y Optional

Atom's y coordinate

View Source specs.ts, line 24

number

# z Optional

Atom's z coordinate

View Source specs.ts, line 29