Skip to main content

Interface: ReactionSchemeOptions

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

Options for a ReactionScheme.

Properties​

arrowLength?​

optional arrowLength: number

Defined in: src/mobjects/chemistry/ReactionScheme.ts:62

Length of each arrow, in scene units. Default: 2.


color?​

optional color: string

Defined in: src/mobjects/chemistry/ReactionScheme.ts:64

Arrow color. Default: WHITE. The species keep their own atom colors.


gap?​

optional gap: number

Defined in: src/mobjects/chemistry/ReactionScheme.ts:60

Horizontal space between a species and the next arrow, in scene units. Default: 1.


species​

species: MoleculeMobject[]

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

The species, laid left to right. At least two (a reactant and a product).


steps?​

optional steps: ReactionStep[]

Defined in: src/mobjects/chemistry/ReactionScheme.ts:58

One step per gap between adjacent species. Its length must equal species.length - 1 when given. Omit for all-forward arrows.