{"name":"cytoscape-cose-bilkent","version":"3.0.2","description":"The CoSE layout for Cytoscape.js by Bilkent","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cytoscape/cytoscape.js-cose-bilkent.git"},"keywords":["cytoscape","cyext"],"license":"MIT","bugs":{"url":"https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues"},"homepage":"https://github.com/cytoscape/cytoscape.js-cose-bilkent","dependencies":{"linkedlist-js":"1.3.0"},"devDependencies":{"babel-preset-es2015":"^6.16.0","babelify":"^7.3.0","browserify":"^13.1.0","gulp":"^3.9.0","gulp-derequire":"^2.1.0","gulp-jshint":"^1.11.2","gulp-livereload":"^3.8.1","gulp-prompt":"^0.1.2","gulp-replace":"^0.5.4","gulp-shell":"^0.5.0","gulp-util":"^3.0.7","http-server":"^0.9.0","jshint-stylish":"^2.0.1","node-notifier":"^4.6.1","run-sequence":"^1.1.4","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","watchify":"^3.7.0"},"peerDependencies":{"cytoscape":"^2.4.0 || ^3.0.0"},"gitHead":"feb1c84f764d29b7028d1f4f4886099f0fbf7c85","_id":"cytoscape-cose-bilkent@3.0.2","_shasum":"352d80a24b96788212ad5250f7030a22936477f6","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.6","_npmUser":{"name":"balcihasan","email":"balcihasan99@gmail.com"},"dist":{"shasum":"352d80a24b96788212ad5250f7030a22936477f6","tarball":"http://registry-npm.ywwl.com/cytoscape-cose-bilkent/download/cytoscape-cose-bilkent-3.0.2.tgz","integrity":"sha512-FMFeM0VpWlYOP61j+9gMfRtPy+rkeGj3lbZlcqgLFM70elZB1AqkvTfbKmFSxH6TSohiTVkhM6XEpMwAchNCUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEz97Y29RQ44jfq8cguu8G/R8SFWrxcZ63dYbJihYFLbAiBwn1WjSgcROOMivuNKpk0FZSXK2RU7zpkB28myC0YPAA=="}],"size":168705,"noattachment":false,"key":"/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-3.0.2.tgz"},"maintainers":[{"email":"cytoscapenpm@gmail.com","name":"cytoscapenpm"},{"email":"balcihasan99@gmail.com","name":"balcihasan"},{"email":"mj3cheun@uwaterloo.ca","name":"mj3cheun"},{"email":"ugurdogrusoz@yahoo.com","name":"ugurdogrusoz"},{"email":"metincansiper@gmail.com","name":"metincansiper"},{"email":"maxkfranz@gmail.com","name":"maxkfranz"},{"email":"dylanfong.ut@gmail.com","name":"dylanfong"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cytoscape-cose-bilkent-3.0.2.tgz_1510833488266_0.27477986505255103"},"directories":{},"readme":"cytoscape-cose-bilkent\n================================================================================\n\n[![DOI](https://zenodo.org/badge/42200589.svg)](https://zenodo.org/badge/latestdoi/42200589)\n\n## Description\n\nThe CoSE (Compound Spring Embedder) layout for Cytoscape.js developed by [i-Vis Lab](http://cs.bilkent.edu.tr/~ivis/) in Bilkent University is a spring embedder layout with support for compound graphs (nested structures) and varying (non-uniform) node dimensions.\n([demo](https://raw.githack.com/cytoscape/cytoscape.js-cose-bilkent/master/demo.html), [compound demo](https://raw.githack.com/cytoscape/cytoscape.js-cose-bilkent/master/demo-compound.html))\n\nPlease cite the following when using this layout:\n\nU. Dogrusoz, E. Giral, A. Cetintas, A. Civril, and E. Demir, \"[A Layout Algorithm For Undirected Compound Graphs](http://www.sciencedirect.com/science/article/pii/S0020025508004799)\", Information Sciences, 179, pp. 980-994, 2009.\n\n## Dependencies\n\n * Cytoscape.js ^3.2.0\n * cose-base ^1.0.0\n\n\n## Usage instructions\n\nDownload the library:\n * via npm: `npm install cytoscape-cose-bilkent`,\n * via bower: `bower install cytoscape-cose-bilkent`, or\n * via direct download in the repository (probably from a tag).\n\nImport the library as appropriate for your project:\n\nES import:\n\n```js\nimport cytoscape from 'cytoscape';\nimport coseBilkent from 'cytoscape-cose-bilkent';\n\ncytoscape.use( coseBilkent );\n```\n\nCommonJS require:\n\n```js\nlet cytoscape = require('cytoscape');\nlet coseBilkent = require('cytoscape-cose-bilkent');\n\ncytoscape.use( coseBilkent ); // register extension\n```\n\nAMD:\n\n```js\nrequire(['cytoscape', 'cytoscape-cose-bilkent'], function( cytoscape, coseBilkent ){\n  coseBilkent( cytoscape ); // register extension\n});\n```\n\nPlain HTML/JS has the extension registered for you automatically, because no `require()` is needed.\n\n\n## API\n\nWhen calling the layout, e.g. `cy.layout({ name: 'cose-bilkent', ... })`, the following options are supported:\n\n```js\nvar defaultOptions = {\n  // Called on `layoutready`\n  ready: function () {\n  },\n  // Called on `layoutstop`\n  stop: function () {\n  },\n  // 'draft', 'default' or 'proof\" \n  // - 'draft' fast cooling rate \n  // - 'default' moderate cooling rate \n  // - \"proof\" slow cooling rate\n  quality: 'default',\n  // Whether to include labels in node dimensions. Useful for avoiding label overlap\n  nodeDimensionsIncludeLabels: false,\n  // number of ticks per frame; higher is faster but more jerky\n  refresh: 30,\n  // Whether to fit the network view after when done\n  fit: true,\n  // Padding on fit\n  padding: 10,\n  // Whether to enable incremental mode\n  randomize: true,\n  // Node repulsion (non overlapping) multiplier\n  nodeRepulsion: 4500,\n  // Ideal (intra-graph) edge length\n  idealEdgeLength: 50,\n  // Divisor to compute edge forces\n  edgeElasticity: 0.45,\n  // Nesting factor (multiplier) to compute ideal edge length for inter-graph edges\n  nestingFactor: 0.1,\n  // Gravity force (constant)\n  gravity: 0.25,\n  // Maximum number of iterations to perform\n  numIter: 2500,\n  // Whether to tile disconnected nodes\n  tile: true,\n  // Type of layout animation. The option set is {'during', 'end', false}\n  animate: 'end',\n  // Duration for animate:end\n  animationDuration: 500,\n  // Amount of vertical space to put between degree zero nodes during tiling (can also be a function)\n  tilingPaddingVertical: 10,\n  // Amount of horizontal space to put between degree zero nodes during tiling (can also be a function)\n  tilingPaddingHorizontal: 10,\n  // Gravity range (constant) for compounds\n  gravityRangeCompound: 1.5,\n  // Gravity force (constant) for compounds\n  gravityCompound: 1.0,\n  // Gravity range (constant)\n  gravityRange: 3.8,\n  // Initial cooling factor for incremental layout\n  initialEnergyOnIncremental: 0.5\n};\n```\n\n*Note that this extension supports only relatively modern browsers.  Browsers like IE require significant shimming, for example with [core-js](https://www.npmjs.com/package/core-js).*\n\n*Note that while running Cytoscape.js in headless mode, stylingEnabled option of Cytoscape.js should be set as true because this extension considers node dimensions and some other styling properties.*\n\n\n## Build targets\n\n* `npm run test` : Run Mocha tests in `./test`\n* `npm run build` : Build `./src/**` into `cytoscape-cose-bilkent.js`\n* `npm run watch` : Automatically build on changes with live reloading (N.b. you must already have an HTTP server running)\n* `npm run dev` : Automatically build on changes with live reloading with webpack dev server\n* `npm run lint` : Run eslint on the source\n\nN.b. all builds use babel, so modern ES features can be used in the `src`.\n\n\n## Publishing instructions\n\nThis project is set up to automatically be published to npm and bower.  To publish:\n\n1. Build the extension : `npm run build:release`\n1. Commit the build : `git commit -am \"Build for release\"`\n1. Bump the version number and tag: `npm version major|minor|patch`\n1. Push to origin: `git push && git push --tags`\n1. Publish to npm: `npm publish .`\n1. If publishing to bower for the first time, you'll need to run `bower register cytoscape-cose-bilkent https://github.com/cytoscape/cytoscape.js-cose-bilkent.git`\n1. [Make a new release](https://github.com/cytoscape/cytoscape.js-cose-bilkent/releases/new) for Zenodo.\n","publish_time":1510833489598,"_cnpm_publish_time":1510833489598,"dist-tags":{"latest":"4.1.0"}}