neo4j-labs / arrows.app

A graph drawing application
https://arrows.app
Apache License 2.0
107 stars 16 forks source link

Export as json losing formatting #50

Open jjansenvr opened 2 years ago

jjansenvr commented 2 years ago

Export as json does not keep my custom formatting, would be nice if it would be part of the export

apcj commented 2 years ago

HI @jjansenvr I think what's happening here is that the custom formatting is in the JSON export. For me it shows up at the end, after the nodes and relationships. The problem is that it's ignored when importing - the destination diagram's styling always wins. Does this sound like what is happening for you?

One approach I can see here would be to add an option to the import dialog that would allow you to override the current diagram's styling with the imported style, if you want that to happen.

jjansenvr commented 2 years ago

From my point of view and with limited knowledge about your app I would say that keeping the formatting how it was saved should be the default, you can always select one of the other themes if you want to change it.

loading something you saved you expect to see the exact same.

Jeroen