I am a former user of BookStack, a PHP based Knowledge Base tool. This tool has a very nice feature to save Draw.io diagrams as note.
That's very handy to write technical documentations (network diagrams) or for company structures. Would really love to see that feature in trilium.
Frontend code can be found here: https://github.com/BookStackApp/BookStack/blob/master/resources/js/services/drawio.js
I was checking out draw.io before as well and considered adding it since being able to draw diagrams would be very nice. But I had some concerns:
Instead of adding such a complex tool I'm thinking to at least partially cover these use cases by some form of drawing support which would be also way more general.
I'm not 100% decided on this though and maybe I'll change my opinion in the future.
@zadam Thank you for sharing your opinion.
I found dagre[0] and viz.js[1] can parse Graphviz graphs (DOT language) in the browser.
[0]https://dagrejs.github.io/project/dagre-d3/latest/demo/interactive-demo.html
there is an ugly workaround,
you can convert draw.io's rendered webpage with singlefile browser addon, then urlencode html page, wrap it into an iframe like this:
<iframe style="min-height: 85vh; width:100%; height:100%;" sandbox="" src="URLENCODED_PAGE_CONTENT"></iframe>
you write it into an html code note, and create a Render Note which renders this note. so you can visualize the whole page as it rendered in your browser
I found a mini view of drawio, that can be integrated to trilium ui , and seams comfortable.
Here is the way to switch to mini view (@popey456963 @zadam ):

Here is the mini view looks:

That looks pretty nice.聽
Frankly I keep coming back to thoughts about graph drawing and it's possible I will integrate draw.io since it is probably the best solution out there. But it won't be very soon.
That looks pretty nice.
Frankly I keep coming back to thoughts about graph drawing and it's possible I will integrate draw.io since it is probably the best solution out there. But it won't be very soon.
That's great!
There is an official page which describes the embedding of DrawIO into other tools.
https://github.com/jgraph/drawio-integration/blob/master/README.md
It's also possible to save the diagramm inside of a PNG file.
Maybe that's interesting here: https://github.com/jgraph/drawio-integration/blob/master/diagram-editor.js
Most helpful comment
There is an official page which describes the embedding of DrawIO into other tools.
https://github.com/jgraph/drawio-integration/blob/master/README.md
It's also possible to save the diagramm inside of a PNG file.
Maybe that's interesting here: https://github.com/jgraph/drawio-integration/blob/master/diagram-editor.js