All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.chunks.mermaid.esm.min.chunk-4H3WO55B.mjs Maven / Gradle / Ivy

Go to download

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

There is a newer version: 11.4.0
Show newest version
import{a as p,d as l,e as g,f as y,g as d,h as f,j as u}from"./chunk-FY225CTW.mjs";import{c as m}from"./chunk-INOGIEW4.mjs";import{A as a,L as s,b as i}from"./chunk-DMXVZUOD.mjs";import{a as e}from"./chunk-GTKDMUJJ.mjs";var L={common:s,getConfig:a,insertCluster:p,insertEdge:y,insertEdgeLabel:l,insertMarkers:d,insertNode:u,interpolateToCurve:m,labelHelper:f,log:i,positionEdgeLabel:g};var t={},h=e(r=>{for(let o of r)t[o.name]=o},"registerLayoutLoaders"),c=e(()=>{h([{name:"dagre",loader:e(async()=>await import("./dagre-BKJD22V2.mjs"),"loader")}])},"registerDefaultLayoutLoaders");c();var S=e(async(r,o)=>{if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let n=t[r.layoutAlgorithm];return(await n.loader()).render(r,o,L,{algorithm:n.algorithm})},"render"),V=e((r="",{fallback:o="dagre"}={})=>{if(r in t)return r;if(o in t)return i.warn(`Layout algorithm ${r} is not registered. Using ${o} as fallback.`),o;throw new Error(`Both layout algorithms ${r} and ${o} are not registered.`)},"getRegisteredLayoutAlgorithm");export{h as a,S as b,V as c};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy