Jollywatt / typst-fletcher

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

added new node shape diamond (first draft) #7

Closed michii-h closed 8 months ago

michii-h commented 8 months ago

I added a new node shape (diamond), which can be useful for flowcharts. It may need some sizing adjustments though.

diamond

Jollywatt commented 8 months ago

Thanks, this looks like a good quick fix!

Obviously, it raises the question: what about other shapes? I've been thinking of giving the user a way to draw custom node shapes directly with CeTZ, but I want edges to still automatically snap to the outline.

If custom node shapes happen, then that would replace this, but until then it's probably good to have.

michii-h commented 8 months ago

Just saw that you implemented custom shapes with CeTZ now, so I guess I'll close the pull request :)