Interface: BohrDiagramOptions
Defined in: src/mobjects/chemistry/BohrDiagram.ts:51
Options for a BohrDiagram.
Properties
electronColor?
optionalelectronColor:string
Defined in: src/mobjects/chemistry/BohrDiagram.ts:73
Fill color of the electron dots. Default: yellow.
electronRadius?
optionalelectronRadius:number
Defined in: src/mobjects/chemistry/BohrDiagram.ts:67
Radius of each electron dot. Default: 0.08.
element?
optionalelement:string
Defined in: src/mobjects/chemistry/BohrDiagram.ts:53
Element symbol, e.g. 'C', 'Na', 'O'. Derives the proton count and filling.
nucleusColor?
optionalnucleusColor:string
Defined in: src/mobjects/chemistry/BohrDiagram.ts:69
Fill color of the nucleus circle. Default: a warm red.
nucleusRadius?
optionalnucleusRadius:number
Defined in: src/mobjects/chemistry/BohrDiagram.ts:63
Radius of the nucleus circle. Default: 0.4.
protons?
optionalprotons:number
Defined in: src/mobjects/chemistry/BohrDiagram.ts:55
Atomic number (proton count) directly. The element wins if both are given.
shellColor?
optionalshellColor:string
Defined in: src/mobjects/chemistry/BohrDiagram.ts:71
Stroke color of the shell circles. Default: white.
shellRule?
optionalshellRule:BohrShellRule
Defined in: src/mobjects/chemistry/BohrDiagram.ts:59
Rule that computes the filling when shells is not given. Default: 'school'.
shells?
optionalshells:number[]
Defined in: src/mobjects/chemistry/BohrDiagram.ts:57
Explicit per-shell electron counts. Overrides the computed filling.
shellSpacing?
optionalshellSpacing:number
Defined in: src/mobjects/chemistry/BohrDiagram.ts:65
Radial distance between consecutive shells. Default: 0.6.
showNucleusLabel?
optionalshowNucleusLabel:boolean
Defined in: src/mobjects/chemistry/BohrDiagram.ts:61
Whether to label the nucleus with the symbol and proton count. Default: true.