π²${e.trees}`,annotation.classList.remove("hidden")};function drag(){return d3.drag().on("start",(function(e){showAnnotation(e),d3.select(this).raise().select("circle").attr("stroke-width","3"),e.fx=d3.event.x,e.fy=d3.event.y})).on("drag",(function(e){e.fx=d3.event.x,e.fy=d3.event.y})).on("end",(function(e){d3.select(this).select("circle").attr("stroke-width","0"),e.fx=null,e.fy=null}))}const color=d3.scaleOrdinal(d3.schemeTableau10),groups=d3.select("#bubbles").select("g"),join=e=>{const t=e.append("g").call(drag()).on("mouseenter",showAnnotation).on("mouseleave",hideAnnotation).classed("bubble",!0);return t.append("circle").attr("fill",(e,t)=>color(t)).attr("stroke","white").attr("stroke-width","0").call(e=>e.transition("grow").duration(1e3).attr("r",e=>e.radius)),t.filter((e,t)=>t<11).append("text").attr("text-anchor","middle").attr("fill","transparent").html(e=>e.name.replace("Development","Devt.").replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map((e,t,{length:n})=>`${e}`).join("")).call(e=>e.transition("fade").delay(750).duration(250).style("fill","black")),t};groups.selectAll("g").data(nodes).join(join);const simulation=d3.forceSimulation(nodes).alphaDecay(0).velocityDecay(.2).force("charge",d3.forceManyBody().strength(1).distanceMin(10)).force("center",d3.forceCenter(0,0)).force("collide",d3.forceCollide().strength(.1).radius(e=>e.radius).iterations(10)).stop();simulation.on("tick",()=>groups.selectAll("g").attr("transform",e=>`translate(${e.x},${e.y})`)),handleResize(),hypevizz.initialize("bubbles",simulation.restart,simulation.stop);