1 | import { p as parser, f as flowDb } from "./flowDb-c1833063.js";
|
2 | import { f as flowRendererV2, a as flowStyles } from "./styles-483fbfea.js";
|
3 | import { p as setConfig } from "./mermaid-6dc72991.js";
|
4 | import "d3";
|
5 | import "dagre-d3-es/src/graphlib/index.js";
|
6 | import "./index-01f381cb.js";
|
7 | import "dagre-d3-es/src/dagre/index.js";
|
8 | import "dagre-d3-es/src/graphlib/json.js";
|
9 | import "./edges-066a5561.js";
|
10 | import "./createText-ca0c5216.js";
|
11 | import "mdast-util-from-markdown";
|
12 | import "ts-dedent";
|
13 | import "dagre-d3-es/src/dagre-js/label/add-html-label.js";
|
14 | import "khroma";
|
15 | import "dayjs";
|
16 | import "@braintree/sanitize-url";
|
17 | import "dompurify";
|
18 | import "lodash-es/memoize.js";
|
19 | import "lodash-es/merge.js";
|
20 | import "stylis";
|
21 | import "lodash-es/isEmpty.js";
|
22 | const diagram = {
|
23 | parser,
|
24 | db: flowDb,
|
25 | renderer: flowRendererV2,
|
26 | styles: flowStyles,
|
27 | init: (cnf) => {
|
28 | if (!cnf.flowchart) {
|
29 | cnf.flowchart = {};
|
30 | }
|
31 | cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
32 | setConfig({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
|
33 | flowRendererV2.setConf(cnf.flowchart);
|
34 | flowDb.clear();
|
35 | flowDb.setGen("gen-2");
|
36 | }
|
37 | };
|
38 | export {
|
39 | diagram
|
40 | };
|