UNPKG

938 BJavaScriptView Raw
1import { p as parser, f as flowDb } from "./flowDb-ba9bd7fa.js";
2import { f as flowRendererV2, g as flowStyles } from "./styles-727cdd61.js";
3import { u as setConfig } from "./mermaid-dcacb631.js";
4import "./graph-fe24fab6.js";
5import "./index-fc479858.js";
6import "./layout-163b9689.js";
7import "./clone-9ea6bfeb.js";
8import "./edges-ce5cfb7c.js";
9import "./createText-b70fe78a.js";
10import "./line-87f517ef.js";
11import "./array-b7dcf730.js";
12import "./path-39bad7e2.js";
13import "./channel-f9001828.js";
14const diagram = {
15 parser,
16 db: flowDb,
17 renderer: flowRendererV2,
18 styles: flowStyles,
19 init: (cnf) => {
20 if (!cnf.flowchart) {
21 cnf.flowchart = {};
22 }
23 cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
24 setConfig({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
25 flowRendererV2.setConf(cnf.flowchart);
26 flowDb.clear();
27 flowDb.setGen("gen-2");
28 }
29};
30export {
31 diagram
32};