graphviz 0.0.9 copy "graphviz: ^0.0.9" to clipboard
graphviz: ^0.0.9 copied to clipboard

outdatedDart 1 only

Emscripten module for Graphviz

graphviz.dart #

A Dart package and Emscripten module for Graphviz.

Usage #

To render as SVG (produces an XML string):

var svg = graphviz("digraph { a -> b; }", render: Render.SVG);

Asynchronous API #

To prevent UI freeze graph layout may be computed in a separate thread using Web Workers:

var gv = new Graphviz();
gv.layout("digraph { a -> b; }").then((String result) {
  print(result);
});

Examples #

Try comparing page load and refresh times between Firefox and other browsers.

Development #

Set the current Emscripten path:

cd /path/to/emsdk_portable/
source ./emsdk_env.sh

Build the Graphviz Emscripten module:

emmake make clean all

Credits #

This project is based on work by Mike Daines, Satoshi Ueyama and Brenton Partridge:

Thanks to the following contributors:

jbogard KylePDavis siefkenj srathbun vmarkovtsev

0
likes
10
points
53
downloads

Publisher

unverified uploader

Weekly Downloads

Emscripten module for Graphviz

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dispatched_worker

More

Packages that depend on graphviz