These docs are for v1.0. Click to read the latest docs for v1.2.

Text can be displayed on the shape using text areas. Text areas are defined in either the shape definition or in sub-shapes, which fill the bounds in which it is defined. Sub-shapes containing only text can be defined to place text on a specific area of the overall shape.

Text areas only define the placement and rendering of text. If a border is needed for a text area, for example, additional geometry must be used.

Textarea schema

PropertyTypeDescription
namestringthis must be unique
textstring, formula
marginsnumber, TextMargins (optional)
editableboolean (optional)
styleTextStyle (optional)
alignstring (optional)
valignstring (optional)

TextMargins schema

PropertyTypeDescription
topnumber or formula (optional)
rightnumber or formula(optional)
bottomnumber or formula(optional)
leftnumber or formula(optional)

TextStyle schema

PropertyTypeDescription
colorstring
or formula: if editable is false or not specified (optional)
sizenumber
or formula: if editable is false or not specified (optional)
sizeUnitsstring: either pt or px. If not specified, then px is used. (optional)
boldboolean
or formula: if editable is false or not specified (optional)
underlineboolean
or formula: if editable is false or not specified (optional)
italicboolean
or formula: if editable is false or not specified (optional)
fontstring
or formula: if editable is false or not specified (optional)