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 path shaped area import error #31

Open
wassfila opened this issue Feb 7, 2023 Discussed in #30 · 4 comments
Open

SVG path shaped area import error #31

wassfila opened this issue Feb 7, 2023 Discussed in #30 · 4 comments
Labels
enhancement New feature or request known_limitation

Comments

@wassfila
Copy link
Member

wassfila commented Feb 7, 2023

Discussed in #30

Originally posted by Josseflos February 7, 2023
Hi there,

I am trying to import a SVG file in the Voronoi web editor (Chrome), but keep receiving the same error: "only supported import of SVG with a single path on the top level". I am using Inkscape to create a SVG and am making sure that the file is a single path on the top layer, but even when plucking simples shapes from the internet, the error comes up. Does anyone know what could go wrong, or could anyone share a file that works, so I can compare it with other files?

Thanks in advance!

Jos

@wassfila
Copy link
Member Author

wassfila commented Feb 7, 2023

Hi,
on the menu Shape "select" dropdown, there are some examples, those files are in the data folder https://github.com/WebSVG/voronoi/tree/master/data
I was thinking of enhancing to get rid of that limitation, that would require svg rework and simplification.

If you post the examples you tried with and did not work here, I can try to check why they did not work.

@wassfila wassfila added bug Something isn't working known_limitation labels Feb 7, 2023
@Josseflos
Copy link

Josseflos commented Feb 8, 2023

Hi Wassim,

Thanks for your quick response! I was aware of the examples in the dropdown menu, but I overlooked the data folder...
I have compared the files in there with mine, and the issue I had was that my path was part of a layer, instead of being a standalone object. This was confusing to me since I thought an object would always be part of a (top) layer. It works perfectly now, even with a slighty more complicated figure (see below).

Thanks for the tool anyway! I love the features and freedom you have.

Lizard

@wassfila
Copy link
Member Author

wassfila commented Feb 8, 2023

Thanks for the tool anyway! I love the features and freedom you have.

Glad you liked it.
I'll keep this open as an improvement as I think searching for the first path and using it should not be difficult.

@wassfila wassfila added enhancement New feature or request and removed bug Something isn't working labels Feb 8, 2023
@wassfila
Copy link
Member Author

wassfila commented Feb 8, 2023

funny, modern art by mistake

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request known_limitation
Projects
None yet
Development

No branches or pull requests

2 participants