Viz.js fork. Only ships dot
layout engine and supports JSON
output format.
Compiled to WebAssembly for WebWorker environment. Omitting support for other
environments and not including filesystem emulation makes the generated
JavaScript glue ridiculously thin.
API-wize, it is incompatible with vanilla viz.js
. Usage:
require('graphviz.js').render('digraph{a->b}', function(error, resultString) {
...
});
Running make
will produce graphviz.js
and graphviz.wasm
. You have to ship both.
Please install Emscripten SDK first.
No longer necessary to recreate a renderer instance after a failed call. And there's no such thing as a renderer instance anymore.