Text
Examples#
See these.
Text
#
Bases: Shape
Draws value with style at
the given (x, y) point.
alignment
#
A point within a text rectangle to determine its position and rotation center.
max_lines
#
max_lines: int | None = None
The maximum number of lines painted. Lines beyond this number are silently
dropped. For example, if max_lines = 1, then only one line is rendered.
If max_lines = None, but ellipsis != None, then lines after the first one
that overflows the width constraints are dropped.
max_width
#
max_width: Number | None = None
The maximum width of the painted text.
Defaults to None - infinity.
rotate
#
rotate: Number = 0
The rotation of this text in radians. Text is rotated around the point determined by
alignment.