From ae92e76ee8c46e64d15b3b7e0776b268b7abd2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Balc=C4=B1?= Date: Tue, 19 May 2020 17:17:00 +0300 Subject: [PATCH 1/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2785ac9..4fbad24 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ U. Dogrusoz , A. Karacelik, I. Safarli, H. Balci, L. Dervishi, and M.C. Siper, " ## Demo -Click [here](https://raw.githack.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/unstable/demo.html) (no undo and with custom cue image) or [here](https://raw.githack.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/unstable/demo-undoable.html) (undoable) or [here](https://raw.githack.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/unstable/demo-compounds-collapsed.html) (compounds initially collapsed) for a demo. -Click [here](https://raw.githack.com/iVis-at-Bilkent/cytoscape.js-expand-collapse/unstable/demo-edges-expand-collapse.html) for undoable edges expand collapse demo. +Click [here](http://ivis-at-bilkent.github.io/cytoscape.js-expand-collapse/demo.html) (no undo and with custom cue image) or [here](http://ivis-at-bilkent.github.io/cytoscape.js-expand-collapse/demo-undoable.html) (undoable) or [here](http://ivis-at-bilkent.github.io/cytoscape.js-expand-collapse/demo-compounds-collapsed.html) (compounds initially collapsed) for a demo. +Click [here](http://ivis-at-bilkent.github.io/cytoscape.js-expand-collapse/demo-edges-expand-collapse.html) for undoable edges expand collapse demo. ## API From b9e63c7a90860e79cbe284ea2aec6d483bae3641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Balc=C4=B1?= Date: Tue, 19 May 2020 17:19:09 +0300 Subject: [PATCH 2/6] pushing changes for v4.0.0 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aea2aef..c4994d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cytoscape-expand-collapse", - "version": "3.2.1", + "version": "4.0.0", "description": "This extension provides an interface to expand-collapse nodes.", "main": "src/index.js", "spm": { From 9ab2b9d13cd41b3933a8eb75ca80e068e81689e1 Mon Sep 17 00:00:00 2001 From: canbax Date: Tue, 28 Jul 2020 09:33:42 +0300 Subject: [PATCH 3/6] #103 format code --- demo-edges-expand-collapse.html | 951 ++++++++++++++++---------------- 1 file changed, 465 insertions(+), 486 deletions(-) diff --git a/demo-edges-expand-collapse.html b/demo-edges-expand-collapse.html index a1827f9..4186fb9 100644 --- a/demo-edges-expand-collapse.html +++ b/demo-edges-expand-collapse.html @@ -1,497 +1,476 @@ - - - cytoscape-expand-collapse.js edges demo - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - -

cytoscape-expand-collapse edge undoable demo

-
-
- CTRL+Z to undo, CTRL+Y to redo
-
-
Collapse all edges
-
Expand all edges
-
-
Collapse selected edges
-
Expand selected edges
-
-
Collapse edges between selected nodes
-
Expand edges between selected nodes
-
- Options: -
- Group edges of similar type -
- Allow nested edge collapse - -
-
- -
- - - - - - - - - - - - - - - - - - + } + }); + + document.getElementById("expandEdgesBetweenNodes").addEventListener("click", function () { + var nodes = cy.nodes(":selected"); + if (nodes.length >= 2) { + ur.do("expandEdgesBetweenNodes", { + nodes: nodes, + }); + } + }); + + document.getElementById("expandAll").addEventListener("click", function () { + if (cy.edges(".cy-expand-collapse-collapsed-edge").length > 0) { + ur.do("expandAllEdges", {}); + } + }); + + document.addEventListener('keydown', function (e) { + if (e.ctrlKey && e.which == '90') { + cy.undoRedo().undo(); + } + else if (e.ctrlKey && e.which == '89') { + cy.undoRedo().redo(); + } + }, true); + }); + + + + +

cytoscape-expand-collapse edge undoable demo

+
+
+ CTRL+Z to undo, CTRL+Y to redo
+
+
Collapse all edges
+
Expand all edges
+
+
Collapse selected + edges
+
Expand selected edges +
+
+
Collapse + edges between selected nodes
+
Expand edges + between selected nodes
+
+ Options: +
+ Group edges of similar type +
+ Allow nested edge collapse + +
+
+
+ + + \ No newline at end of file From dafb9cfa9d6f11abd6f5b0f215a0d508e7faee11 Mon Sep 17 00:00:00 2001 From: Salih Altun Date: Wed, 16 Jun 2021 14:22:50 +0300 Subject: [PATCH 4/6] 4.1.0 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 73c4b55..479b17b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "cytoscape-expand-collapse", - "version": "3.2.1", + "version": "4.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9ff81da..016afa2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cytoscape-expand-collapse", - "version": "4.0.0", + "version": "4.1.0", "description": "This extension provides an interface to expand-collapse nodes.", "main": "cytoscape-expand-collapse.js", "spm": { From f71d04ca273cc45ce3869d426e064b8c2d772b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Balc=C4=B1?= Date: Thu, 9 Sep 2021 14:48:28 +0300 Subject: [PATCH 5/6] Create CITATION.cff --- CITATION.cff | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 CITATION.cff diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000..fd56246 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,49 @@ +cff-version: 1.2.0 +message: "If you use this software, please cite it as below." +authors: +- family-names: "Dogrusoz" + given-names: "Ugur" + orcid: "https://orcid.org/0000-0002-7153-0784" +- family-names: "Karacelik" + given-names: "Alper" + orcid: "https://orcid.org/0000-0000-0000-0000" +- family-names: "Safarli" + given-names: "Ilkin" +- family-names: "Balci" + given-names: "Hasan" + orcid: "https://orcid.org/0000-0001-8319-7758" +- family-names: "Dervishi" + given-names: "Leonard" +- family-names: "Siper" + given-names: "Metin Can" +title: "cytoscape-expand-collapse" +version: 4.1.0 +date-released: 2021-06-16 +url: "https://github.com/iVis-at-Bilkent/cytoscape.js-expand-collapse" +preferred-citation: + type: article + authors: + - family-names: "Dogrusoz" + given-names: "Ugur" + orcid: "https://orcid.org/0000-0002-7153-0784" + - family-names: "Karacelik" + given-names: "Alper" + orcid: "https://orcid.org/0000-0000-0000-0000" + - family-names: "Safarli" + given-names: "Ilkin" + - family-names: "Balci" + given-names: "Hasan" + orcid: "https://orcid.org/0000-0001-8319-7758" + - family-names: "Dervishi" + given-names: "Leonard" + - family-names: "Siper" + given-names: "Metin Can" + doi: "10.1371/journal.pone.0197238" + journal: "PLOS ONE" + month: 5 + start: 1 # First page number + end: 18 # Last page number + title: "Efficient methods and readily customizable libraries for managing complexity of large networks" + issue: 5 + volume: 13 + year: 2018 From ef112823aa902f86492998e95d441ae50a288cb0 Mon Sep 17 00:00:00 2001 From: ugurdogrusoz Date: Thu, 4 May 2023 08:43:28 +0300 Subject: [PATCH 6/6] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a5ee70d..d68adf4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ cytoscape-expand-collapse ================================================================================ +**We are in the process of developing a new unified framework for complexity management of graphs. Thus this repositoy is no longer being maintained** + ## Description This extension provides an interface to expand/collapse nodes and edges for better management of complexity of Cytoscape.js compound graphs, distributed under [The MIT License](https://opensource.org/licenses/MIT).