Properties
attachment
attachment: "bottom-left" | "bottom-center" | "bottom-right" | "middle-left" | "middle-center" | "middle-right" | "top-left" | "top-center" | "top-right"
backgroundColor
backgroundColor: number
backgroundMargin
backgroundMargin: number
backgroundOpacity
backgroundOpacity: number
borderColor
borderColor: number
borderWidth
borderWidth: number
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
fixedSize
fixedSize: boolean
flatShaded
flatShaded: boolean
fontFamily
fontFamily: "sans-serif" | "monospace" | "serif"
fontStyle
fontStyle: "normal" | "italic"
fontWeight
fontWeight: "normal" | "bold"
interiorColor
interiorColor: Color
interiorDarkening
interiorDarkening: number
labelFormat
labelFormat: string
labelGrouping
labelGrouping: "atom" | "residue"
labelText
labelText: string
metalness
metalness: number
openEnded
openEnded: boolean
radialSegments
radialSegments: number
roughness
roughness: number
showBackground
showBackground: boolean
showBorder
showBorder: boolean
sphereDetail
sphereDetail: number
useInteriorColor
useInteriorColor: boolean
wireframe
wireframe: boolean
Label representation parameter object. Extends RepresentationParameters and StructureRepresentationParameters.
{Integer} clipNear - position of camera near/front clipping plane in percent of scene bounding box
{Float} opacity - translucency: 1 is fully opaque, 0 is fully transparent
{String} labelType - type of the label, one of: "atomname", "atomindex", "occupancy", "bfactor", "serial", "element", "atom", "resname", "resno", "res", "text", "qualified". When set to "text", the
labelText
list is used.{String[]} labelText - list of label strings, must set
labelType
to "text" to take effect{String[]} labelFormat - sprintf-js format string, any attribute of AtomProxy can be used
{String} labelGrouping - grouping of the label, one of: "atom", "residue".
{String} fontFamily - font family, one of: "sans-serif", "monospace", "serif"
{String} fontStyle - font style, "normal" or "italic"
{String} fontWeight - font weight, "normal" or "bold"
{Float} xOffset - offset in x-direction
{Float} yOffset - offset in y-direction
{Float} zOffset - offset in z-direction (i.e. in camera direction)
{String} attachment - attachment of the label, one of: "bottom-left", "bottom-center", "bottom-right", "middle-left", "middle-center", "middle-right", "top-left", "top-center", "top-right"
{Boolean} showBorder - show border/outline
{Color} borderColor - color of the border/outline
{Float} borderWidth - width of the border/outline
{Boolean} showBackground - show background rectangle
{Color} backgroundColor - color of the background
{Float} backgroundMargin - width of the background
{Float} backgroundOpacity - opacity of the background
{Boolean} fixedSize - show text with a fixed pixel size