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

Layout is not good #106

Open
khushalcodiste opened this issue Nov 19, 2024 · 3 comments
Open

Layout is not good #106

khushalcodiste opened this issue Nov 19, 2024 · 3 comments

Comments

@khushalcodiste
Copy link

khushalcodiste commented Nov 19, 2024

I have attached both the DOT and XML files for your reference. When I convert the XML file, the resulting layout is not rendering correctly, and the subgraph appears to be missing.

However, when I open the DOT file in Graphviz, the layout displays perfectly as expected. This discrepancy seems to occur specifically after the conversion process. Could you please assist in resolving this issue?

Diagrams.zip

This is my actual result
khusahl_ai-powered_note-taking_system_architecture
And this what i'm getting:
kj drawio

@hbmartin
Copy link
Owner

Hi @khushalcodiste thanks for your report.
Unfortunately g2d currently has difficulty handling nested subgraphs, especially those generated from another GUI tool.
I appreciate this example since it will help with future improvements.
But for now there aren't any quick ways to fix this case, sorry.

@khushalcodiste
Copy link
Author

Thank you, @hbmartin, for the quick response. I’ll work on resolving this issue.

@khushalcodiste
Copy link
Author

With a few edits, I was able to display the subgraphs, but their positions are significantly offset from the intended locations.
Here is my edited code.
Output is something like:
khusahl_ai-powered_note-taking_system_architecture drawio (1)

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