viz.js-graphviz-java

2.1.3 • Public • Published

Viz.js

Build Status

This project builds Graphviz with Emscripten and provides a simple wrapper for using it in the browser.

For more information, see the wiki.

See Also

Have a look at Dagre, which is not a hack.

Getting Viz.js

Building From Source

To build from source, first install the Emscripten SDK. You'll also need Node.js and Yarn.

Install the development dependencies using Yarn:

yarn install

The build process for Viz.js is split into two parts: building the Graphviz and Expat dependencies, and building the rendering script files and API.

make deps
make all

With docker

Create docker container to build:

./build_env.sh

Run the build with the continer:

./build.sh

Running Browser Tests

The browser tests can be run locally using Selenium WebDriver.

First, serve the project directory at http://localhost:8000.

python -m SimpleHTTPServer

Then, run tests using test-browser/runner.js. For example, to run test-browser/full.html in Chrome:

node test-browser/runner --file full.html --browser chrome

Readme

Keywords

Package Sidebar

Install

npm i viz.js-graphviz-java

Weekly Downloads

1

Version

2.1.3

License

MIT

Unpacked Size

3.91 MB

Total Files

7

Last publish

Collaborators

  • nidi