d2 icon indicating copy to clipboard operation
d2 copied to clipboard

draw.io (diagrams.net) files format (mxGraph) export / import

Open iAdanos opened this issue 3 years ago • 2 comments

Since draw.io is (in some sense) a standard tool for many organizations and projects, it would be great to add a capability to use drawio.xml (mxGraph) as an input/output file format.

Even since draw.io uses another concept, this could be useful in particular when a base for a diagram is described with D2 and then draw.io is used to polish it and to apply some corporate standards / styles / add some advanced shapes / integrate it with an existing diagrams / etc. In addition, this would allow using all the tools built around draw.io to embed such diagrams (e.g. in Confluence or in Grafana).

Import feature (at least for standard shapes and connections) would also bring much of benefits to the projects that would like to migrate to D2 with Diagrams as a Code approach, but rebuilding legacy documentation and rewriting diagrams would require significant effort.

Maybe it would be enough to create some standalone converter like graphviz2drawio, but integrated support would become a painkiller for many users.

iAdanos avatar Jan 30 '23 14:01 iAdanos

Definately support this.

mrpackethead avatar Apr 03 '23 11:04 mrpackethead

draw.io export would be incredibly valuable! I could see import being more of a challenge since it would necessarily be lossy given the difference in paradigm between d2 and draw.io, but it would definitely be cool to see some version of an import.

corymccarty avatar Dec 11 '24 17:12 corymccarty