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

Allow dictionary-valued of inset/outset/stroke/radius à la typst's `box`

Open timfi opened this issue 7 months ago • 2 comments

What kind of diagram are you wanting to make? Any and all, really.

Idea or feature request I often find myself in situations where I wish I could just bump the inset/outset at the bottom of a node out a bit, just want a border stroke along the top-edge, etc. When using the box command in plain typst, I can easily achieve this via dictionary valued insets/outsets/strokes/radii (e.g., (x: …, top: …, rest: …)). But as far as I can tell, fletcher doesn't support similar behavior itself.

Alternatives you've considered One could place a box within a node and use these features through the box. But, this leads to the node's own inset/outset/etc. needing to be balanced against the settings of the box, which is very tedious to say the least.

timfi avatar Apr 08 '25 06:04 timfi

Yes, I've found myself wanting to individually adjust insets more than a few times now. This feature would be very appreciated

Bugg4 avatar Oct 05 '25 20:10 Bugg4

I totally agree! The workarounds to compensite are really nasty.

theatischbein avatar Nov 05 '25 15:11 theatischbein