1 line
32 KiB
JavaScript
1 line
32 KiB
JavaScript
|
|
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7403],{81809:(t,e,r)=>{r.d(e,{H:()=>a});var n=r(62322);function a(t,e){var r=t.append("foreignObject").attr("width","100000");var a=r.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var o=e.label;switch(typeof o){case"function":a.insert(o);break;case"object":a.insert((function(){return o}));break;default:a.html(o)}n.AV(a,e.labelStyle);a.style("display","inline-block");a.style("white-space","nowrap");var i=a.node().getBoundingClientRect();r.attr("width",i.width).attr("height",i.height);return r}},62322:(t,e,r)=>{r.d(e,{AV:()=>c,De:()=>o,c$:()=>h,gh:()=>i,nh:()=>d});var n=r(78696);var a=r(58807);function o(t,e){return!!t.children(e).length}function i(t){return s(t.v)+":"+s(t.w)+":"+s(t.name)}var l=/:/g;function s(t){return t?String(t).replace(l,"\\:"):""}function c(t,e){if(e){t.attr("style",e)}}function d(t,e,r){if(e){t.attr("class",e).attr("class",r+" "+t.attr("class"))}}function h(t,e){var r=e.graph();if(n.A(r)){var o=r.transition;if(a.A(o)){return o(t)}}return t}},87403:(t,e,r)=>{r.d(e,{diagram:()=>Mt});var n=r(34050);var a=r(84416);var o=r(92935);var i=r(76235);var l=r(2850);var s=r(38693);var c=r(69769);var d=r(29);var h=r(62322);var u={normal:p,vee:g,undirected:v};function f(t){u=t}function p(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");var o=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");h.AV(o,r[n+"Style"]);if(r[n+"Class"]){o.attr("class",r[n+"Class"])}}function g(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");var o=a.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.AV(o,r[n+"Style"]);if(r[n+"Class"]){o.attr("class",r[n+"Class"])}}function v(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");var o=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");h.AV(o,r[n+"Style"]);if(r[n+"Class"]){o.attr("class",r[n+"Class"])}}var y=r(81809);function b(t,e){var r=t;r.node().appendChild(e.label);h.AV(r,e.labelStyle);return r}function w(t,e){var r=t.append("text");var n=x(e.label).split("\n");for(var a=0;a<n.length;a++){r.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a])}h.AV(r,e.labelStyle);return r}function x(t){var e="";var r=false;var n;for(var a=0;a<t.length;++a){n=t[a];if(r){switch(n){case"n":e+="\n";break;default:e+=n}r=false}else if(n==="\\"){r=true}else{e+=n}}return e}function k(t,e,r){var n=e.label;var a=t.append("g");if(e.labelType==="svg"){b(a,e)}else if(typeof n!=="string"||e.labelType==="html"){(0,y.H)(a,e)}else{w(a,e)}var o=a.node().getBBox();var i;switch(r){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-o.height;break;default:i=-o.height/2}a.attr("transform","translate("+-o.width/2+","+i+")");return a}var m=function(t,e){var r=e.nodes().filter((function(t){return h.De(e,t)}));var n=t.selectAll("g.cluster").data(r,(function(t){return t}));h.c$(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",(function(t){var r=e.node(t);return r.id})).style("opacity",0).each((function(t){var r=e.node(t);var n=o.Ltv(this);o.Ltv(this).append("rect");var a=n.append("g").attr("class","label");k(a,r,r.clusterLabelPos)}));n=n.merge(a);n=h.c$(n,e).style("opacity",1);n.selectAll("rect").each((function(t){var r=e.node(t);var n=o.Ltv(this);h.AV(n,r.style)}));return n};function A(t){m=t}let S=function(t,e){var r=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return
|