<equilibriumLine>
<equilibriumLine> extends <line> to mark a line of equilibria of a dynamical system.
Use it to indicate a continuum
of equilibrium states (for example a nullcline that consists entirely of equilibrium points) while making the
stability visually apparent. The component accepts the full set of <line> attributes.
Attributes and Properties
Attributes for <equilibriumLine>
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.
Labels (1)
labelIsNameboolean. Default value: false. Whether to use this component's name as its rendered label.
Other (13)
applyStyleToLabelboolean. Default value: false. Whether to apply this component's selected style to its label.
draggableboolean. Default value: true. Whether the line can be dragged on a graph.
equationmath. Implicit equation defining the line.
labelPositionkeyword. Where the label sits along this line/curve.
| Value | Description |
|---|---|
upperRight | Place the label above and to the right of the line. |
upperLeft | Place the label above and to the left of the line. |
lowerRight | Place the label below and to the right of the line. |
lowerLeft | Place the label below and to the left of the line. |
center (default) | Place the label at the midpoint of the line. |
top | Place the label directly above the line. |
bottom | Place the label directly below the line. |
left | Place the label directly to the left of the line. |
right | Place the label directly to the right of the line. |
layerinteger. Default value: 0. Z-order layer index used to stack graphical components (higher values render on top).
lineWidthnumber. Stroke width for lines, in pixels.
parallelTo_directionComponent. Direction the line should be parallel to (e.g. another line or vector).
perpendicularTo_directionComponent. Direction the line should be perpendicular to (e.g. another line or vector).
slopenumber. Slope of the line.
stableboolean. Default value: true. Whether the equilibrium is stable (rendered solid) or unstable (rendered dashed).
boolean. Default value: false. Whether the user can toggle the stability of this equilibrium by clicking it.
throughpointList. Points the line passes through.
variables[ _variableNameList ]. Names of the variables used in the line equation.
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 <equilibriumLine name="e">
Number display (5)
$e.avoidScientificNotationboolean. Whether to render numbers in full decimal form rather than scientific notation.
$e.displayDecimalsinteger. Number of decimal places to display when rendering this number.
$e.displayDigitsinteger. Number of significant digits to display when rendering this number.
$e.displaySmallAsZeronumber. Threshold below which numbers are displayed as zero.
$e.padZerosboolean. Whether to pad displayed numbers with trailing zeros to fill the requested digits/decimals.
Labels (2)
$e.labellabel. The label rendered with this component.
$e.labelIsNameboolean. Whether to use this component's name as its rendered label.
Other (27)
$e.applyStyleToLabelboolean. Whether to apply this component's selected style to its label.
$e.backgroundColortext. Human-readable name for this component's background color, derived from the active style and theme.
$e.coeff0math. The constant term in the implicit line equation coeff0 + coeffvar1·x + coeffvar2·y = 0.
$e.coeffvar1math. The coefficient of the first variable in the implicit line equation coeff0 + coeffvar1·x + coeffvar2·y = 0.
$e.coeffvar2math. The coefficient of the second variable in the implicit line equation coeff0 + coeffvar1·x + coeffvar2·y = 0.
$e.disabledboolean. Whether this component is disabled and cannot be interacted with.
$e.draggableboolean. Whether the line can be dragged on a graph.
$e.equationmath. The line's equation as a math expression.
$e.fixedboolean. Whether this component's value is fixed and cannot be modified.
$e.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$e.labelPositiontext. Where the label sits along this line/curve.
$e.latexlatex. The line's equation rendered as LaTeX.
$e.layerinteger. Z-order layer index used to stack graphical components (higher values render on top).
$e.numDimensionsnumber. Number of dimensions the line lives in.
$e.points[ math ]. Two points the line passes through.
$e.slopemath. The slope of the line (2D only).
$e.stableboolean. Whether the equilibrium is stable (rendered solid) or unstable (rendered dashed).
$e.styleDescriptiontext. A textual description of the line's style.
$e.styleDescriptionWithNountext. Style description including the word "line".
$e.switchableboolean. Whether the user can toggle the stability of this equilibrium by clicking it.
$e.texttext. The line's equation rendered as plain text.
$e.textColortext. Human-readable name for this component's text color, derived from the active style and theme.
$e.textStyleDescriptiontext. Human-readable description of this component's text styling (color and any background color).
$e.variables[ _variableName ]. Variable names used in the line's equation.
$e.xinterceptmath. The x-intercept of the line.
$e.yinterceptmath. The y-intercept of the line.
Common to all components (4)
$e.doenetMLtext. The DoenetML source code that produced this component.
$e.hideboolean. Whether to hide this component from the rendered output.
$e.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$e.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: Stable and unstable equilibrium lines
Two lines of equilibria: the vertical line is drawn solid (stable) and the horizontal line is drawn dashed
(unstable). The stable attribute defaults to true; setting it to false switches the rendering to a
dashed line.
Attribute Examples
Attribute Example: switchable
When switchable is set, clicking the line toggles its stable state and the solid/dashed rendering. Useful
for exercises where the learner must classify a nullcline.
Attribute Example: stable bound to a boolean input
The stable attribute accepts any boolean expression, so the line’s stability can be driven from any source
of state in the document.