emfcamp/badge-2024-documentation

ctx.text_align property incorrectly defined

paulhayes opened this issue · 0 comments

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