<atom>
<atom> is a Subject-specific
component that renders the atomic symbol for an element, and contains numerous built-in chemical properties.
Attributes and Properties
Attributes for <atom>
Number display (5)
avoidScientificNotationboolean. Default value: false. Whether to render numbers in full decimal form rather than scientific notation.
displayDecimalsinteger. Default value: 2. Number of decimal places to display when rendering this number.
displayDigitsinteger. Default value: 3. Number of significant digits to display when rendering this number.
displaySmallAsZeronumber. Default value: 1e-14. Threshold below which numbers are displayed as zero.
padZerosboolean. Default value: false. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.
Other (2)
integer. The atomic number of the atom (number of protons).
text. The chemical symbol of the atom (e.g. "H", "He", "Li").
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <atom name="a">
Number display (5)
$a.avoidScientificNotationboolean. Whether to render numbers in full decimal form rather than scientific notation.
$a.displayDecimalsinteger. Number of decimal places to display when rendering this number.
$a.displayDigitsinteger. Number of significant digits to display when rendering this number.
$a.displaySmallAsZeronumber. Threshold below which numbers are displayed as zero.
$a.padZerosboolean. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.
Other (28)
$a.atomicMassnumber. The atomic mass of the element.
$a.atomicNumberinteger. The atomic number of the element.
$a.atomicRadiusinteger. The atomic radius of the element.
$a.backgroundColortext. Human-readable name for this component's background color, derived from the active style and theme.
$a.boilingPointnumber. The boiling point of the element.
$a.chargeOfCommonIoninteger. The charge of the most common ion of this element.
$a.densitynumber. The density of the element at standard conditions.
$a.disabledboolean. Whether this component is disabled and cannot be interacted with.
$a.electronConfigurationelectronConfiguration. The electron configuration of the element as a math expression.
$a.electronegativitynumber. The Pauling electronegativity of the element.
$a.fixedboolean. Whether this component's value is fixed and cannot be modified.
$a.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$a.groupinteger. The group number of the element in the periodic table.
$a.groupNametext. The descriptive name of the element's periodic group (e.g. "Alkali metals").
$a.ionizationEnergynumber. The first ionization energy of the element.
$a.latexlatex. The atom rendered as a LaTeX string.
$a.mathmath. The atom rendered as a math expression with the element symbol.
$a.meltingPointnumber. The melting point of the element.
$a.metalCategorytext. The metal category of the element (e.g. alkali metal, transition metal, nonmetal).
$a.nametext. The full name of the element.
$a.orbitalDiagramorbitalDiagram. The orbital diagram of the element.
$a.periodinteger. The period number of the element in the periodic table.
$a.phaseAtSTPtext. The phase (solid, liquid, or gas) of the element at standard temperature and pressure.
$a.symboltext. The chemical symbol of the element.
$a.texttext. The atom rendered as a plain text string.
$a.textColortext. Human-readable name for this component's text color, derived from the active style and theme.
$a.textStyleDescriptiontext. Human-readable description of this component's text styling (color and any background color).
Common to all components (4)
$a.doenetMLtext. The DoenetML source code that produced this component.
$a.hideboolean. Whether to hide this component from the rendered output.
$a.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$a.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: Define an <atom> with atomic number
An <atom> component may defined by specifying either its atomic number or
its symbol. Once defined, there are many built-in properties of <atom> that
can be accessed.
Example: Define an <atom> with its symbol
An <atom> component may defined by specifying either its atomic number
or its symbol. Once defined, there are many built-in properties of <atom> that
can be accessed.
Example: All the properties at once
The listing above includes all of the chemical properties currently
available to the <atom> component.
Attribute Examples
Attribute Example: symbol
The symbol attribute takes the atom’s chemical symbol as input.
Attribute Example: atomicNumber
The atomicNumber attribute takes the atom’s atomic number as input.