You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My typescript application shall export diagrams into drawio files. So I need to create drawio.xml files by code.
I did some approach generating the xml manually as the strutcure is not so complex, see example below for 2 boxes and an arrow.
But adding images to the diagramm will make it worse.
There should be an better way by using the graphcis library from drawio directly. My 1st question is, what lib is exactly used currently by drawio ? I find many links to mxGraph, but seems depreciated in 2020. The living (official) fork seems to be maxGraph,
Is it a proper way to integrate a maxGraph lib into my typescript project, and then create the diagram-graphic-items by some lib-methods and write afterwards the complete diagram also by a lib-method to a drawio file ? I assume the mx/maxGraph lib provide the methods to save an mxfile/mxGraohModel with mxCells.
Do you know other approaches to get drawio-diagramms created by code ?
(I think Andrey had a similar topic half a year ago, but got no answers (#4545))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My typescript application shall export diagrams into drawio files. So I need to create drawio.xml files by code.
I did some approach generating the xml manually as the strutcure is not so complex, see example below for 2 boxes and an arrow.
But adding images to the diagramm will make it worse.
There should be an better way by using the graphcis library from drawio directly. My 1st question is, what lib is exactly used currently by drawio ? I find many links to mxGraph, but seems depreciated in 2020. The living (official) fork seems to be maxGraph,
Is it a proper way to integrate a maxGraph lib into my typescript project, and then create the diagram-graphic-items by some lib-methods and write afterwards the complete diagram also by a lib-method to a drawio file ? I assume the mx/maxGraph lib provide the methods to save an mxfile/mxGraohModel with mxCells.
Do you know other approaches to get drawio-diagramms created by code ?
(I think Andrey had a similar topic half a year ago, but got no answers (#4545))
Thanks
Tim
Beta Was this translation helpful? Give feedback.
All reactions