uid / snapdown

Draw snapshot diagrams with plain text
MIT License
3 stars 0 forks source link

Double-arrows sometimes do not show #9

Closed dwhatley19 closed 4 years ago

dwhatley19 commented 4 years ago

Double (immutable) arrows sometimes do not show, as in the following example:

a => (String "a")
b => a
c => b

which current produces this diagram:

Screen Shot 2020-08-02 at 2 10 09 PM

Direct URL: https://web.mit.edu/dwhatley/www/snapdown/web/production.html#a%20%3D%3E%20(String%20%22a%22)%0Ab%20%3D%3E%20a%0Ac%20%3D%3E%20b

It seems all three path.snap-arrow.snap-immutable elements are present, but only two of them are actually displaying in the SVG.

maxg commented 4 years ago

Safari shows the vertical arrow, but both Chrome and Safari fail for me on almost-vertical arrows:

image

Seems like a bounding box clipping problem.

dwhatley19 commented 4 years ago

Fixed by changing coordinates and size fields of the filter SVG element.