UNPKG

953 BTypeScriptView Raw
1import { MermaidConfig } from './config.type.js';
2/**
3 * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click
4 * here](8.6.0_docs.md)].**
5 *
6 * ## **What follows are config instructions for older versions**
7 *
8 * These are the default options which can be overridden with the initialization call like so:
9 *
10 * **Example 1:**
11 *
12 * ```js
13 * mermaid.initialize({ flowchart:{ htmlLabels: false } });
14 * ```
15 *
16 * **Example 2:**
17 *
18 * ```html
19 * <script>
20 * const config = {
21 * startOnLoad:true,
22 * flowchart:{ useMaxWidth:true, htmlLabels:true, curve:'cardinal'},
23 * securityLevel:'loose',
24 * };
25 * mermaid.initialize(config);
26 * </script>
27 * ```
28 *
29 * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults).
30 * A description of each option follows below.
31 */
32declare const config: Partial<MermaidConfig>;
33export declare const configKeys: string[];
34export default config;