
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
cytoscape-auto-pan-on-out-of-canvas-bounds
Advanced tools
An extension to automatically pan when nodes are out of canvas bounds.
This extension is renamed as cytoscape-autopan-on-drag. It will be maintained with that name. Please use it.
New npm repository address is 'https://www.npmjs.com/package/cytoscape-autopan-on-drag'
New GitHub repository address is 'https://github.com/iVis-at-Bilkent/cytoscape.js-autopan-on-drag'
An extension to automatically pan when nodes are out of canvas bounds.
Download the library:
npm install cytoscape-auto-pan-on-out-of-canvas-bounds,bower install cytoscape-auto-pan-on-out-of-canvas-bounds, orrequire() the library as appropriate for your project:
CommonJS:
var cytoscape = require('cytoscape');
var auto-pan-on-out-of-canvas-bounds = require('cytoscape-auto-pan-on-out-of-canvas-bounds');
auto-pan-on-out-of-canvas-bounds( cytoscape ); // register extension
AMD:
require(['cytoscape', 'cytoscape-auto-pan-on-out-of-canvas-bounds'], function( cytoscape, auto-pan-on-out-of-canvas-bounds ){
auto-pan-on-out-of-canvas-bounds( cytoscape ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require() is needed.
var options = {
enabled: true, // Whether the extension is enabled on register
selector: 'node', // Which elements will be affected by this extension
speed: 1 // Speed of panning when elements exceed canvas bounds
};
var instance = cy.autoPanOnOutOfCanvasBounds( options );
An instance has a number of functions available:
instance.enable(); // enable the instance
instance.disable(); // disable the instance
You can also get an existing instance:
cy.autoPanOnOutOfCanvasBounds('get');
This project is set up to automatically be published to npm and bower. To publish:
export VERSION=1.2.3gulp publishbower register cytoscape-auto-pan-on-out-of-canvas-bounds https://github.com/iVis-at-Bilkent/cytoscape.js-auto-pan-on-out-of-canvas-bounds.gitFAQs
An extension to automatically pan when nodes are out of canvas bounds.
We found that cytoscape-auto-pan-on-out-of-canvas-bounds demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.