Skip to content

Positioning elements by other corners (e.g. for RTL content) #146

Description

@fantasai

When drawing RTL content, it's awkward to have to position everything from the left edge, especially considering text content which is an arbitrary size. To position something at the left edge, you just place it at zero. But to position something at the right edge, you need to calculate the size of the canvas and the thing you're drawing, and do some extra math to figure out where the left edge would be.

If we want a comfortable API for internationalized content, we need some improvements to how drawElementImage positions the element image.

(For that matter, being able to position things from the center might also be useful.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions