typst-hs icon indicating copy to clipboard operation
typst-hs copied to clipboard

support for stroke

Open sghng opened this issue 4 months ago • 2 comments

sghng avatar Oct 21 '25 19:10 sghng

This is a very experimental PR... I'm not even sure how do I test it. The goal is to support stroke function when converting Typst files to other formats.

sghng avatar Oct 21 '25 19:10 sghng

I wonder how are VAuto values handled? In the constructor, when Nothing/VAuto is passed, I can either fill in a hard coded default, or simply store the VAuto. But at some point the auto values must be resolved.

For example, in Typst, auto is actually stored and evaluated at rendering. When printing #stroke().paint, we get auto instead of a concrete color.

sghng avatar Oct 22 '25 01:10 sghng