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

cytoscape-fcose

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-fcose - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

package.json
{
"name": "cytoscape-fcose",
"version": "1.2.2",
"version": "1.2.3",
"description": "The fCoSE layout for Cytoscape.js by Bilkent with fast compound node placement",

@@ -5,0 +5,0 @@ "main": "cytoscape-fcose.js",

@@ -176,3 +176,3 @@ /*

let childrenOfCurrentNode = cy.collection();
childrenOfCurrentNode.merge(currentNode).merge(currentNode.descendants());
childrenOfCurrentNode.merge(currentNode).merge(currentNode.descendants().intersection(eles));
visitedTopMostNodes.push(currentNode);

@@ -179,0 +179,0 @@

@@ -99,6 +99,2 @@ /**

// if there is no elements, return
if(options.eles.length == 0)
return;
// decide component packing is enabled or not

@@ -113,21 +109,2 @@ let layUtil;

}
// if partial layout, update options.eles
if(options.eles.length != options.cy.elements().length){
let prevNodes = eles.nodes();
eles = eles.union(eles.descendants());
eles.forEach(function(ele){
if(ele.isNode()){
let connectedEdges = ele.connectedEdges();
connectedEdges.forEach(function(edge){
if(eles.contains(edge.source()) && eles.contains(edge.target()) && !prevNodes.contains(edge.source().union(edge.target()))){
eles = eles.union(edge);
}
});
}
});
options.eles = eles;
}

@@ -134,0 +111,0 @@ // if packing is not enabled, perform layout on the whole graph

@@ -294,3 +294,3 @@ /**

parentNodes.forEach(function( ele ){
aux.connectComponents(cy, eles, aux.getTopMostNodes(ele.descendants()), dummyNodes);
aux.connectComponents(cy, eles, aux.getTopMostNodes(ele.descendants().intersection(eles)), dummyNodes);
});

@@ -297,0 +297,0 @@

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