It could be nice to embed a diagram into another document, like a GitHub readme, without using an image, because images can be annoying to work with (require hosting).
Also would be nice to have a text format that's more familiar to some people than our json.
Solution you'd like
Button to export a diagram to mermaidjs format:
Something like this seems decent enough as an abbreviated example of this topic - can always later improve exactly what gets exported.
Questions:
what icon to use for button?
Alternatives you've considered
No response
Additional context
No response
Technical ideas and questions
Logic will be very similar to downloadScreenshot, except instead of the logic for toPng, we'd convert the nodes & edges into the mermaidjs syntax
will need to add a getFlowDisplayedEdges method to retrieve the edges too
Describe your issue
It could be nice to embed a diagram into another document, like a GitHub readme, without using an image, because images can be annoying to work with (require hosting).
Also would be nice to have a text format that's more familiar to some people than our json.
Solution you'd like
Button to export a diagram to mermaidjs format:
Something like this seems decent enough as an abbreviated example of this topic - can always later improve exactly what gets exported.
Questions:
Alternatives you've considered
No response
Additional context
No response
Technical ideas and questions
toPng
, we'd convert the nodes & edges into the mermaidjs syntaxgetFlowDisplayedEdges
method to retrieve the edges too