cytoscape-edge-bend-editing
Advanced tools
Comparing version 1.3.3 to 1.4.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185129
2923
114