Used in examples to export a d3node instance to html, svg, & png files
npm install d3node-output
const output = require('d3node-output')
const voronoi = require('d3node-voronoi');
const data = new Array(99);
// crop your png to a custom size
// defaults to the size of your svg if not defined
const options = {width: 100, height: 200};
// output files to /dist dir
output('./dist/myVoronoi', voronoi(data), options, callback);
- Heroku: set buildpack to: https://github.com/mikeraimondi/heroku-buildpack-google-chrome
- AWS Lambda: tbd
- Azure functions: tbd
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D