Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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.3
gulp publish
bower register cytoscape-auto-pan-on-out-of-canvas-bounds https://github.com/iVis-at-Bilkent/cytoscape.js-auto-pan-on-out-of-canvas-bounds.git
FAQs
An extension to automatically pan when nodes are out of canvas bounds.
The npm package cytoscape-auto-pan-on-out-of-canvas-bounds receives a total of 0 weekly downloads. As such, cytoscape-auto-pan-on-out-of-canvas-bounds popularity was classified as not popular.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.