Closed wlievens closed 1 day ago
It seems like this is caused by the edge with vertices "rr,uuuuu,l,l"
. If you do "rr,uuuuu,ll"
instead, it seems to work ok. My guess is that "l,l"
causes fletcher to try to render a rounded "corner" with an angle of 180deg, which explodes sometimes. If so, these kinds of edge cases should be handled better...
Thanks for the tip. That seems to have been an artifact from playing with the manual edge routing a lot.
This should be working now!
My diagram sometimes triggers division-by-zero errors when I'm tuning certain dimensioning parameters, such as
diagram spacing
.It appears to me the sign(x) function should simply for x=0, and right now it does not, as it is implemented as
sign(x)=x/|x|
.https://github.com/Jollywatt/typst-fletcher/blob/master/src/utils.typ#L80
My diagram code