Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cytoscape-edge-bend-editing

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-edge-bend-editing - npm Package Compare versions

Comparing version 1.3.3 to 1.4.0

2

package.json
{
"name": "cytoscape-edge-bend-editing",
"version": "1.3.3",
"version": "1.4.0",
"description": "A Cytoscape.js extension enables editing edge bend points",

@@ -5,0 +5,0 @@ "main": "cytoscape-edge-bend-editing.js",

@@ -70,2 +70,4 @@ cytoscape-edge-bend-editing

instance.getSegmentPoints(ele);
// Initilize bend points for the given edges using 'options.bendPositionsFunction'
instance.initBendPoints(eles)
```

@@ -86,2 +88,4 @@

},
// whether to initilize bend points on creation of this extension automatically
initBendPointsAutomatically: true,
// whether the bend editing operations are undoable (requires cytoscape-undo-redo.js)

@@ -88,0 +92,0 @@ undoable: false,

@@ -16,2 +16,4 @@ ;(function(){ 'use strict';

},
// whether to initilize bend points on creation of this extension automatically
initBendPointsAutomatically: true,
// whether the bend editing operations are undoable (requires cytoscape-undo-redo.js)

@@ -65,4 +67,6 @@ undoable: false,

// init bend positions
bendPointUtilities.initBendPoints(options.bendPositionsFunction, cy.edges());
// init bend positions conditionally
if (options.initBendPointsAutomatically) {
bendPointUtilities.initBendPoints(options.bendPositionsFunction, cy.edges());
}

@@ -83,2 +87,6 @@ if(options.enabled)

return bendPointUtilities.getSegmentPoints(ele);
},
// Initilize bend points for the given edges using 'options.bendPositionsFunction'
initBendPoints: function(eles) {
bendPointUtilities.initBendPoints(options.bendPositionsFunction, eles);
}

@@ -85,0 +93,0 @@ };

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc