(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{64:function(t,e,r){t.exports=r(65)},65:function(t,e,r){"use strict";r.r(e);var n=r(17),a=r(11);null==document.getElementById("diag")?document.body.appendChild(document.createElement("div")).setAttribute("id","diag"):document.getElementById("diag").innerHTML="";var o=20,s=30,d=20,l=30,i=1200-l-s,c=400-o-d,u=a.b("#diag").append("svg").attr("width",i+l+s).attr("height",c+o+d).style("background-color","white").append("g").attr("transform","translate("+l+","+o+")");n.a.events.addEventListener(n.a.RENDER_EVENT,(function(t){var e=t.detail.args.data,r=75*e.words.length,o=e.words.map((function(t){return t.id})),s=a.a().range([0,r]).domain(o),d=u.selectAll("mynodes").data(e.words).enter().append("circle").attr("cx",(function(t){var e=s(t.id);return void 0===e?null:e})).attr("cy",c-30).attr("r",10).style("fill","#69b3a2");u.selectAll("mylabels").data(e.words).enter().append("text").attr("x",(function(t){var e=s(t.id);return void 0===e?null:e})).attr("y",c-5).text((function(t){return t.text})).style("text-anchor","middle"),u.selectAll("mylabels").data(e.words).enter().append("text").attr("x",(function(t){var e=s(t.id);return void 0===e?null:e})).attr("y",c+15).text((function(t){return t.tag})).style("text-anchor","middle"),u.append("svg:defs").selectAll("marker").data(e.arcs).enter().append("svg:marker").attr("id",(function(t){return t.start.toString()+t.end.toString()})).attr("viewBox","0 -5 10 10").attr("refX",8).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto-start-reverse").append("svg:path").attr("d","M0,-5L10,0L0,5").attr("class","color_change_marker"),u.selectAll("mylinks").data(e.arcs).join("path").attr("id",(function(t){return void 0===t?"":t.start.toString()+"_"+t.end.toString()})).attr("d",(function(t){var r=s(e.words[t.start].id),n=s(e.words[t.end].id);return void 0===r&&(r=0),void 0===n&&(n=0),["M",r<n?r:n,c-30,"A",r<n?(r-n)/2:(n-r)/2,r<n?(r-n)/2:(n-r)/2,0,0,1,r<n?n:r,",",c-30].join(" ")})).style("fill","none").attr("stroke","black").attr("stroke-width",1).attr("class","color_change_path").attr("marker-end",(function(t){return"right"===t.dir?"url(#"+t.start.toString()+t.end.toString()+")":"none"})).attr("marker-start",(function(t){return"left"===t.dir?"url(#"+t.start.toString()+t.end.toString()+")":"none"})),u.selectAll("myText_labels").data(e.arcs).enter().append("text").attr("dy",-5).append("textPath").attr("xlink:href",(function(t){return void 0===t?"":"#"+t.start.toString()+"_"+t.end.toString()})).attr("text-anchor","middle").attr("startOffset","50%").attr("class","dep").text((function(t){return t.label})),d.on("mouseout",(function(t,e){d.style("fill","#69b3a2"),a.c(".color_change_path").style("stroke","black").style("stroke-width",1),a.c(".color_change_marker").style("fill","black")})).on("mouseover",(function(t,r){d.style("fill","#b8b8b8"),a.c(".color_change_path").style("stroke",(function(t){return e.words[t.start]===r||e.words[t.end]===r?"#69b3b2":"#b8b8b8"})).style("stroke-width",(function(t){return e.words[t.start]===r||e.words[t.end]===r?2:1})),a.c(".color_change_marker").style("fill",(function(t){return e.words[t.start]===r||e.words[t.end]===r?"#69b3b2":"#b8b8b8"}))}));var l=a.d().scaleExtent([.2,100]).on("zoom",(function(t){a.b("svg g").attr("transform",t.transform)}));a.b("svg").call(l),n.a.setFrameHeight()})),n.a.setComponentReady(),n.a.setFrameHeight()}},[[64,1,2]]]);
//# sourceMappingURL=main.06d197db.chunk.js.map