livebook/static/assets/chunk-WXHYUPIN.js
2024-11-21 10:56:42 +00:00

1 line
1.1 KiB
JavaScript

import{b as u,c as y,d as f,e as h}from"./chunk-BOD4ZWPQ.js";import{b as g,e as m,h as d}from"./chunk-24CS6DUF.js";import{c as l}from"./chunk-HFFTYNMA.js";import{D as n,N as s,h as o,j as a}from"./chunk-3QLLRM5L.js";var p={common:s,getConfig:n,insertCluster:m,insertEdge:f,insertEdgeLabel:u,insertMarkers:h,insertNode:d,interpolateToCurve:l,labelHelper:g,log:a,positionEdgeLabel:y},t={},L=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),w=o(()=>{L([{name:"dagre",loader:o(async()=>await import("./dagre-SWNTG5WE-OT2ACH3F.js"),"loader")}])},"registerDefaultLayoutLoaders");w();var R=o(async(r,e)=>{if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let i=t[r.layoutAlgorithm];return(await i.loader()).render(r,e,p,{algorithm:i.algorithm})},"render"),_=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return a.warn(`Layout algorithm ${r} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${r} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");export{L as a,R as b,_ as c};