0.1.0 • Published 7 years ago

cytoscape-fr v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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:

  1. Set the version number environment variable: export VERSION=1.2.3
  2. Publish: gulp publish
  3. If publishing to bower for the first time, you'll need to run bower register cytoscape-fr https://github.com/cytoscape-fr.git