cullmann.io/themes/blowfish/assets/lib/mermaid/flowDiagram-v2-13329dc7.js

41 lines
1.1 KiB
JavaScript

import { p as parser, f as flowDb } from "./flowDb-c1833063.js";
import { f as flowRendererV2, a as flowStyles } from "./styles-483fbfea.js";
import { p as setConfig } from "./mermaid-6dc72991.js";
import "d3";
import "dagre-d3-es/src/graphlib/index.js";
import "./index-01f381cb.js";
import "dagre-d3-es/src/dagre/index.js";
import "dagre-d3-es/src/graphlib/json.js";
import "./edges-066a5561.js";
import "./createText-ca0c5216.js";
import "mdast-util-from-markdown";
import "ts-dedent";
import "dagre-d3-es/src/dagre-js/label/add-html-label.js";
import "khroma";
import "dayjs";
import "@braintree/sanitize-url";
import "dompurify";
import "lodash-es/memoize.js";
import "lodash-es/merge.js";
import "stylis";
import "lodash-es/isEmpty.js";
const diagram = {
parser,
db: flowDb,
renderer: flowRendererV2,
styles: flowStyles,
init: (cnf) => {
if (!cnf.flowchart) {
cnf.flowchart = {};
}
cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
setConfig({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
flowRendererV2.setConf(cnf.flowchart);
flowDb.clear();
flowDb.setGen("gen-2");
}
};
export {
diagram
};