2022-10-17 23:58:51 -03:00
> **Warning**
>
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
>
2022-10-29 00:46:25 +05:30
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/modules/defaultConfig.md](../../../../packages/mermaid/src/docs/config/setup/modules/defaultConfig.md).
2022-10-15 00:50:11 -03:00
# Module: defaultConfig
## Variables
2022-10-31 22:15:07 +05:30
### configKeys
2022-10-15 00:50:11 -03:00
• `Const` **configKeys** : `string` \[]
#### Defined in
2023-06-27 14:54:57 +00:00
[defaultConfig.ts:2300 ](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L2300 )
2022-10-15 00:50:11 -03:00
---
2022-10-31 22:15:07 +05:30
### default
2022-10-15 00:50:11 -03:00
• `Const` **default** : `Partial` < `MermaidConfig` >
**Configuration methods in Mermaid version 8.6.0 have been updated, to learn more\[[click
here](8.6.0_docs.md)].**
## **What follows are config instructions for older versions**
These are the default options which can be overridden with the initialization call like so:
**Example 1:**
```js
mermaid.initialize({ flowchart: { htmlLabels: false } });
```
**Example 2:**
2022-10-25 17:54:07 -03:00
```html
< script >
2022-10-27 19:58:39 -03:00
const config = {
2022-10-25 17:54:07 -03:00
startOnLoad: true,
flowchart: { useMaxWidth: true, htmlLabels: true, curve: 'cardinal' },
securityLevel: 'loose',
};
mermaid.initialize(config);
< / script >
2022-10-15 00:50:11 -03:00
```
A summary of all options and their defaults is found [here ](#mermaidapi-configuration-defaults ).
A description of each option follows below.
#### Defined in
2023-06-25 01:31:53 +03:00
[defaultConfig.ts:33 ](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L33 )