Skip to main content

Interface: BohrDiagramOptions

Defined in: src/mobjects/chemistry/BohrDiagram.ts:51

Options for a BohrDiagram.

Properties​

electronColor?​

optional electronColor: string

Defined in: src/mobjects/chemistry/BohrDiagram.ts:73

Fill color of the electron dots. Default: yellow.


electronRadius?​

optional electronRadius: number

Defined in: src/mobjects/chemistry/BohrDiagram.ts:67

Radius of each electron dot. Default: 0.08.


element?​

optional element: string

Defined in: src/mobjects/chemistry/BohrDiagram.ts:53

Element symbol, e.g. 'C', 'Na', 'O'. Derives the proton count and filling.


nucleusColor?​

optional nucleusColor: string

Defined in: src/mobjects/chemistry/BohrDiagram.ts:69

Fill color of the nucleus circle. Default: a warm red.


nucleusRadius?​

optional nucleusRadius: number

Defined in: src/mobjects/chemistry/BohrDiagram.ts:63

Radius of the nucleus circle. Default: 0.4.


protons?​

optional protons: number

Defined in: src/mobjects/chemistry/BohrDiagram.ts:55

Atomic number (proton count) directly. The element wins if both are given.


shellColor?​

optional shellColor: string

Defined in: src/mobjects/chemistry/BohrDiagram.ts:71

Stroke color of the shell circles. Default: white.


shellRule?​

optional shellRule: BohrShellRule

Defined in: src/mobjects/chemistry/BohrDiagram.ts:59

Rule that computes the filling when shells is not given. Default: 'school'.


shells?​

optional shells: number[]

Defined in: src/mobjects/chemistry/BohrDiagram.ts:57

Explicit per-shell electron counts. Overrides the computed filling.


shellSpacing?​

optional shellSpacing: number

Defined in: src/mobjects/chemistry/BohrDiagram.ts:65

Radial distance between consecutive shells. Default: 0.6.


showNucleusLabel?​

optional showNucleusLabel: boolean

Defined in: src/mobjects/chemistry/BohrDiagram.ts:61

Whether to label the nucleus with the symbol and proton count. Default: true.