UNPKG

1.18 kBJavaScriptView Raw
1import { p as parser, f as flowDb } from "./flowDb-c1833063.js";
2import { f as flowRendererV2, a as flowStyles } from "./styles-483fbfea.js";
3import { p as setConfig } from "./mermaid-6dc72991.js";
4import "d3";
5import "dagre-d3-es/src/graphlib/index.js";
6import "./index-01f381cb.js";
7import "dagre-d3-es/src/dagre/index.js";
8import "dagre-d3-es/src/graphlib/json.js";
9import "./edges-066a5561.js";
10import "./createText-ca0c5216.js";
11import "mdast-util-from-markdown";
12import "ts-dedent";
13import "dagre-d3-es/src/dagre-js/label/add-html-label.js";
14import "khroma";
15import "dayjs";
16import "@braintree/sanitize-url";
17import "dompurify";
18import "lodash-es/memoize.js";
19import "lodash-es/merge.js";
20import "stylis";
21import "lodash-es/isEmpty.js";
22const 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};
38export {
39 diagram
40};