rudism / ficdown.js

Ficdown parser and runner in Javascript
MIT License
19 stars 9 forks source link

Feature Request: Graphical representation of the nodes/graph #14

Open kikito opened 3 years ago

kikito commented 3 years ago

I think it would be very cool if, the player could export a graphical representation of the parsed story, for rapid review/analysis.

Here's an example of what such a graph could look like :

https://observablehq.com/@d3/mobile-patent-suits

Although D3 is a huge dependency. flowchart.js seems like a smaller candidate:

https://flowchart.js.org/

kikito commented 3 years ago

I have investigated this a bit more. It seems https://mermaid-js.github.io/ might be the optimal candidate for this. Its output is not unpleasant to the eye, it isn't a huge dependency.