ReferencebezierControls

<bezierControls>

Defines Bezier control vectors at points along a curve

<bezierControls> is a Graphical component. It is always the child of a <curve> component and provides a means to specify the control vectors at each bezier curve control point.

Attributes and Properties

Attributes for <bezierControls>

Other (1)

boolean. Default value: false. Whether Bezier control handles are always shown (rather than only when the curve is selected).

Common to all components (9)
copy

reference. Create an independent copy of another component by reference. Enter a references a $name.

disabled

boolean. Default value: false. Whether this component is disabled and cannot be interacted with.

extend

reference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.

fixed

boolean. Default value: false. Whether this component's value is fixed and cannot be modified.

fixLocation

boolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

hide

boolean. Default value: false. Whether to hide this component from the rendered output.

isResponse

boolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.

name

text. The name used to reference this component from elsewhere in the document.

styleNumber

integer. Default value: 1. The style number used to select this component's visual styling from the available style definitions.

Properties for <bezierControls name="b">

Other (5)
$b.alwaysVisible

boolean. Whether Bezier control handles are always shown (rather than only when the curve is selected).

$b.disabled

boolean. Whether this component is disabled and cannot be interacted with.

$b.fixed

boolean. Whether this component's value is fixed and cannot be modified.

$b.fixLocation

boolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

$b.hidden

boolean. Whether this component is hidden from the rendered output.

Common to all components (4)
$b.doenetML

text. The DoenetML source code that produced this component.

$b.hide

boolean. Whether to hide this component from the rendered output.

$b.isResponse

boolean. Whether this component is treated as a response for the purposes of assessment.

$b.styleNumber

integer. The style number used to select this component's visual styling from the available style definitions.

Examples

Example: <bezierControls> with nested control vectors

Assuming all control points have symmetric control vectors, the vectors may be specified directly in list form inside a <bezierControls> component, in the same order as the control points are specified in the parent <curve> component.


Example: <bezierControls> with <controlVectors> children

Control vectors for a bezier <curve> can also be specified as individual <controlVectors> nested within a <bezierControls> block.


Example: <bezierControls> with asymmetric control vectors

When a single control point has distinct control vectors in each direction, two <vector> components may be listed within the <controlVectors> component in a <bezierControls> block. In this case, specify direction="both" within the <controlVectors> block.

Attribute Examples

Attribute Example: alwaysVisible

The alwaysVisible attribute can be used with <bezierControls> to make handles permanently visible.