NodeJS approach to producing SVGs
See original GitHub issueSo what’s the feature? Some documented way to produce SVGs from state machines in Node.
Is this related to a problem? If so, what?
The jssm-vis-demo, while good at quickly visualizing and getting started, is not useful for more serious work. Closing the browser windows destroys all progress.
Describe the solution you’d like
Currently, I’ve pulled the dot
function out of src/ts/jssm-viz.ts
in https://github.com/StoneCypher/jssm-viz/
, and imported that function into my project for generating SVGs. I saved the code as js, removing the few ts type references.
I then used spawn
imported from child_process
to run GraphViz’ dot
executable on the .dot file I produce to get an svg.
Describe alternatives you’ve considered
I tried using jssm-viz, but it died without error messages in Node.
Additional context as you see fit
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
This is now implemented in
jssm-viz
and thecli
is mostly doneThe
github action
is also mostly doneActually, there’s a live instance of
jssm-viz
bound towindow
on graph explorer, so you can just open a developer console and try it thereworks in node too