Jollywatt / typst-fletcher

Typst package for drawing diagrams with arrows, built on top of CeTZ.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More fine-grained control of enclose

moritzketzer opened this issue · comments

I would like to have more fine-grained control to enclose nodes, i.e., right now enclose snaps directly around the nodes, but I would like to have more control of the spacing.

Is there another way to use rectangles with rounded edges around nodes that I can place at will?

If setting the inset and corner-radius options of the enclosing node doesn't give you enough control, the backup solution is to use the diagram(render: ..) option to draw things with CeTZ directly. CeTZ interop is still a little awkward, but there's an example in the manual.

Thanks!