Package Exports
- viz.js
- viz.js/full.render
- viz.js/full.render.js
- viz.js/viz
- viz.js/viz.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (viz.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Viz.js
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
- Install the
viz.js
package from npm. - Download from the releases page.
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
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