Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
cytoscape-edge-bend-editing
Advanced tools
A Cytoscape.js extension enables editing edge bend points.
Download the library:
npm install cytoscape-edge-bend-editing
,bower install cytoscape-edge-bend-editing
, orrequire()
the library as appropriate for your project:
CommonJS:
var cytoscape = require('cytoscape');
var edge-bend-editing = require('cytoscape-edge-bend-editing');
edge-bend-editing( cytoscape ); // register extension
AMD:
require(['cytoscape', 'cytoscape-edge-bend-editing'], function( cytoscape, edge-bend-editing ){
edge-bend-editing( cytoscape ); // register extension
});
Plain HTML/JS has the extension registered for you automatically, because no require()
is needed.
cy.edgeBendEditing(options)
To initialize with options.
ele.getSegmentPoints()
get segment points of an edge in an array A,
A[2 * i] is the x coordinate and A[2 * i + 1] is the y coordinate
of the ith bend point. (Returns undefined if the curve style is not segments)
var options = {
// this function specifies the positions of bend points
bendPositionsFunction: function(ele) {
return ele.data('bendPointPositions');
},
// whether the bend editing operations are undoable (requires cytoscape-undo-redo.js)
undoable: false,
// the size of bend shape is obtained by multipling width of edge with this parameter
bendShapeSizeFactor: 6,
// whether to start the plugin in the enabled state
enabled: true
};
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-edge-bend-editing https://github.com/iVis-at-Bilkent/cytoscape.js-edge-bend-editing.git
FAQs
A Cytoscape.js extension enables editing edge bend points
The npm package cytoscape-edge-bend-editing receives a total of 3 weekly downloads. As such, cytoscape-edge-bend-editing popularity was classified as not popular.
We found that cytoscape-edge-bend-editing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.