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

cytoscape-edgehandles

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-edgehandles - npm Package Compare versions

Comparing version 2.10.3 to 2.11.0

5

cytoscape-edgehandles.js

@@ -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 ) {

2

package.json
{
"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 @@ }

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