Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
cytoscape-navigator
Advanced tools
Bird's eye view pan and zoom control for Cytoscape.js
Download the library:
npm install cytoscape-navigator
,bower install cytoscape-navigator
, orrequire()
the library as appropriate for your project:
CommonJS:
var cytoscape = require('cytoscape');
var navigator = require('cytoscape-navigator');
navigator( cytoscape ); // register extension
AMD:
require(['cytoscape', 'cytoscape-navigator'], function( cytoscape, navigator ){
navigator( cytoscape ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require()
is needed.
var cy = cytoscape({ /* ... */ });
var defaults = {
container: false // string | false | undefined. Supported strings: an element id selector (like "#someId"), or a className selector (like ".someClassName"). Otherwise an element will be created by the library.
, viewLiveFramerate: 0 // set false to update graph pan only on drag end; set 0 to do it instantly; set a number (frames per second) to update not more than N times per second
, thumbnailEventFramerate: 30 // max thumbnail's updates per second triggered by graph updates
, thumbnailLiveFramerate: false // max thumbnail's updates per second. Set false to disable
, dblClickDelay: 200 // milliseconds
, removeCustomContainer: true // destroy the container specified by user on plugin destroy
, rerenderDelay: 100 // ms to throttle rerender updates to the panzoom for performance
};
var nav = cy.navigator( defaults ); // get navigator instance, nav
You may call nav.destroy()
to remove the navigator widget and associated cleanup.
This project is set up to automatically be published to npm and bower. To publish:
export VERSION=1.2.3
gulp publish
bower register cytoscape-navigator https://github.com/cytoscape/cytoscape.js-navigator.git
FAQs
Bird's eye view pan and zoom control for Cytoscape.js
The npm package cytoscape-navigator receives a total of 2,058 weekly downloads. As such, cytoscape-navigator popularity was classified as popular.
We found that cytoscape-navigator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.