Spaces:
Running
Running
Commit ·
902479b
1
Parent(s): 5f08e7c
Eliminacion de prompt de text de nodo
Browse files
script.js
CHANGED
|
@@ -753,17 +753,7 @@ function initDiagram() {
|
|
| 753 |
.attr("font-size", fontSize)
|
| 754 |
.attr("font-weight", "bold")
|
| 755 |
.style("text-shadow", textShadow)
|
| 756 |
-
.attr("pointer-events", "
|
| 757 |
-
.attr("cursor", "pointer")
|
| 758 |
-
.on("dblclick", function(event, d) {
|
| 759 |
-
const newName = prompt("Enter new node name:", d.name);
|
| 760 |
-
if (newName !== null && newName.trim() !== "") {
|
| 761 |
-
sankeyData.nodes[d.index].name = newName.trim();
|
| 762 |
-
updateLists();
|
| 763 |
-
initDiagram();
|
| 764 |
-
saveData();
|
| 765 |
-
}
|
| 766 |
-
});
|
| 767 |
}
|
| 768 |
|
| 769 |
// Update UI lists
|
|
|
|
| 753 |
.attr("font-size", fontSize)
|
| 754 |
.attr("font-weight", "bold")
|
| 755 |
.style("text-shadow", textShadow)
|
| 756 |
+
.attr("pointer-events", "none");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 757 |
}
|
| 758 |
|
| 759 |
// Update UI lists
|