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

Loss of document structure. Groups (<g>) are lost. #13

Open
Grsmto opened this issue Sep 4, 2013 · 1 comment
Open

Loss of document structure. Groups (<g>) are lost. #13

Grsmto opened this issue Sep 4, 2013 · 1 comment

Comments

@Grsmto
Copy link

Grsmto commented Sep 4, 2013

Groups are well parsed and displayed but they should be translated in RaphaelJS sets.
We should have a main set for our shape, then, child set for every groups.
here is the original SVG file :
capture decran 2013-09-04 a 14 19 43

Here is the output :
capture decran 2013-09-04 a 14 21 33

And we should have something like this :
capture decran 2013-09-04 a 14 23 12

What do you think?

@crccheck
Copy link
Owner

crccheck commented Sep 4, 2013

I couldn't think of a way to reference groups -> raphael sets without polluting global state. That's my main blocker on that. I definitely thought about doing it many times. I've been able to get by with having ids on my original SVG groups and getting the data-attr/ids off the output. I don't think raphaeljs is capable of making group elements.

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