biosustain / shu

Multi-dimensional, trans-omics metabolic maps.
https://biosustain.github.io/shu
Apache License 2.0
41 stars 1 forks source link

SVG figure is cropped #42

Open yaccos opened 10 months ago

yaccos commented 10 months ago

Even though the bug preventing SVG export is fixed, I am not entirely happy about the SVG figure produced. It appears that the figure is cropped such that parts of the map is missing. test_map

carrascomj commented 10 months ago

The good thing is that the image itself is not cropped, the issue is that the viewport is wrongly aligned with the image. This becomes clearer when you open it with Inkscape or similar: image There, if you go to document properties (Ctrl+Shift+D) and press the "resize to content" button it will look as it should.

This is fine as a workaround but I should figure out for once the proper coordinates of the viewport at https://github.com/carrascomj/roarsvg, it is a bit confusing because bevy uses a different coordinate system than the usual canvas.