You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
|
9 months ago
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8565],{42098:function(t,e,r){r.d(e,{a:function(){return a}});var n=r(89929);function a(t,e){var r=t.append("foreignObject").attr("width","100000"),a=r.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var l=e.label;switch(typeof l){case"function":a.insert(l);break;case"object":a.insert(function(){return l});break;default:a.html(l)}n.bg(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var i=a.node().getBoundingClientRect();return r.attr("width",i.width).attr("height",i.height),r}},89929:function(t,e,r){r.d(e,{$p:function(){return c},O1:function(){return i},WR:function(){return h},bF:function(){return l},bg:function(){return d}});var n=r(6843),a=r(82610);function l(t,e){return!!t.children(e).length}function i(t){return s(t.v)+":"+s(t.w)+":"+s(t.name)}var o=/:/g;function s(t){return t?String(t).replace(o,"\\:"):""}function d(t,e){e&&t.attr("style",e)}function c(t,e,r){e&&t.attr("class",e).attr("class",r+" "+t.attr("class"))}function h(t,e){var r=e.graph();if(n.Z(r)){var l=r.transition;if(a.Z(l))return l(t)}return t}},48565:function(t,e,r){r.d(e,{diagram:function(){return $}});var n=r(9490),a=r(77832),l=r(36783),i=r(51893),o=r(74550),s=r(34218),d=r(10361),c=r(91605),h=r(89929),u={normal:function(t,e,r,n){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.bg(a,r[n+"Style"]),r[n+"Class"]&&a.attr("class",r[n+"Class"])},vee:function(t,e,r,n){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.bg(a,r[n+"Style"]),r[n+"Class"]&&a.attr("class",r[n+"Class"])},undirected:function(t,e,r,n){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");h.bg(a,r[n+"Style"]),r[n+"Class"]&&a.attr("class",r[n+"Class"])}},p=r(42098);function f(t,e,r){var n,a=e.label,l=t.append("g");"svg"===e.labelType?(l.node().appendChild(e.label),h.bg(l,e.labelStyle)):"string"!=typeof a||"html"===e.labelType?(0,p.a)(l,e):function(t,e){for(var r=t.append("text"),n=(function(t){for(var e,r="",n=!1,a=0;a<t.length;++a)(e=t[a],n)?("n"===e?r+="\n":r+=e,n=!1):"\\"===e?n=!0:r+=e;return r})(e.label).split("\n"),a=0;a<n.length;a++)r.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return h.bg(r,e.labelStyle),r}(l,e);var i=l.node().getBBox();switch(r){case"top":n=-e.height/2;break;case"bottom":n=e.height/2-i.height;break;default:n=-i.height/2}return l.attr("transform","translate("+-i.width/2+","+n+")"),l}var g=function(t,e){var r=e.nodes().filter(function(t){return h.bF(e,t)}),n=t.selectAll("g.cluster").data(r,function(t){return t});h.WR(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(t){return e.node(t).id}).style("opacity",0).each(function(t){var r=e.node(t),n=l.Ys(this);l.Ys(this).append("rect"),f(n.append("g").attr("class","label"),r,r.clusterLabelPos)});return n=n.merge(a),(n=h.WR(n,e).style("opacity",1)).selectAll("rect").each(function(t){var r=e.node(t),n=l.Ys(this);h.bg(n,r.style)}),n};let y=function(t,e){var r,n=t.selectAll("g.edgeLabel").data(e.edges(),function(t){return h.O1(t)}).classed("update",!0);return n.exit().remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=t.selectAll("g.edgeLabel")).each(function(t){var r=l.Ys(this);r.select(".label").remove();var n=e.edge(t),a=f(r,e.edge(t),
|