Skip to main content

Interface: DistanceLabelOptions

Defined in: src/mobjects/molecular/annotations.ts:55

Options for distanceLabel.

Properties​

color?​

optional color: string

Defined in: src/mobjects/molecular/annotations.ts:57

The line and label color. Default: '#ffffff'.


decimals?​

optional decimals: number

Defined in: src/mobjects/molecular/annotations.ts:61

Decimal places in the computed distance. Default: 1.


fontSize?​

optional fontSize: number

Defined in: src/mobjects/molecular/annotations.ts:65

The label font size. Default: 28.


label?​

optional label: string

Defined in: src/mobjects/molecular/annotations.ts:59

Override text; when set, replaces the computed distance.


lineWidth?​

optional lineWidth: number

Defined in: src/mobjects/molecular/annotations.ts:67

The measured line width in pixels. Default: 2.


unit?​

optional unit: string

Defined in: src/mobjects/molecular/annotations.ts:63

The distance unit appended to the computed distance. Default: 'Å'.