cytoscape-cytoscape.js-animate-flow
Description
Show animation on the edge
Dependencies
- Cytoscape.js ^2.7.0
Usage instructions
Download the library:
- via npm:
npm install cytoscape-cytoscape.js-animate-flow
, - via bower:
bower install cytoscape-cytoscape.js-animate-flow
, or - via direct download in the repository (probably from a tag).
require()
the library as appropriate for your project:
CommonJS:
var cytoscape = ;var animateFlow = ; cytoscape; // register extension
AMD:
;
Plain HTML/JS has the extension registered for you automatically, because no require()
is needed.
API
Please briefly describe your API here:
var af = cy; // start the animationafstart/* pass the elements which needs animation here */; // stop the animationaf;
Publishing instructions
This project is set up to automatically be published to npm and bower. To publish:
- Set the version number environment variable:
export VERSION=1.2.3
- Publish:
gulp publish
- If publishing to bower for the first time, you'll need to run
bower register cytoscape-cytoscape.js-animate-flow https://github.com/tongbin/cytoscape.js-animate-flow.git