Skip to content

Text justification #7

@jarcane

Description

@jarcane

Add support for text justification property to the :text element.

Proposal:

  • new property on :text element: :dir - Contains one of options: :left, :center, :right, :start, :end.
  • implementation: preserve existing ctx.textAlign property, set to the value specified by :dir if present (name function will probably help here), restore original property when element is done drawing. This is similar to how :color/:font are applied.
  • challenges: None expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions