<regionHalfPlane/>
<regionHalfPlane/> is a Graphical
component that represents one side of the plane bounded by a vertical or horizontal line. It does not
render anything by itself; its role is to act as a region passed to a constraint such as
<constrainTo> or <constrainToInterior>, restricting a
<point> to that half-plane.
With the default attributes the region is the right half-plane .
Attributes and Properties
Attributes for <regionHalfPlane>
Labels (1)
labelIsNameboolean. Default value: false. Whether to use this component's name as its rendered label.
Other (6)
applyStyleToLabelboolean. Default value: false. Whether to apply this component's selected style to its label.
number. Default value: 0. Position of the bounding line: x = boundaryValue when horizontal is true, y = boundaryValue when horizontal is false.
boolean. Default value: true. Whether the region is the side where the inequality is greater than the boundary.
boolean. Default value: true. Whether the half-plane extends horizontally, bounded by the vertical line x = boundaryValue. If false, the half-plane extends vertically, bounded by the horizontal line y = boundaryValue.
layerinteger. Default value: 0. Z-order layer index used to stack graphical components (higher values render on top).
maskLabelboolean. Default value: false. Whether to give the label an opaque background so it stays legible when it overlaps an axis, grid line, or another object.
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 <regionHalfPlane name="r">
Labels (2)
$r.labellabel. The label rendered with this component.
$r.labelIsNameboolean. Whether to use this component's name as its rendered label.
Other (10)
$r.applyStyleToLabelboolean. Whether to apply this component's selected style to its label.
$r.boundaryValuenumber. Position of the bounding line: x = boundaryValue when horizontal is true, y = boundaryValue when horizontal is false.
$r.disabledboolean. Whether this component is disabled and cannot be interacted with.
$r.fixedboolean. Whether this component's value is fixed and cannot be modified.
$r.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$r.greaterThanboolean. Whether the region is the side where the inequality is greater than the boundary.
$r.horizontalboolean. Whether the half-plane extends horizontally, bounded by the vertical line x = boundaryValue. If false, the half-plane extends vertically, bounded by the horizontal line y = boundaryValue.
$r.layerinteger. Z-order layer index used to stack graphical components (higher values render on top).
$r.maskLabelboolean. Whether to give the label an opaque background so it stays legible when it overlaps an axis, grid line, or another object.
Common to all components (4)
$r.doenetMLtext. The DoenetML source code that produced this component.
$r.hideboolean. Whether to hide this component from the rendered output.
$r.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$r.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: Constrain a <point> to the right half-plane
The point can be moved freely in the right half-plane and is held against the -axis when dragged to
the left. The defaults — horizontal="true", boundaryValue="0", greaterThan="true" — describe the
half-plane .
Attribute Examples
Attribute Example: horizontal
When horizontal is false, the half-plane extends vertically instead of horizontally. Combined
with the default boundaryValue="0" and greaterThan="true", this is the upper half-plane .
Attribute Example: boundaryValue
boundaryValue shifts the bounding line. With horizontal="true" (the default), it sets the vertical
boundary .
Attribute Example: greaterThan
Setting greaterThan to false selects the opposite side of the boundary. The combination of
horizontal="false" and greaterThan="false" here gives the lower half-plane .