https://github.com/cytoscape/cytoscape.js-springy
The Springy physics simulation layout for Cytoscape.js
Science Score: 20.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.5%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
The Springy physics simulation layout for Cytoscape.js
Basic Info
- Host: GitHub
- Owner: cytoscape
- License: mit
- Language: JavaScript
- Default Branch: master
- Size: 25.4 KB
Statistics
- Stars: 3
- Watchers: 16
- Forks: 4
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
cytoscape-springy
Description
The Springy physics simulation layout for Cytoscape.js
The springy layout gives relatively slow and poor results compared to other physics simulation layouts. Consider using cose, cose-bilkent, or cola instead.
The springy layout uses a force-directed physics simulation, written by Dennis Hotson. For more information about Springy and its parameters, refer to its documentation.
Dependencies
- Cytoscape.js ^2.4.0 || ^3.0.0
- Springy.js ^2.5.0
Usage instructions
Download the library:
* via npm: npm install cytoscape-springy,
* via bower: bower install cytoscape-springy, or
* via direct download in the repository (probably from a tag).
require() the library as appropriate for your project:
CommonJS: ```js var cytoscape = require('cytoscape'); var cyspringy = require('cytoscape-springy');
cyspringy( cytoscape ); // register extension ```
AMD:
js
require(['cytoscape', 'cytoscape-springy', 'springy'], function( cytoscape, cyspringy, Springy ){
cyspringy( cytoscape, Springy ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require() is needed.
API
Call the layout, e.g. cy.layout({ name: 'springy', ... }), with options:
```js var defaults = { animate: true, // whether to show the layout as it's running maxSimulationTime: 4000, // max length in ms to run the layout ungrabifyWhileSimulating: false, // so you can't drag nodes during layout fit: true, // whether to fit the viewport to the graph padding: 30, // padding on fit boundingBox: undefined, // constrain layout bounds; { x1, y1, x2, y2 } or { x1, y1, w, h } randomize: false, // whether to use random initial positions infinite: false, // overrides all other options for a forces-all-the-time mode ready: undefined, // callback on layoutready stop: undefined, // callback on layoutstop
// springy forces and config stiffness: 400, repulsion: 400, damping: 0.5, edgeLength: function( edge ){ var length = edge.data('length');
if( length !== undefined && !isNaN(length) ){
return length;
}
} }; ```
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-springy https://github.com/cytoscape/cytoscape.js-springy.git - Make a release on GitHub to automatically register a new Zenodo DOI
Owner
- Name: Cytoscape Consortium
- Login: cytoscape
- Kind: organization
- Website: http://www.cytoscape.org/
- Repositories: 153
- Profile: https://github.com/cytoscape
GitHub Events
Total
Last Year
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Max Franz | m****z@g****m | 20 |
| Manfred Cheung | m****n@u****a | 6 |
| Alexander Li | a****0@g****m | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 3
- Total pull requests: 1
- Average time to close issues: 10 days
- Average time to close pull requests: 5 days
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 0.67
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jclif (1)
- vincerubinetti (1)
- annyanich (1)
Pull Request Authors
- annyanich (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- npm 180 last-month
- Total docker downloads: 33
-
Total dependent packages: 2
(may contain duplicates) -
Total dependent repositories: 5
(may contain duplicates) - Total versions: 18
- Total maintainers: 5
npmjs.org: cytoscape-springy
The Springy physics simulation layout for Cytoscape.js
- Homepage: https://github.com/cytoscape/cytoscape.js-springy
- License: MIT
-
Latest release: 1.4.2
published over 8 years ago
Rankings
Maintainers (5)
bower.io: cytoscape-springy
The Springy physics simulation layout for Cytoscape.js
- License: MIT
-
Latest release: 1.4.2
published over 8 years ago
Rankings
Dependencies
- cytoscape ^2.2.0 || ^3.0.0
- springy ^2.7.1
- gulp ^3.8.8 development
- gulp-jshint ^1.8.5 development
- gulp-prompt ^0.1.1 development
- gulp-replace ^0.4.0 development
- gulp-shell ^0.2.9 development
- jshint-stylish ^1.0.0 development
- run-sequence ^1.0.0 development
- springy ^2.7.1