Valid for <text>
subelements. Similar to text
attribute but in this case the text is automatically wrapped to fit within the reference bounding box.
It's defined as an object with text
property and optional width
and height
, which can adjust the final size of the wrapped text.
Positive values increment and negative values decrement the dimension. Define values as percentage when a fraction of the dimension is required.
textWrap: {
text: 'Here is the text to be wrapped.',
width: -10, // reference width minus 10
height: '50%' // half of the reference height
}