Interface

AtomSpec

AtomSpec

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

View Source specs.ts, line 9

Members

string

# atom Optional

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

View Source specs.ts, line 73

number

# b Optional

Atom b factor data

View Source specs.ts, line 103

Array

# bondOrder Optional

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

View Source specs.ts, line 93

Array

# bondStyles Optional

custom bond styling by position in bonds

View Source specs.ts, line 143

Array

# bonds Optional

Array of atom ids this atom is bonded to

View Source specs.ts, line 78

function

# callback Optional

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

View Source specs.ts, line 118

string

# chain Optional

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

View Source specs.ts, line 53

boolean

# clickable Optional

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

View Source specs.ts, line 113

ColorSpec

# color Optional

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

View Source specs.ts, line 33

string

# elem Optional

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

View Source specs.ts, line 43

boolean

# hetflag Optional

Set to true if atom is a heteroatom

View Source specs.ts, line 48

function

# hover_callback Optional

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

View Source specs.ts, line 128

boolean

# hoverable Optional

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

View Source specs.ts, line 123

number

# index Optional

Index of atom in molecule

View Source specs.ts, line 68

boolean

# invert Optional

for selection, inverts the meaning of the selection

View Source specs.ts, line 133

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 108

Record.<string, any>

# properties Optional

Optional mapping of additional properties

View Source specs.ts, line 98

number

# resi Optional

Residue number

View Source specs.ts, line 58

string

# resn Optional

Parent residue name

View Source specs.ts, line 13

number

# serial Optional

Atom's serial id number

View Source specs.ts, line 63

boolean

# singleBonds Optional

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

View Source specs.ts, line 88

string

# ss Optional

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

View Source specs.ts, line 83

AtomStyleSpec

# style Optional

style of atom

View Source specs.ts, line 138

ColorSpec

# surfaceColor Optional

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

View Source specs.ts, line 38

number

# x Optional

Atom's x coordinate

View Source specs.ts, line 18

number

# y Optional

Atom's y coordinate

View Source specs.ts, line 23

number

# z Optional

Atom's z coordinate

View Source specs.ts, line 28