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

cytoscape

Package Overview
Dependencies
Maintainers
3
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape - npm Package Compare versions

Comparing version 3.2.16 to 3.2.17

2

package.json
{
"name": "cytoscape",
"version": "3.2.16",
"version": "3.2.17",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation",

@@ -57,2 +57,29 @@ var math = require( '../../../../math' );

var lineAngleFromDelta = function( dx, dy ){
var angle = Math.atan( dy / dx );
if( dx === 0 && angle < 0 ){
angle = angle * -1;
}
return angle;
};
var lineAngle = function( p0, p1 ){
var dx = p1.x - p0.x;
var dy = p1.y - p0.y;
return lineAngleFromDelta( dx, dy );
};
var bezierAngle = function( p0, p1, p2, t ){
var t0 = math.bound( 0, t - 0.001, 1 );
var t1 = math.bound( 0, t + 0.001, 1 );
var lp0 = math.qbezierPtAt( p0, p1, p2, t0 );
var lp1 = math.qbezierPtAt( p0, p1, p2, t1 );
return lineAngle( lp0, lp1 );
};
BRp.recalculateEdgeLabelProjections = function( edge ){

@@ -90,2 +117,5 @@ var p;

var midAngle = lineAngleFromDelta(rs.midDispX, rs.midDispY);
setRs( 'labelAutoAngle', null, midAngle );
var createControlPointInfo = function(){

@@ -173,19 +203,2 @@ if( createControlPointInfo.cache ){ return createControlPointInfo.cache; } // use cache so only 1x per edge

var lineAngle = function( p0, p1 ){
var dx = p1.x - p0.x;
var dy = p1.y - p0.y;
return Math.atan( dy / dx );
};
var bezierAngle = function( p0, p1, p2, t ){
var t0 = math.bound( 0, t - 0.001, 1 );
var t1 = math.bound( 0, t + 0.001, 1 );
var lp0 = math.qbezierPtAt( p0, p1, p2, t0 );
var lp1 = math.qbezierPtAt( p0, p1, p2, t1 );
return lineAngle( lp0, lp1 );
};
switch( rs.edgeType ){

@@ -479,3 +492,3 @@ case 'self':

} else if( isEdge && rotStr === 'autorotate' ){
rs.labelAngle = Math.atan( rs.midDispY / rs.midDispX );
rs.labelAngle = rs.labelAutoAngle;
rs.sourceLabelAngle = rs.sourceLabelAutoAngle;

@@ -482,0 +495,0 @@ rs.targetLabelAngle = rs.targetLabelAutoAngle;

@@ -284,2 +284,8 @@ var is = require( '../../../is' );

var blurActiveDomElement = function(){
if( document.activeElement != null && document.activeElement.blur != null ){
document.activeElement.blur();
}
};
var haveMutationsApi = typeof MutationObserver !== 'undefined';

@@ -402,2 +408,5 @@

e.preventDefault();
blurActiveDomElement();
r.hoverData.capture = true;

@@ -1137,2 +1146,4 @@ r.hoverData.which = e.which;

blurActiveDomElement();
r.touchData.capture = true;

@@ -1139,0 +1150,0 @@ r.data.bgActivePosistion = undefined;

@@ -1,1 +0,1 @@

module.exports = "3.2.16";
module.exports = "3.2.17";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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