emfcamp / badge-2024-documentation

Tildagon badge documentation website
https://tildagon.badge.emfcamp.org/
21 stars 38 forks source link

ctx.text_align property incorrectly defined #251

Closed paulhayes closed 2 months ago

paulhayes commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

https://tildagon.badge.emfcamp.org/tildagon-apps/reference/ctx/

The property ctx.text_align is described as taking a string, however if you pass it any of the string constants an error it thown, it actually takes an int.

The int values seem to be stored constants on the ctx object itself. i.e ctx.LEFT, ctx.RIGHT, ctx.CENTER So the following works for me ctx.text_align = ctx.CENTER

Version: v1.8.0