Textareas
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
Property | Type | Description |
---|---|---|
name | string | this must be unique |
text | string, formula | |
margins | number, TextMargins (optional) | |
editable | boolean (optional) | |
style | TextStyle (optional) | |
align | string (optional) | |
valign | string (optional) |
TextMargins schema
Property | Type | Description |
---|---|---|
top | number (optional) | |
right | number (optional) | |
bottom | number (optional) | |
left | number (optional) |
TextStyle schema
Property | Type | Description |
---|---|---|
color | string or formula : if editable is false or not specified (optional) | |
size | number or formula : if editable is false or not specified (optional) | |
sizeUnits | string : either pt or px . If not specified, then px is used. (optional) | |
bold | boolean or formula : if editable is false or not specified (optional) | |
underline | boolean or formula : if editable is false or not specified (optional) | |
italic | boolean or formula : if editable is false or not specified (optional) | |
font | string or formula : if editable is false or not specified (optional) |
Updated 6 months ago