The processanimateR package is SVG+JS written mainly in D3 together with a JS version of GraphViz. The interface is relatively standalone as the data is provided in JSON format.
So, it would be useful to refactor this part out in a stand-alone JS project that takes a SVG (e.g. created by viz.js) and the matching JSON format describing the tokens and creates the HTML necessary for the animation.
Maybe this could be a D3 plug-in or something like this.
The processanimateR package is SVG+JS written mainly in D3 together with a JS version of GraphViz. The interface is relatively standalone as the data is provided in JSON format. So, it would be useful to refactor this part out in a stand-alone JS project that takes a SVG (e.g. created by viz.js) and the matching JSON format describing the tokens and creates the HTML necessary for the animation.
Maybe this could be a D3 plug-in or something like this.