View Source Scenic.Primitive.Style.TextAlign (Scenic v0.11.1)
Set the horizontal alignment of the text with regard to the start point.
Example:
graph
|> text("Some Text", text_align: :center)
data-format
Data Format
TextAlign can be any one of the following values
:left
- Left side horizontally. Base of the text vertically.:right
- Right side horizontally. Base of the text vertically.:center
- Centered horizontally. Base of the text vertically.