PgBiel / typst-tablex

More powerful and customizable tables in Typst
MIT License
370 stars 12 forks source link

Fix state update code #128

Open PgBiel opened 6 months ago

PgBiel commented 6 months ago

At get-page-dim-writer, calls to loc.position() - and thus the pos variables - must be made outside the state-name.update(...) call. Therefore, the pos variables must be declared above the .update lines seen below.

https://github.com/PgBiel/typst-tablex/blob/79c6bbd3914d7d72cece5e395c137c53f9973ec6/src/renderer/old.typ#L38-L58