Properties
assembly
assembly: string
clipCenter
clipCenter: Vector3
clipNear
clipNear: number
clipRadius
clipRadius: number
color
color: number | string | Color
colorDomain
colorDomain: number[]
colorReverse
colorReverse: boolean
colorScale
colorScale: string | number[]
colorScheme
colorScheme: string
colorValue
colorValue: number
depthWrite
depthWrite: boolean
diffuseInterior
diffuseInterior: boolean
disableImpostor
disableImpostor: boolean
disablePicking
disablePicking: boolean
flatShaded
flatShaded: boolean
interiorColor
interiorColor: Color
interiorDarkening
interiorDarkening: number
labelAttachment
labelAttachment: "bottom-left" | "bottom-center" | "bottom-right" | "middle-left" | "middle-center" | "middle-right" | "top-left" | "top-center" | "top-right"
labelBackground
labelBackground: boolean
labelBackgroundColor
labelBackgroundColor: number
labelBackgroundMargin
labelBackgroundMargin: number
labelBackgroundOpacity
labelBackgroundOpacity: number
labelBorder
labelBorder: boolean
labelBorderColor
labelBorderColor: number
labelBorderWidth
labelBorderWidth: number
labelColor
labelColor: number
labelFixedSize
labelFixedSize: boolean
labelFontFamily
labelFontFamily: "sans-serif" | "monospace" | "serif"
labelFontStyle
labelFontStyle: "normal" | "italic"
labelFontWeight
labelFontWeight: "normal" | "bold"
labelFormat
labelFormat: string
labelGrouping
labelGrouping: "atom" | "residue"
labelSize
labelSize: number
labelText
labelText: string
labelType
labelType: "atomname" | "atomindex" | "occupancy" | "bfactor" | "serial" | "element" | "atom" | "resname" | "resno" | "res" | "text" | "qualified"
labelUnit
labelUnit: string
labelVisible
labelVisible: boolean
labelXOffset
labelXOffset: number
labelYOffset
labelYOffset: number
labelZOffset
labelZOffset: number
labelsdf
labelsdf: boolean
lineOpacity
lineOpacity: number
linewidth
linewidth: number
metalness
metalness: number
openEnded
openEnded: boolean
radialSegments
radialSegments: number
radiusType
radiusType: string
roughness
roughness: number
sphereDetail
sphereDetail: number
useCylinder
useCylinder: boolean
useInteriorColor
useInteriorColor: boolean
wireframe
wireframe: boolean
Distance representation parameter object.
RepresentationParameters
StructureRepresentationParameters
MeasurementRepresentationParameters
{String} labelUnit - distance unit (e.g. "angstrom" or "nm"). If set, a distance symbol is appended to the label (i.e. 'nm' or '\u00C5'). In case of 'nm', the distance value is computed in nanometers instead of Angstroms.
{Array[]} atomPair - list of pairs of selection strings (see Selection) or pairs of atom indices. Using atom indices is much more efficient when the representation is updated often, e.g. by changing the selection or the atom positions, as there are no selection strings to be evaluated.