cytoscape-expand-collapse
Advanced tools
Comparing version 3.1.1 to 3.1.2
{ | ||
"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
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
1400614
17
3374