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

cytoscape-expand-collapse

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-expand-collapse - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

demo-compounds-collapsed.html

6

package.json
{
"name": "cytoscape-expand-collapse",
"version": "3.1.1",
"version": "3.1.2",
"description": "This extension provides an interface to expand-collapse nodes.",

@@ -37,4 +37,4 @@ "main": "src/index.js",

"run-sequence": "^1.1.4",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^1.1.2"
},

@@ -41,0 +41,0 @@ "peerDependencies": {

@@ -11,9 +11,9 @@ cytoscape-expand-collapse

Until a publication on this is available, please cite the following paper when using this extension:
Please cite the following paper when using this extension:
U. Dogrusoz and B. Genc, "A Multi-Graph Approach to Complexity Management in Interactive Graph Visualization", Computers & Graphics, 30(1), pp. 86-97, 2006.
U. Dogrusoz , A. Karacelik, I. Safarli, H. Balci, L. Dervishi, and M.C. Siper, "[Efficient methods and readily customizable libraries for managing complexity of large networks](https://doi.org/10.1371/journal.pone.0197238)", PLoS ONE, 13(5): e0197238, 2018.
## Demo
Click [here](https://rawgit.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/master/demo.html) (no undo) or [here](https://rawgit.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/master/demo-undoable.html) (undoable) for a demo
Click [here](https://rawgit.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/master/demo.html) (no undo) or [here](https://rawgit.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/master/demo-undoable.html) (undoable) or [here](https://rawgit.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/master/demo-compounds-collapsed.html) (compounds initially collapsed) for a demo.

@@ -20,0 +20,0 @@ ## API

@@ -5,10 +5,10 @@ function elementUtilities(cy) {

var topMostNodes = notCalcTopMostNodes ? nodes : this.getTopMostNodes(nodes);
topMostNodes.positions(function(ele, i){
return {
x: topMostNodes[i].position("x") + positionDiff.x,
y: topMostNodes[i].position("y") + positionDiff.y
};
});
for (var i = 0; i < topMostNodes.length; i++) {
var node = topMostNodes[i];
var oldX = node.position("x");
var oldY = node.position("y");
node.position({
x: oldX + positionDiff.x,
y: oldY + positionDiff.y
});
var children = node.children();

@@ -15,0 +15,0 @@ this.moveNodes(positionDiff, children, true);

@@ -470,3 +470,6 @@ var boundingBoxUtilities = require('./boundingBoxUtilities');

fishEyeViewMoveNode: function (node, T_x, T_y, nodeToExpand, single, animate, layoutBy) {
var childrenList = node.children(":visible");
var childrenList = cy.collection();
if(node.isParent()){
childrenList = node.children(":visible");
}
var self = this;

@@ -473,0 +476,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