View Source Scenic.Primitive.Style.TextAlign (Scenic v0.11.2)

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 alignment.
  • :right - Right side alignment.
  • :center - Centered alignment.