<endpoint>
<endpoint> is a Graphical
component that renders a point that can be switched from open to closed (or unfilled to filled).
Attributes and Properties
Attributes for <endpoint>
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 (17)
addControlskeyword. Whether to render interactive control handles.
| Value | Description |
|---|---|
none | Show no control handles. |
both (default) | Show control handles for moving the point in both x and y. |
xOnly | Show a control handle that constrains motion to the x direction. |
yOnly | Show a control handle that constrains motion to the y direction. |
applyStyleToLabelboolean. Default value: false. Whether to apply this component's selected style to its label.
controlOrderinteger. Default value: 0. Slot order for graph controls (1-indexed; 0 means no explicit slot request).
coordscoords. The point's coordinates as a single math expression.
draggableboolean. Default value: true. Whether the point can be dragged on a graph.
hideOffGraphIndicatorboolean. Whether to suppress the indicator drawn at the edge when the point is off-screen.
labelPositionkeyword. Position of the point's label.
| Value | Description |
|---|---|
upperRight (default) | Place the label above and to the right of the point. |
upperLeft | Place the label above and to the left of the point. |
lowerRight | Place the label below and to the right of the point. |
lowerLeft | Place the label below and to the left of the point. |
top | Place the label directly above the point. |
bottom | Place the label directly below the point. |
left | Place the label directly to the left of the point. |
right | Place the label directly to the right of the point. |
layerinteger. Default value: 0. Z-order layer index used to stack graphical components (higher values render on top).
markerSizenumber. Marker size in pixels.
markerStylekeyword. Marker shape.
| Value | Description |
|---|---|
circle | Circular marker. |
square | Square marker. |
triangle | Triangular marker pointing up (alias for "triangleUp"). |
triangleUp | Triangular marker pointing up. |
triangleDown | Triangular marker pointing down. |
triangleLeft | Triangular marker pointing left. |
triangleRight | Triangular marker pointing right. |
diamond | Diamond-shaped marker. |
boolean. Default value: false. Whether the endpoint is open (excluded) rather than closed (included).
showCoordsWhenDraggingboolean. Default value: true. Whether to show coordinate labels while dragging.
boolean. Default value: false. Whether the user can toggle the endpoint between open and closed by clicking it.
xmath. The first coordinate (x) of the point.
xs[ mathList ]. The point's coordinates as a list.
ymath. The second coordinate (y) of the point.
zmath. The third coordinate (z) of the point.
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 <endpoint 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 (30)
$e.addControlstext. Whether to render interactive control handles.
$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.constraintUsedboolean. Whether this constraint was applied to the component.
$e.controlOrderinteger. Slot order for graph controls (1-indexed; 0 means no explicit slot request).
$e.coordscoords. The point's coordinates as a math expression.
$e.disabledboolean. Whether this component is disabled and cannot be interacted with.
$e.draggableboolean. Whether the point can be dragged on a graph.
$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.hideOffGraphIndicatorboolean. Whether to suppress the off-graph indicator when out of view.
$e.labelPositiontext. Position of the point's label.
$e.latexlatex. The point rendered as a LaTeX string.
$e.layerinteger. Z-order layer index used to stack graphical components (higher values render on top).
$e.numDimensionsnumber. Number of dimensions of the point.
$e.numDimensionsForConstraintsnumber. Number of dimensions exposed to constraint computations (alias for numDimensions).
$e.openboolean. Whether the endpoint is open (excluded) rather than closed (included).
$e.scalesnumber. The graph axis scales (x and y) used when applying this constraint.
$e.showCoordsWhenDraggingboolean. Whether to show coordinate labels while dragging.
$e.styleDescriptiontext. A textual description of the point's style.
$e.styleDescriptionWithNountext. Style description including the word "point".
$e.switchableboolean. Whether the user can toggle the endpoint between open and closed by clicking it.
$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.valuecoords. The point's coordinates as a single math expression.
$e.xmath. The first coordinate (x) of the point.
$e.xs[ math ]. The point's coordinates as a list.
$e.ymath. The second coordinate (y) of the point.
$e.zmath. The third coordinate (z) of the point.
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: Default endpoint
The default <endpoint> behaves like a <point>.
An <endpoint> also accepts all <point> attributes.
Example: An <endpoint> shares <point> attributes
All attributes and properties that are available to points are also available to endpoints. Endpoints can also have the same constraints as points.
Attribute Examples
Attribute Example: switchable
The switchable attribute allows the user to click the <endpoint> to
switch between an open and a closed point.
Attribute Example: open
The open attribute renders an <endpoint> that is open.
Property Examples
Property Example: <point> properties
The properties of points are accessible to endpoints as well. A few selected properties are illustrated.
Property Example: attributes as properties
Both attributes of <endpoint> are also accessible as properties.