lib/model.js~ BondImage

An 'image' of a single bond in the model. This represents the connection between two specific AtomImages

Constructor

new BondImage(model, im1, im2)

Parameters:
NameTypeDescription
modelModel

The model from which the image is from

im1AtomImage

AtomImage from which the bond starts

im2AtomImage

AtomImage to which the bond ends

Members

(readonly) atom1 :AtomImage

First atom connected to this bond

Type:
  • AtomImage

(readonly) atom2 :AtomImage

Second atom connected to this bond

Type:
  • AtomImage

color1 :int

First color of the bond

Type:
  • int

color2 :int

Second color of the bond

Type:
  • int

(readonly) key :String

A unique string key used to quickly reference the bond

Type:
  • String

(readonly) length :float

Bond length in Angstroms

Type:
  • float

(readonly) mesh :AtomMesh

Mesh corresponding to this bond image

Type:
  • AtomMesh

(readonly) model :Model

Model this bond belongs to

Type:
  • Model

opacity1 :float

First opacity of the bond

Type:
  • float

opacity2 :float

Second opacity of the bond

Type:
  • float

radius :float

Radius of the bond

Type:
  • float

(readonly) renderer :Renderer

Renderer used by this bond

Type:
  • Renderer

visible :bool

Whether the bond is visible

Type:
  • bool