Skip to content

Commit

Permalink
development
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex committed Dec 2, 2024
1 parent 117d26d commit bca1b90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/circlepacked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function chart(data) {
.attr("stroke-opacity", 1)
//(d) => (d.depth ===1? 0.3: d.depth < 3 === 0 ? 1 : 0.4))
.attr("stroke-dasharray", (d) => (d.depth != 1 ? "0" : "5 2 1 1 3 4"))
.attr("pointer-events", (d) => (!d.children | d.depth>1 ? "none" : null))
.attr("pointer-events", (d) => (!d.children ? "none" : null))
// (!d.children | d.depth>1 ? "none" : null))
// pointer-events: none;
.on("mouseover", function () {
d3.select(this).attr("stroke", (d) => {
Expand All @@ -93,7 +94,7 @@ function chart(data) {
"click",

(event, d) => {
if (d.depth < 3) return focus !== d && (zoom(event, d), event.stopPropagation())
if (d.depth<2) return focus !== d && (zoom(event, d), event.stopPropagation())
});

console.log(links)
Expand Down

0 comments on commit bca1b90

Please sign in to comment.