cytoscape-fr
v0.1.0
Published
a fruchterman-reingold layout
Downloads
1
Readme
cytoscape-fr
Description
a fruchterman-reingold layout
Dependencies
- Cytoscape.js ^x.y.z
Usage instructions
Download the library:
- via npm:
npm install cytoscape-fr
, - via bower:
bower install cytoscape-fr
, or - via direct download in the repository (probably from a tag).
require()
the library as appropriate for your project:
CommonJS:
var cytoscape = require('cytoscape');
var fr = require('cytoscape-fr');
fr( cytoscape ); // register extension
AMD:
require(['cytoscape', 'cytoscape-fr'], function( cytoscape, fr ){
fr( cytoscape ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require()
is needed.
API
Please briefly describe your API here:
cy.fr({
foo: 'bar', // some option that does this
baz: 'bat' // some options that does that
// ... and so on
});
Or maybe if you have a collection extension:
cy.elements().test({
foo: 'bar', // some option that does this
baz: 'bat' // some options that does that
// ... and so on
});
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-fr https://github.com/cytoscape-fr.git