Jollywatt / typst-fletcher

Typst package for drawing diagrams with arrows, built on top of CeTZ.
MIT License
341 stars 6 forks source link

More fine-grained control of enclose #30

Closed moritzketzer closed 4 months ago

moritzketzer commented 4 months ago

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?

Jollywatt commented 4 months ago

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.

moritzketzer commented 4 months ago

Thanks!