cytoscape-edge-bend-editing
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "cytoscape-edge-bend-editing", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A Cytoscape.js extension enables editing edge bend points", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-edge-bend-editing.js", |
@@ -49,7 +49,7 @@ cytoscape-edge-bend-editing | ||
`cy.expandCollapse(options)` | ||
`cy.edgeBendEditing(options)` | ||
To initialize with options. | ||
`ele.getSegmentPoints()` | ||
Returns the center coordinates of segment points. | ||
Returns the coordinates of segment points (Returns undefined is curve style is not segments). | ||
@@ -56,0 +56,0 @@ ## Default Options |
@@ -110,2 +110,7 @@ var bendPointUtilities = { | ||
getSegmentPoints: function(edge) { | ||
if( edge.css('curve-style') !== 'segments' ) { | ||
return undefined; | ||
} | ||
var segpts = []; | ||
@@ -112,0 +117,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
169451
2776