cytoscape-edgehandles
Advanced tools
Comparing version 2.10.3 to 2.11.0
@@ -156,3 +156,4 @@ /*! | ||
handleSize: 10, // the size of the edge handle put on nodes | ||
handleIcon: false, | ||
handleHitThreshold: 6, // a threshold for hit detection that makes it easier to grab the handle | ||
handleIcon: false, // an image to put on the handle | ||
handleColor: '#ff0000', // the colour of the handle and the line drawn from it | ||
@@ -810,3 +811,3 @@ handleLineType: 'ghost', // can be 'ghost' for real edge, 'straight' for a straight line, or 'draw' for a draw-as-you-go line | ||
var y = pageY - $container.offset().top; | ||
var hrTarget = hr; | ||
var hrTarget = hr + options().handleHitThreshold; | ||
@@ -813,0 +814,0 @@ if( e.button !== 0 && !e.touches ) { |
{ | ||
"name": "cytoscape-edgehandles", | ||
"version": "2.10.3", | ||
"version": "2.11.0", | ||
"description": "Edge creation extension for Cytoscape.js", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-edgehandles.js", |
@@ -61,6 +61,7 @@ cytoscape-edgehandles | ||
handleSize: 10, // the size of the edge handle put on nodes | ||
handleHitThreshold: 6, // a threshold for hit detection that makes it easier to grab the handle | ||
handleIcon: false, // an image to put on the handle | ||
handleColor: '#ff0000', // the colour of the handle and the line drawn from it | ||
handleLineType: 'ghost', // can be 'ghost' for real edge, 'straight' for a straight line, or 'draw' for a draw-as-you-go line | ||
handleLineWidth: 1, // width of handle line in pixels | ||
handleIcon: false, // Pass an Image-object to use as icon on handle. Icons are resized according to zoom and centered in handle. | ||
handleOutlineColor: '#000000', // the colour of the handle outline | ||
@@ -72,3 +73,3 @@ handleOutlineWidth: 0, // the width of the handle outline in pixels | ||
cxt: false, // whether cxt events trigger edgehandles (useful on touch) | ||
enabled: true, // whether to start the extension in the enabled state | ||
enabled: true, // whether to start the plugin in the enabled state | ||
toggleOffOnLeave: false, // whether an edge is cancelled by leaving a node (true), or whether you need to go over again to cancel (false; allows multiple edges in one pass) | ||
@@ -104,4 +105,4 @@ edgeType: function( sourceNode, targetNode ) { | ||
// fired when edgehandles interaction is stopped (either complete with added edges or incomplete) | ||
}, | ||
cancel: function( sourceNode, renderedPosition ){ | ||
}, | ||
cancel: function( sourceNode, renderedPosition ) { | ||
// fired when edgehandles are cancelled ( incomplete - nothing has been added ) - renderedPosition is where the edgehandle was released | ||
@@ -108,0 +109,0 @@ } |
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
86634
1042
173