Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG figure is cropped #42

Open
yaccos opened this issue Nov 2, 2023 · 1 comment
Open

SVG figure is cropped #42

yaccos opened this issue Nov 2, 2023 · 1 comment

Comments

@yaccos
Copy link

yaccos commented Nov 2, 2023

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants