<text>

<text> is a Text component that defines a string variable for use in evaluations and boolean expressions, or to store a value for future rendering.

Attributes and Properties

Attributes for <text>
AttributeTypeValues
anchor = "…"point
draggable = "…"boolean"true" "false"
isLatex = "…"boolean"true" "false"
layer = "…"number
positionFromAnchor = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center"
Props for <text name="t">
PropertyType
$t.anchorpoint
$t.backgroundColortext
$t.characters[ text ]
$t.disabledboolean
$t.draggableboolean
$t.fixedboolean
$t.fixLocationboolean
$t.hiddenboolean
$t.isLatexboolean
$t.layernumber
$t.list[ text ]
$t.mathmath
$t.numbernumber
$t.numCharactersinteger
$t.numListItemsinteger
$t.numWordsinteger
$t.positionFromAnchortext
$t.texttext
$t.textColortext
$t.textStyleDescriptiontext
$t.valuetext
$t.words[ text ]

Example: Store a <text> for future rendering

<text> values are defined in a <setup> and referenced by name later for rendering.


Example: <text> used in a <boolean>

A <text> values is defined in a <setup> and referenced by name later in a <boolean>.


Example: <text> used on a <graph>

A <text> values is defined on a <graph>. The position of the <text> can be adjusted with the anchor attribute.


Example: <text> adaptable to <math> contexts

<text> values inserted into a <math> will be parsed as a <math> where possible.


Attribute Example: anchor

The anchor attribute determines the initial position of a <text> on a <graph>.


Attribute Example: draggable

The draggable attribute determines whether the <text> can be dragged around the <graph>. All graphical objects are draggable by default.