cytoscape-edge-bend-editing
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "cytoscape-edge-bend-editing", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A Cytoscape.js extension enables editing edge bend points", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-edge-bend-editing.js", |
@@ -295,2 +295,6 @@ var debounce = require('./debounce'); | ||
cy.bind('zoom pan', eZoom = function () { | ||
if ( !edgeToHighlightBends ) { | ||
return; | ||
} | ||
refreshDraws(); | ||
@@ -300,2 +304,10 @@ }); | ||
cy.on('position', 'node', ePosition = function () { | ||
var node = this; | ||
// If there is no edge to highlight bends or this node is not any end of that edge return directly | ||
if ( !edgeToHighlightBends || !( edgeToHighlightBends.data('source') === node.id() | ||
|| edgeToHighlightBends.data('target') === node.id() ) ) { | ||
return; | ||
} | ||
refreshDraws(); | ||
@@ -302,0 +314,0 @@ }); |
Sorry, the diff of this file is too big to display
201170
3149