Skip to content

Commit 6fc8aa2

Browse files
committed
feat: make edges not clickable
1 parent 1916fbf commit 6fc8aa2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

assets/cy-style.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"line-color": "#e2e2e2",
1919
"target-arrow-color": "#e2e2e2",
2020
"color": "#1984c5",
21-
"edge-text-rotation": "autorotate"
21+
"edge-text-rotation": "autorotate",
22+
"events": "no"
2223
}
2324
},
2425
{

graph.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,12 @@ function newEdge(name, relation) {
299299
id: name + " → " + relation["name"],
300300
source: name,
301301
target: relation["name"],
302-
label: relation["description"]
302+
label: relation["description"],
303+
style: {
304+
"event": "no",
305+
"selectable": false,
306+
"grabbable": false
307+
},
303308
}
304309
}
305310
}

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function showDetails(data, connected) {
1919
details_top.innerHTML += "<ul>";
2020
details_top.innerHTML += "<li>Use the 'Toggle Filters' button to activate the simulation engine filter.</li>";
2121
details_top.innerHTML += "<li>Select what simulation engines you would like to show in the graph.</li>";
22-
details_top.innerHTML += "<li>Select a node/edge to see its ecosystem in the graph.</li>";
23-
details_top.innerHTML += "<li>Double click/tap on a node/edge to see details of the tool.</li>";
22+
details_top.innerHTML += "<li>Select a node to see its ecosystem in the graph.</li>";
23+
details_top.innerHTML += "<li>Double click/tap on a node to see details of the tool.</li>";
2424
details_top.innerHTML += "<li>Click outside to unselect nodes.</li>";
2525
details_top.innerHTML += "</ul>";
2626
details_top.innerHTML += "<h3 class='mt-3'>Contributing</h2>";

0 commit comments

Comments
 (0)