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.
109 lines
30 KiB
JavaScript
109 lines
30 KiB
JavaScript
|
9 months ago
|
"use strict";exports.id=500,exports.ids=[500],exports.modules={82657:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(70110);function l(e,t){var r=e.append("foreignObject").attr("width","100000"),l=r.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var n=t.label;switch(typeof n){case"function":l.insert(n);break;case"object":l.insert(function(){return n});break;default:l.html(n)}a.bg(l,t.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var i=l.node().getBoundingClientRect();return r.attr("width",i.width).attr("height",i.height),r}},70110:(e,t,r)=>{r.d(t,{$p:()=>c,O1:()=>i,WR:()=>h,bF:()=>n,bg:()=>d});var a=r(56058),l=r(32620);function n(e,t){return!!e.children(t).length}function i(e){return s(e.v)+":"+s(e.w)+":"+s(e.name)}var o=/:/g;function s(e){return e?String(e).replace(o,"\\:"):""}function d(e,t){t&&e.attr("style",t)}function c(e,t,r){t&&e.attr("class",t).attr("class",r+" "+e.attr("class"))}function h(e,t){var r=t.graph();if(a.Z(r)){var n=r.transition;if(l.Z(n))return n(e)}return e}},59500:(e,t,r)=>{r.d(t,{diagram:()=>H});var a=r(3016),l=r(38601),n=r(3896),i=r(15537),o=r(54030),s=r(46260),d=r(41115),c=r(348),h=r(70110),p={normal:function(e,t,r,a){var l=e.append("marker").attr("id",t).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(l,r[a+"Style"]),r[a+"Class"]&&l.attr("class",r[a+"Class"])},vee:function(e,t,r,a){var l=e.append("marker").attr("id",t).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(l,r[a+"Style"]),r[a+"Class"]&&l.attr("class",r[a+"Class"])},undirected:function(e,t,r,a){var l=e.append("marker").attr("id",t).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(l,r[a+"Style"]),r[a+"Class"]&&l.attr("class",r[a+"Class"])}},u=r(82657);function g(e,t,r){var a,l=t.label,n=e.append("g");"svg"===t.labelType?(n.node().appendChild(t.label),h.bg(n,t.labelStyle)):"string"!=typeof l||"html"===t.labelType?(0,u.a)(n,t):function(e,t){for(var r=e.append("text"),a=(function(e){for(var t,r="",a=!1,l=0;l<e.length;++l)(t=e[l],a)?("n"===t?r+="\n":r+=t,a=!1):"\\"===t?a=!0:r+=t;return r})(t.label).split("\n"),l=0;l<a.length;l++)r.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[l]);return h.bg(r,t.labelStyle),r}(n,t);var i=n.node().getBBox();switch(r){case"top":a=-t.height/2;break;case"bottom":a=t.height/2-i.height;break;default:a=-i.height/2}return n.attr("transform","translate("+-i.width/2+","+a+")"),n}var f=function(e,t){var r=t.nodes().filter(function(e){return h.bF(t,e)}),a=e.selectAll("g.cluster").data(r,function(e){return e});h.WR(a.exit(),t).style("opacity",0).remove();var l=a.enter().append("g").attr("class","cluster").attr("id",function(e){return t.node(e).id}).style("opacity",0).each(function(e){var r=t.node(e),a=n.Ys(this);n.Ys(this).append("rect"),g(a.append("g").attr("class","label"),r,r.clusterLabelPos)});return a=a.merge(l),(a=h.WR(a,t).style("opacity",1)).selectAll("rect").each(function(e){var r=t.node(e),a=n.Ys(this);h.bg(a,r.style)}),a};let y=function(e,t){var r,a=e.selectAll("g.edgeLabel").data(t.edges(),function(e){return h.O1(e)}).classed("update",!0);return a.exit().remove(),a.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(a=e.selectAll("g.edgeLabel")).each(function(e){var r=n.Ys(this);r.select(".label").remove();var a=t.edge(e),l=g(r,t.edge(e),0).classed("label",!0),i=l.node().getBBox();a.labelId&&l.attr("id",a.labelId),o.Z(a,"width")||(a.width=i.width),o.Z(a,"height")||(a.height=
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
color: ${e.nodeTextColor||e.textColor};
|
||
|
|
}
|
||
|
|
.cluster-label text {
|
||
|
|
fill: ${e.titleColor};
|
||
|
|
}
|
||
|
|
.cluster-label span,p {
|
||
|
|
color: ${e.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.label text,span,p {
|
||
|
|
fill: ${e.nodeTextColor||e.textColor};
|
||
|
|
color: ${e.nodeTextColor||e.textColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.node rect,
|
||
|
|
.node circle,
|
||
|
|
.node ellipse,
|
||
|
|
.node polygon,
|
||
|
|
.node path {
|
||
|
|
fill: ${e.mainBkg};
|
||
|
|
stroke: ${e.nodeBorder};
|
||
|
|
stroke-width: 1px;
|
||
|
|
}
|
||
|
|
.flowchart-label text {
|
||
|
|
text-anchor: middle;
|
||
|
|
}
|
||
|
|
// .flowchart-label .text-outer-tspan {
|
||
|
|
// text-anchor: middle;
|
||
|
|
// }
|
||
|
|
// .flowchart-label .text-inner-tspan {
|
||
|
|
// text-anchor: start;
|
||
|
|
// }
|
||
|
|
|
||
|
|
.node .label {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.node.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.arrowheadPath {
|
||
|
|
fill: ${e.arrowheadColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.edgePath .path {
|
||
|
|
stroke: ${e.lineColor};
|
||
|
|
stroke-width: 2.0px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flowchart-link {
|
||
|
|
stroke: ${e.lineColor};
|
||
|
|
fill: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edgeLabel {
|
||
|
|
background-color: ${e.edgeLabelBackground};
|
||
|
|
rect {
|
||
|
|
opacity: 0.5;
|
||
|
|
background-color: ${e.edgeLabelBackground};
|
||
|
|
fill: ${e.edgeLabelBackground};
|
||
|
|
}
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* For html labels only */
|
||
|
|
.labelBkg {
|
||
|
|
background-color: ${b(e.edgeLabelBackground,.5)};
|
||
|
|
// background-color:
|
||
|
|
}
|
||
|
|
|
||
|
|
.cluster rect {
|
||
|
|
fill: ${e.clusterBkg};
|
||
|
|
stroke: ${e.clusterBorder};
|
||
|
|
stroke-width: 1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.cluster text {
|
||
|
|
fill: ${e.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.cluster span,p {
|
||
|
|
color: ${e.titleColor};
|
||
|
|
}
|
||
|
|
/* .cluster div {
|
||
|
|
color: ${e.titleColor};
|
||
|
|
} */
|
||
|
|
|
||
|
|
div.mermaidTooltip {
|
||
|
|
position: absolute;
|
||
|
|
text-align: center;
|
||
|
|
max-width: 200px;
|
||
|
|
padding: 2px;
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
font-size: 12px;
|
||
|
|
background: ${e.tertiaryColor};
|
||
|
|
border: 1px solid ${e.border2};
|
||
|
|
border-radius: 2px;
|
||
|
|
pointer-events: none;
|
||
|
|
z-index: 100;
|
||
|
|
}
|
||
|
|
|
||
|
|
.flowchartTitleText {
|
||
|
|
text-anchor: middle;
|
||
|
|
font-size: 18px;
|
||
|
|
fill: ${e.textColor};
|
||
|
|
}
|
||
|
|
`}};
|