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

Output to diagrams.net #20

Open
s5no5t opened this issue Sep 30, 2020 · 3 comments
Open

Output to diagrams.net #20

s5no5t opened this issue Sep 30, 2020 · 3 comments

Comments

@s5no5t
Copy link

s5no5t commented Sep 30, 2020

It would be super useful to support the file format of diagrams.net, which would allow editing the graphs after exporting them from Contentful.

@lotas
Copy link
Owner

lotas commented Sep 30, 2020

Hi @jugglingthebits
I'm not familiar with diagrams.net, but it looks like it is a drawio underneath?
If I remember correctly it was using xml-like documents. I tried importing SVG but it doesn't recognize them.

Idea of contentful-graph was simple, it was creating *.dot text files which are later being parsed and converted into nice diagrams with graphviz. So the main work was actually done by that wonderful tool.

In order to export it to drawio format, one can either use (quick googling) something like this graphviz2drawio, or implement whole layouting from scratch.
Maybe also there is a way to convert SVG into a drawio XML structure, not sure.

My problem with that would still be that once you export and start edit the schema, it would not be possible to re-sync, if structure would change on Contentful side.

I wish contentful would implement such a UI designer directly in their product :)

@s5no5t
Copy link
Author

s5no5t commented Sep 30, 2020

I'm not familiar with diagrams.net, but it looks like it is a drawio underneath?

That's right.

In order to export it to drawio format, one can either use (quick googling) something like this graphviz2drawio, or implement whole layouting from scratch.

I tried graphviz2drawio today and it didn't work for me at all. Besides, I think this functionality would nicely fit into contentful-graph.

My problem with that would still be that once you export and start edit the schema, it would not be possible to re-sync, if structure would change on Contentful side.

I agree, although I don't see it as a big issue. My use case would be to take whatever is the latest model in Contentful and use diagrams.net to evolve it to the next step - this doesn't require re-sync.

I wish contentful would implement such a UI designer directly in their product :)

I agree :-)

Would you take PRs that implement a --format=drawio param for contentful-graph?

@lotas
Copy link
Owner

lotas commented Sep 30, 2020

Would you take PRs that implement a --format=drawio param for contentful-graph?

That would be amazing! Thank you.

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