Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -500,15 +500,16 @@ function draw() {
|
|
| 500 |
drawLoopPathsFor(name); // draw overlay highlights for loops involving this node
|
| 501 |
}
|
| 502 |
|
| 503 |
-
nodeCircleGroup.on("click", function(
|
| 504 |
selectNode(d);
|
| 505 |
-
|
| 506 |
});
|
| 507 |
-
labelGroup.on("click", function(
|
| 508 |
selectNode(d);
|
| 509 |
-
|
| 510 |
});
|
| 511 |
|
|
|
|
| 512 |
document.getElementById("arc-reset").onclick = resetOpacity;
|
| 513 |
svg.on("click", function(evt){
|
| 514 |
// Only reset when clicking empty background, not circles, not labels, not paths
|
|
|
|
| 500 |
drawLoopPathsFor(name); // draw overlay highlights for loops involving this node
|
| 501 |
}
|
| 502 |
|
| 503 |
+
nodeCircleGroup.on("click", function(event, d){
|
| 504 |
selectNode(d);
|
| 505 |
+
event.stopPropagation();
|
| 506 |
});
|
| 507 |
+
labelGroup.on("click", function(event, d){
|
| 508 |
selectNode(d);
|
| 509 |
+
event.stopPropagation();
|
| 510 |
});
|
| 511 |
|
| 512 |
+
|
| 513 |
document.getElementById("arc-reset").onclick = resetOpacity;
|
| 514 |
svg.on("click", function(evt){
|
| 515 |
// Only reset when clicking empty background, not circles, not labels, not paths
|