-
Notifications
You must be signed in to change notification settings - Fork 20
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
report() - Node children respecting original node children order #46
Comments
Hello @rubberbandage, Thank you for such a detailed issue! I couldn’t check the code yet, but the issue you’re describing seems to be a bug on SVGI. It should respect the original order of the nodes. I need to take a look at the code to understand the root cause. I will try to fix it and push a new patch version before the end of the next week 😄. |
Thank you for the fast response @Angelmmiguel I'm not in any rush but looking forward to the change :) Saves some quick hacks and merging data after the fact |
I found the issue @rubberbandage 😄. The #47 PR should fix it. I will bump some libraries before pushing the new version too. |
@rubberbandage I just released v1.1.2. In the end, I created a separate Please, it would be great if you can try the new version and confirm it works for your use case :). Thank you! |
Sorry about the delay in my response, I was off sick for a few days @Angelmmiguel I was a little behind - with 1.1.0, but I've bumped the version of svgi to 1.1.2 and the changes are reflected; Thank you very much. |
No worries! Hope you're feeling great now 😄. Thank you for confirming it. |
Hi,
I'm curious if there was any way to configure the output of the children from the report function to respect the order of the nodes of an svg.
I use svgi as an intermediary layer to pull out the svg data to do the following; merging ThemeProvider color in, generating named TS definitions for each svg icon, and a few other things that is not important for this request
Up until now I've only handled single layer svg's using
path
, however, I now have a new requirement of different elements, and I'm getting svgs show up incorrectly.To get my point across, I have an example below which replicates the same issue.
I currently have an svg described by:
Which produces the following svg
However, the rects have been grouped to the top, and produces the following shape
Is there a way for the children to be as such:
Thank you,
Using [email protected]
The text was updated successfully, but these errors were encountered: