Closed Ownezx closed 3 weeks ago
Fitting exists for rectangles and circles: The frame:
parameter of content
supports both "rect"
and "circle"
values and supports padding via the padding:
parameter.
Support for other shapes should be easy to implement, have a look at the content
function in src/draw/shapes.typ
(search for "rect").
Hi, I'm currently wanting to size the size of shapes to content much like the it does in default typst : https://typst.app/docs/reference/visualize/circle/
For instance, for the circle I would expect to be able to use something in the lines of:
Ideally the auto fitting should be customizeable with a padding value?