Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 845 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 845 Bytes

Viz.js on a diet

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) {
  ...
});

Building

Running make will produce graphviz.js and graphviz.wasm. You have to ship both. Please install Emscripten SDK first.

Improvements to vanilla Vis.jz

No longer necessary to recreate a renderer instance after a failed call. And there's no such thing as a renderer instance anymore.