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

Sample SVG that is bad rendered #6

Closed
mrmx opened this issue Dec 13, 2020 · 2 comments
Closed

Sample SVG that is bad rendered #6

mrmx opened this issue Dec 13, 2020 · 2 comments

Comments

@mrmx
Copy link
Contributor

mrmx commented Dec 13, 2020

A three paths svg document with no curves
bitcoin-logo.svg.zip

@xsrf
Copy link
Owner

xsrf commented Dec 13, 2020

Thx, I can confirm the issue. The second shape within the path, starting with m 15.838,26.885 -3.443,0.064 -2.516,0.022 is not parsed correctly. I was assuming that coordinates without a command are always a repetition of the previous command. However, it seems this is not true for m/Move (which makes sense). The following coordinates are actually lines. This is why the shape is not closed and the third shape is offset.

2020-12-13 20_10_45-EasyEDA - A Simple and Powerful Electronic Circuit Design Tool

I've actually not really found a documentation on how these repeated commands should be parsed. I guess I'll have to look into that.

@xsrf
Copy link
Owner

xsrf commented Dec 13, 2020

The issue is fixed now, it can be properly imported as outline/track.
2020-12-13 21_18_45-EasyEDA 6 4 7 - Projects Offline mode

If you import it as SVG node, it won't have the inner cutouts. This is due to the design of the SVG. The cutouts orientation needs to be reversed. In case you're looking for this, see the svg attached.
bitcoin-logo-reversed.zip

@xsrf xsrf closed this as completed Dec 13, 2020
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