{"name":"cytoscape-cose-bilkent","version":"4.1.0","description":"The CoSE layout for Cytoscape.js by Bilkent with enhanced compound node placement","main":"cytoscape-cose-bilkent.js","scripts":{"postpublish":"run-s gh-pages","gh-pages":"gh-pages -d pages","copyright":"update license","lint":"eslint src","build":"cross-env NODE_ENV=production webpack","build:min":"cross-env NODE_ENV=production MIN=true webpack","build:release":"run-s build copyright","watch":"webpack --progress --watch","dev":"webpack-dev-server --open","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cytoscape/cytoscape.js-cose-bilkent.git"},"keywords":["cytoscape","cytoscape-extension"],"license":"MIT","bugs":{"url":"https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues"},"homepage":"https://github.com/cytoscape/cytoscape.js-cose-bilkent","devDependencies":{"babel-core":"^6.24.1","babel-loader":"^7.0.0","babel-preset-env":"^1.5.1","camelcase":"^4.1.0","chai":"4.0.2","cpy-cli":"^1.0.1","cross-env":"^5.0.0","eslint":"^3.9.1","gh-pages":"^1.0.0","mocha":"3.4.2","npm-run-all":"^4.1.2","rimraf":"^2.6.2","update":"^0.7.4","updater-license":"^1.0.0","webpack":"^2.6.1","webpack-dev-server":"^2.4.5"},"peerDependencies":{"cytoscape":"^3.2.0"},"dependencies":{"cose-base":"^1.0.0"},"gitHead":"999090a8438b4f14788d636ef4fd7a5355e29e8c","_id":"cytoscape-cose-bilkent@4.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"balcihasan","email":"balcihasan99@gmail.com"},"dist":{"integrity":"sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==","shasum":"762fa121df9930ffeb51a495d87917c570ac209b","tarball":"http://registry-npm.ywwl.com/cytoscape-cose-bilkent/download/cytoscape-cose-bilkent-4.1.0.tgz","fileCount":16,"unpackedSize":82395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddiw1CRA9TVsSAnZWagAAM40QAIBuyqW/W7+qnpOMtog6\nR84g9bx7g++wvjc7YC4rwKg3Ln0K+AFwb0CfgDlEqQJuvLkcReDhN9bFf7Nw\n5ssVsl+TVKfjxg1j5AYvnw9KxcixCpzsjpNxWb0rsFplIfKEJI32wfrHXAOg\nlrkaioSA7n/s4onxZ4lrNw7mhzTD6yIvMUwzECa40s1l9Kxx9ggyns1xa+Fl\nR5wv7e8k7rNwj5eVqsESvQAHsSlYi9dUmIkXkq7bLvBUKebZDB88qt5COzX+\nacZJE1rkQNng4jHzQg6AW2oP6/Fin7Za+9/Lq7m4vS7e9HEmmUzc/j4FIVbp\nyG/P4o0Q5svOht/YpYqUjlGriZbufjp2Kg1hjVpYUJzMDEDzxGMnt8EbxCfA\nd0gvIjr1yrzRLxx8KDljorXoDC7K3mgz/hNGAh2iiM7lOZ6sVb0iRpGUnRQ3\n4tbwbuGKFK0pPMhMepugcCVqkbITmaGaxUQag+PC3/XGE2HYkw6/8iQ0Mmyh\n4E1obAGEw7GJcQuT9diFAuOPCvMUO4oTqiPU83/fR3uEDfYf0t5oTH1+1ccH\nASHJ8QJ8c8q9PamZUJFzqb/aCA4b/w4yxbO3C7XSUys+Ghx3d5RvySHpRfXw\ntMUe0H9qOYEefMcRBoCI6R02512wc5WZi4qujP4+e9cUTa/2hvl9cVCBEzmP\nQkK2\r\n=RLZ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5+SNfJ+533Qfhfb1SEbEbxG9ek/yb4asqYTTPZ6Gv4QIhANgjqZtgcK714eXoo86yjb69G/i98JX2jAJUoNxJhp3W"}],"size":17457,"noattachment":false,"key":"/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz"},"maintainers":[{"email":"balcihasan99@gmail.com","name":"balcihasan"},{"email":"cytoscapenpm@gmail.com","name":"cytoscapenpm"},{"email":"dylanfong.ut@gmail.com","name":"dylanfong"},{"email":"maxkfranz@gmail.com","name":"maxkfranz"},{"email":"metincansiper@gmail.com","name":"metincansiper"},{"email":"mj3cheun@uwaterloo.ca","name":"mj3cheun"},{"email":"ugurdogrusoz@yahoo.com","name":"ugurdogrusoz"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cytoscape-cose-bilkent_4.1.0_1568025652531_0.4660957200416884"},"_hasShrinkwrap":false,"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":1568025652713,"_cnpm_publish_time":1568025652713,"dist-tags":{"latest":"4.1.0"}}