Constructor
# new TextLayout(optionsopt)
Layout options for Image.renderText
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
object |
<optional> |
||
maxWidth |
number |
<optional> |
Infinity | The texts max width |
maxHeight |
number |
<optional> |
Infinity | The texts max height |
wrapStyle |
string |
<optional> |
'word' | The texts wrap style when reaching the max width (word, char) |
verticalAlign |
string |
<optional> |
'left' | The vertical align mode (left, center, right) |
horizontalAlign |
string |
<optional> |
'top' | The horizontal align mode (top, middle, bottom) |
wrapHardBreaks |
boolean |
<optional> |
true | Whether to force wrap at new line characters |