Closed ntjess closed 8 months ago
Thanks for reporting! I didn't know gradient
wasn't also considered a color type. Your proposed diff is a bit problematic because we target Typst 0.2.0+ (I plan on lifting that restriction on a future version), so I will think of something else.
I think I can work around this by creating some is-color
method instead, which just checks if either the type is color_type or str(type(...))
is equal to one of ("gradient", "pattern")
. I should be working on this soon.
Can confirm the fix is working. Should be there in 0.0.7 (which I'll likely release within a week). In the meantime, you can use tablex.typ
from the 0.0.x branch. :+1:
Raises the following error:
However, the following diff allows compilation without any issue:
So it seems there is no inherent limitation that prevents gradient fills. Is it possible to include this in the next release?