https://github.com/cytoscape/cytoscape.js-panzoom
Panzoom extension 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 6 committers (16.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Panzoom extension for Cytoscape.js
Basic Info
Statistics
- Stars: 68
- Watchers: 28
- Forks: 33
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
cytoscape-panzoom

Description
This extension creates a widget that lets the user pan and zoom about a Cytoscape.js graph. This complements the built-in gesture support for panning and zooming in Cytoscape.js by giving less savvy users a more traditional UI -- similar to controls on map webapps.
Dependencies
- jQuery ^1.4 || ^2.0 || ^3.0
- Cytoscape.js ^2.0.0 || ^3.0.0
- Font Awesome 4 (for automatic icons), or you can specify your own class names for icons
Usage instructions
Download the library:
- via npm:
npm install cytoscape-panzoom, - via bower:
bower install cytoscape-panzoom, 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 panzoom = require('cytoscape-panzoom');
panzoom( cytoscape ); // register extension
// you can pass a custom version of jquery outside of the path // panzoom( cytoscape, $ ); // you shouldn't do this in a modern project... ```
AMD:
js
require(['cytoscape', 'jquery', 'cytoscape-panzoom'], function( cytoscape, $, panzoom ){
panzoom( cytoscape, $ ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require() is needed.
You should either include cytoscape.js-panzoom.css (see style in package.json) or a similar custom stylesheet in your project.
API
```js // the default values of each option are outlined below: var defaults = { zoomFactor: 0.05, // zoom factor per zoom tick zoomDelay: 45, // how many ms between zoom ticks minZoom: 0.1, // min zoom level maxZoom: 10, // max zoom level fitPadding: 50, // padding when fitting panSpeed: 10, // how many ms in between pan ticks panDistance: 10, // max pan distance per tick panDragAreaSize: 75, // the length of the pan drag box in which the vector for panning is calculated (bigger = finer control of pan speed and direction) panMinPercentSpeed: 0.25, // the slowest speed we can pan by (as a percent of panSpeed) panInactiveArea: 8, // radius of inactive area in pan drag box panIndicatorMinOpacity: 0.5, // min opacity of pan indicator (the draggable nib); scales from this to 1.0 zoomOnly: false, // a minimal version of the ui only with zooming (useful on systems with bad mousewheel resolution) fitSelector: undefined, // selector of elements to fit animateOnFit: function(){ // whether to animate on fit return false; }, fitAnimationDuration: 1000, // duration of animation on fit
// icon class names sliderHandleIcon: 'fa fa-minus', zoomInIcon: 'fa fa-plus', zoomOutIcon: 'fa fa-minus', resetIcon: 'fa fa-expand' };
// add the panzoom control cy.panzoom( defaults );
// destroy the panzoom control cy.panzoom('destroy'); ```
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-panzoom https://github.com/cytoscape/cytoscape.js-panzoom.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
- Watch event: 3
- Fork event: 2
- Create event: 1
Last Year
- Watch event: 3
- Fork event: 2
- Create event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Max Franz | m****z@g****m | 43 |
| Manfred Cheung | m****n@u****a | 7 |
| metincansiper | m****r@g****m | 2 |
| Alexander Li | a****0@g****m | 2 |
| Alex Quatrano | q****l@g****m | 1 |
| Enrique Meléndez Estrada | e****z@i****s | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 25
- Total pull requests: 15
- Average time to close issues: over 1 year
- Average time to close pull requests: almost 2 years
- Total issue authors: 21
- Total pull request authors: 9
- Average comments per issue: 1.96
- Average comments per pull request: 1.33
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 5
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
- cmdcolin (3)
- DiligentTuolaji (2)
- maxkfranz (2)
- jstaehli (1)
- emelendez (1)
- jerishsd (1)
- mbabatunde (1)
- rajukiran (1)
- idoo (1)
- metincansiper (1)
- KonradHoeffner (1)
- devradhika (1)
- july-12 (1)
- djy2017 (1)
- Abhi5h3k (1)
Pull Request Authors
- dependabot[bot] (9)
- nicky1038 (4)
- oadetoye (2)
- mj3cheun (2)
- quatrano (1)
- venkatkorapaty (1)
- emelendez (1)
- antjkennedy (1)
- dnagirl (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 5
-
Total downloads:
- npm 27,508 last-month
- Total docker downloads: 9
-
Total dependent packages: 10
(may contain duplicates) -
Total dependent repositories: 141
(may contain duplicates) - Total versions: 67
- Total maintainers: 7
npmjs.org: cytoscape-panzoom
Panzoom extension for Cytoscape.js
- Homepage: https://github.com/cytoscape/cytoscape.js-panzoom
- License: MIT
-
Latest release: 2.5.3
published almost 8 years ago
Rankings
Maintainers (7)
bower.io: cytoscape-panzoom
Panzoom extension for Cytoscape.js
- License: MIT
-
Latest release: 2.5.3
published almost 8 years ago
Rankings
bower.io: cytoscape.js-panzoom
Panzoom extension for Cytoscape.js
- License: MIT
-
Latest release: 2.5.3
published almost 8 years ago
Rankings
repo1.maven.org: org.webjars.bower:cytoscape-panzoom
WebJar for cytoscape-panzoom
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.bower/cytoscape-panzoom/
- License: MIT
-
Latest release: 2.4.0
published over 9 years ago
Rankings
repo1.maven.org: org.webjars.npm:cytoscape-panzoom
WebJar for cytoscape-panzoom
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.npm/cytoscape-panzoom/
- License: MIT
-
Latest release: 2.5.3
published almost 8 years ago
Rankings
Dependencies
- cytoscape ^2.0.0 || ^3.0.0
- jquery ^1.4 || ^2.0 || ^3.0
- 354 dependencies
- 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
- jquery ^1.4 || ^2.0 || ^3.0