mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 00:59:37 +02:00
chore: Update typedoc-plugin-markdown
This commit is contained in:
@@ -4,10 +4,14 @@
|
|||||||
>
|
>
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/README.md](../../../packages/mermaid/src/docs/config/setup/README.md).
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/README.md](../../../packages/mermaid/src/docs/config/setup/README.md).
|
||||||
|
|
||||||
|
**mermaid**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# mermaid
|
# mermaid
|
||||||
|
|
||||||
## Modules
|
## Modules
|
||||||
|
|
||||||
- [config](modules/config.md)
|
- [config](config/README.md)
|
||||||
- [defaultConfig](modules/defaultConfig.md)
|
- [defaultConfig](defaultConfig/README.md)
|
||||||
- [mermaid](modules/mermaid.md)
|
- [mermaid](mermaid/README.md)
|
||||||
|
@@ -1,171 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/classes/mermaid.UnknownDiagramError.md](../../../../packages/mermaid/src/docs/config/setup/classes/mermaid.UnknownDiagramError.md).
|
|
||||||
|
|
||||||
# Class: UnknownDiagramError
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).UnknownDiagramError
|
|
||||||
|
|
||||||
## Hierarchy
|
|
||||||
|
|
||||||
- `Error`
|
|
||||||
|
|
||||||
↳ **`UnknownDiagramError`**
|
|
||||||
|
|
||||||
## Constructors
|
|
||||||
|
|
||||||
### constructor
|
|
||||||
|
|
||||||
• **new UnknownDiagramError**(`message`): [`UnknownDiagramError`](mermaid.UnknownDiagramError.md)
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :-------- | :------- |
|
|
||||||
| `message` | `string` |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`UnknownDiagramError`](mermaid.UnknownDiagramError.md)
|
|
||||||
|
|
||||||
#### Overrides
|
|
||||||
|
|
||||||
Error.constructor
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/errors.ts:2](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/errors.ts#L2)
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### cause
|
|
||||||
|
|
||||||
• `Optional` **cause**: `unknown`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.cause
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/typescript\@5.4.5/node_modules/typescript/lib/lib.es2022.error.d.ts:24
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### message
|
|
||||||
|
|
||||||
• **message**: `string`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.message
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/typescript\@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1077
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### name
|
|
||||||
|
|
||||||
• **name**: `string`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.name
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/typescript\@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1076
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### stack
|
|
||||||
|
|
||||||
• `Optional` **stack**: `string`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.stack
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/typescript\@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1078
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### prepareStackTrace
|
|
||||||
|
|
||||||
▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`\[]) => `any`
|
|
||||||
|
|
||||||
Optional override for formatting stack traces
|
|
||||||
|
|
||||||
**`See`**
|
|
||||||
|
|
||||||
<https://v8.dev/docs/stack-trace-api#customizing-stack-traces>
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`err`, `stackTraces`): `any`
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :------------ | :------------ |
|
|
||||||
| `err` | `Error` |
|
|
||||||
| `stackTraces` | `CallSite`\[] |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`any`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.prepareStackTrace
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/@types+node\@20.16.11/node_modules/@types/node/globals.d.ts:98
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### stackTraceLimit
|
|
||||||
|
|
||||||
▪ `Static` **stackTraceLimit**: `number`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.stackTraceLimit
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/@types+node\@20.16.11/node_modules/@types/node/globals.d.ts:100
|
|
||||||
|
|
||||||
## Methods
|
|
||||||
|
|
||||||
### captureStackTrace
|
|
||||||
|
|
||||||
▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
||||||
|
|
||||||
Create .stack property on a target object
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :---------------- | :--------- |
|
|
||||||
| `targetObject` | `object` |
|
|
||||||
| `constructorOpt?` | `Function` |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Inherited from
|
|
||||||
|
|
||||||
Error.captureStackTrace
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
node_modules/.pnpm/@types+node\@20.16.11/node_modules/@types/node/globals.d.ts:91
|
|
28
docs/config/setup/config/README.md
Normal file
28
docs/config/setup/config/README.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/README.md](../../../../packages/mermaid/src/docs/config/setup/config/README.md).
|
||||||
|
|
||||||
|
[**mermaid**](../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# config
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
- [defaultConfig](variables/defaultConfig.md)
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
- [addDirective](functions/addDirective.md)
|
||||||
|
- [getConfig](functions/getConfig.md)
|
||||||
|
- [getSiteConfig](functions/getSiteConfig.md)
|
||||||
|
- [reset](functions/reset.md)
|
||||||
|
- [sanitize](functions/sanitize.md)
|
||||||
|
- [saveConfigFromInitialize](functions/saveConfigFromInitialize.md)
|
||||||
|
- [setConfig](functions/setConfig.md)
|
||||||
|
- [setSiteConfig](functions/setSiteConfig.md)
|
||||||
|
- [updateCurrentConfig](functions/updateCurrentConfig.md)
|
||||||
|
- [updateSiteConfig](functions/updateSiteConfig.md)
|
29
docs/config/setup/config/functions/addDirective.md
Normal file
29
docs/config/setup/config/functions/addDirective.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/addDirective.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/addDirective.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: addDirective()
|
||||||
|
|
||||||
|
> **addDirective**(`directive`): `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:188](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L188)
|
||||||
|
|
||||||
|
Pushes in a directive to the configuration
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### directive
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The directive to push in
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
`void`
|
29
docs/config/setup/config/functions/getConfig.md
Normal file
29
docs/config/setup/config/functions/getConfig.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/getConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/getConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: getConfig()
|
||||||
|
|
||||||
|
> **getConfig**(): [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:131](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L131)
|
||||||
|
|
||||||
|
## getConfig
|
||||||
|
|
||||||
|
| Function | Description | Type | Return Values |
|
||||||
|
| --------- | ------------------------- | ----------- | ------------------------------ |
|
||||||
|
| getConfig | Obtains the currentConfig | Get Request | Any Values from current Config |
|
||||||
|
|
||||||
|
**Notes**: Avoid calling this function repeatedly. Instead, store the result in a variable and use it, and pass it down to function calls.
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The currentConfig
|
29
docs/config/setup/config/functions/getSiteConfig.md
Normal file
29
docs/config/setup/config/functions/getSiteConfig.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/getSiteConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/getSiteConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: getSiteConfig()
|
||||||
|
|
||||||
|
> **getSiteConfig**(): [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:96](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L96)
|
||||||
|
|
||||||
|
## getSiteConfig
|
||||||
|
|
||||||
|
| Function | Description | Type | Values |
|
||||||
|
| ------------- | ------------------------------------------------- | ----------- | -------------------------------- |
|
||||||
|
| setSiteConfig | Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig |
|
||||||
|
|
||||||
|
**Notes**: Returns **any** values in siteConfig.
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The siteConfig
|
42
docs/config/setup/config/functions/reset.md
Normal file
42
docs/config/setup/config/functions/reset.md
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/reset.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/reset.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: reset()
|
||||||
|
|
||||||
|
> **reset**(`config`): `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:221](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L221)
|
||||||
|
|
||||||
|
## reset
|
||||||
|
|
||||||
|
| Function | Description | Type | Required | Values |
|
||||||
|
| -------- | ---------------------------- | ----------- | -------- | ------ |
|
||||||
|
| reset | Resets currentConfig to conf | Put Request | Required | None |
|
||||||
|
|
||||||
|
## conf
|
||||||
|
|
||||||
|
| Parameter | Description | Type | Required | Values |
|
||||||
|
| --------- | -------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- |
|
||||||
|
| conf | base set of values, which currentConfig could be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array |
|
||||||
|
|
||||||
|
**Notes**: (default: current siteConfig ) (optional, default `getSiteConfig()`)
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### config
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md) = `siteConfig`
|
||||||
|
|
||||||
|
base set of values, which currentConfig could be **reset** to.
|
||||||
|
Defaults to the current siteConfig (e.g returned by [getSiteConfig](getSiteConfig.md)).
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
`void`
|
36
docs/config/setup/config/functions/sanitize.md
Normal file
36
docs/config/setup/config/functions/sanitize.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/sanitize.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/sanitize.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: sanitize()
|
||||||
|
|
||||||
|
> **sanitize**(`options`): `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:146](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L146)
|
||||||
|
|
||||||
|
## sanitize
|
||||||
|
|
||||||
|
| Function | Description | Type | Values |
|
||||||
|
| -------- | -------------------------------------- | ----------- | ------ |
|
||||||
|
| sanitize | Sets the siteConfig to desired values. | Put Request | None |
|
||||||
|
|
||||||
|
Ensures options parameter does not attempt to override siteConfig secure keys **Notes**: modifies
|
||||||
|
options in-place
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### options
|
||||||
|
|
||||||
|
`any`
|
||||||
|
|
||||||
|
The potential setConfig parameter
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
`void`
|
@@ -0,0 +1,25 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/saveConfigFromInitialize.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/saveConfigFromInitialize.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: saveConfigFromInitialize()
|
||||||
|
|
||||||
|
> **saveConfigFromInitialize**(`conf`): `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:75](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L75)
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### conf
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
`void`
|
39
docs/config/setup/config/functions/setConfig.md
Normal file
39
docs/config/setup/config/functions/setConfig.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/setConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/setConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: setConfig()
|
||||||
|
|
||||||
|
> **setConfig**(`conf`): [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:113](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L113)
|
||||||
|
|
||||||
|
## setConfig
|
||||||
|
|
||||||
|
| Function | Description | Type | Values |
|
||||||
|
| ------------- | ------------------------------------- | ----------- | --------------------------------------- |
|
||||||
|
| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
|
||||||
|
|
||||||
|
**Notes**: Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure
|
||||||
|
keys. Any values found in conf with key found in siteConfig.secure will be replaced with the
|
||||||
|
corresponding siteConfig value.
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### conf
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The potential currentConfig
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The currentConfig merged with the sanitized conf
|
40
docs/config/setup/config/functions/setSiteConfig.md
Normal file
40
docs/config/setup/config/functions/setSiteConfig.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/setSiteConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/setSiteConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: setSiteConfig()
|
||||||
|
|
||||||
|
> **setSiteConfig**(`conf`): [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:61](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L61)
|
||||||
|
|
||||||
|
## setSiteConfig
|
||||||
|
|
||||||
|
| Function | Description | Type | Values |
|
||||||
|
| ------------- | ------------------------------------- | ----------- | --------------------------------------- |
|
||||||
|
| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
|
||||||
|
|
||||||
|
**Notes:** Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls
|
||||||
|
to reset() will reset the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig)
|
||||||
|
will reset siteConfig and currentConfig to the defaultConfig Note: currentConfig is set in this
|
||||||
|
function _Default value: At default, will mirror Global Config_
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### conf
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The base currentConfig to use as siteConfig
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
The new siteConfig
|
29
docs/config/setup/config/functions/updateCurrentConfig.md
Normal file
29
docs/config/setup/config/functions/updateCurrentConfig.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/updateCurrentConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/updateCurrentConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: updateCurrentConfig()
|
||||||
|
|
||||||
|
> **updateCurrentConfig**(`siteCfg`, `_directives`): [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:15](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L15)
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### siteCfg
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
### \_directives
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)\[]
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
25
docs/config/setup/config/functions/updateSiteConfig.md
Normal file
25
docs/config/setup/config/functions/updateSiteConfig.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/updateSiteConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/updateSiteConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Function: updateSiteConfig()
|
||||||
|
|
||||||
|
> **updateSiteConfig**(`conf`): [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:79](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L79)
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### conf
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
15
docs/config/setup/config/variables/defaultConfig.md
Normal file
15
docs/config/setup/config/variables/defaultConfig.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/variables/defaultConfig.md](../../../../../packages/mermaid/src/docs/config/setup/config/variables/defaultConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Variable: defaultConfig
|
||||||
|
|
||||||
|
> `const` **defaultConfig**: [`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.ts:8](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L8)
|
16
docs/config/setup/defaultConfig/README.md
Normal file
16
docs/config/setup/defaultConfig/README.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/defaultConfig/README.md](../../../../packages/mermaid/src/docs/config/setup/defaultConfig/README.md).
|
||||||
|
|
||||||
|
[**mermaid**](../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# defaultConfig
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
- [configKeys](variables/configKeys.md)
|
||||||
|
- [default](variables/default.md)
|
15
docs/config/setup/defaultConfig/variables/configKeys.md
Normal file
15
docs/config/setup/defaultConfig/variables/configKeys.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/defaultConfig/variables/configKeys.md](../../../../../packages/mermaid/src/docs/config/setup/defaultConfig/variables/configKeys.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Variable: configKeys
|
||||||
|
|
||||||
|
> `const` **configKeys**: `Set`<`string`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/defaultConfig.ts:270](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L270)
|
21
docs/config/setup/defaultConfig/variables/default.md
Normal file
21
docs/config/setup/defaultConfig/variables/default.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/defaultConfig/variables/default.md](../../../../../packages/mermaid/src/docs/config/setup/defaultConfig/variables/default.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Variable: default
|
||||||
|
|
||||||
|
> `const` **default**: `RequiredDeep`<[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md)>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/defaultConfig.ts:18](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L18)
|
||||||
|
|
||||||
|
Default mermaid configuration options.
|
||||||
|
|
||||||
|
Please see the Mermaid config JSON Schema for the default JSON values.
|
||||||
|
Non-JSON JS default values are listed in this file, e.g. functions, or
|
||||||
|
`undefined` (explicitly set so that `configKeys` finds them).
|
@@ -1,49 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.DetailedError.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.DetailedError.md).
|
|
||||||
|
|
||||||
# Interface: DetailedError
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).DetailedError
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### error
|
|
||||||
|
|
||||||
• `Optional` **error**: `any`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/utils.ts:785](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L785)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### hash
|
|
||||||
|
|
||||||
• **hash**: `any`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/utils.ts:783](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L783)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### message
|
|
||||||
|
|
||||||
• `Optional` **message**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/utils.ts:786](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L786)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### str
|
|
||||||
|
|
||||||
• **str**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/utils.ts:781](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L781)
|
|
@@ -1,39 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.ExternalDiagramDefinition.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.ExternalDiagramDefinition.md).
|
|
||||||
|
|
||||||
# Interface: ExternalDiagramDefinition
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).ExternalDiagramDefinition
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### detector
|
|
||||||
|
|
||||||
• **detector**: `DiagramDetector`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/diagram-api/types.ts:101](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L101)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### id
|
|
||||||
|
|
||||||
• **id**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/diagram-api/types.ts:100](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L100)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### loader
|
|
||||||
|
|
||||||
• **loader**: `DiagramLoader`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/diagram-api/types.ts:102](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L102)
|
|
@@ -1,43 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.LayoutData.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.LayoutData.md).
|
|
||||||
|
|
||||||
# Interface: LayoutData
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).LayoutData
|
|
||||||
|
|
||||||
## Indexable
|
|
||||||
|
|
||||||
▪ \[key: `string`]: `any`
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### config
|
|
||||||
|
|
||||||
• **config**: [`MermaidConfig`](mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/types.ts:148](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L148)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### edges
|
|
||||||
|
|
||||||
• **edges**: `Edge`\[]
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/types.ts:147](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L147)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### nodes
|
|
||||||
|
|
||||||
• **nodes**: `Node`\[]
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/types.ts:146](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L146)
|
|
@@ -1,39 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.LayoutLoaderDefinition.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.LayoutLoaderDefinition.md).
|
|
||||||
|
|
||||||
# Interface: LayoutLoaderDefinition
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).LayoutLoaderDefinition
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### algorithm
|
|
||||||
|
|
||||||
• `Optional` **algorithm**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/render.ts:24](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L24)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### loader
|
|
||||||
|
|
||||||
• **loader**: `LayoutLoader`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/render.ts:23](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L23)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### name
|
|
||||||
|
|
||||||
• **name**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/render.ts:22](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L22)
|
|
@@ -1,388 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.Mermaid.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.Mermaid.md).
|
|
||||||
|
|
||||||
# Interface: Mermaid
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).Mermaid
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### contentLoaded
|
|
||||||
|
|
||||||
• **contentLoaded**: () => `void`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (): `void`
|
|
||||||
|
|
||||||
\##contentLoaded Callback function that is called when page is loaded. This functions fetches
|
|
||||||
configuration for mermaid rendering and calls init for rendering the mermaid diagrams on the
|
|
||||||
page.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:436](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L436)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### detectType
|
|
||||||
|
|
||||||
• **detectType**: (`text`: `string`, `config?`: [`MermaidConfig`](mermaid.MermaidConfig.md)) => `string`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`text`, `config?`): `string`
|
|
||||||
|
|
||||||
Detects the type of the graph text.
|
|
||||||
|
|
||||||
Takes into consideration the possible existence of an `%%init` directive
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :-------- | :------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `text` | `string` | The text defining the graph. For example: `mermaid %%{initialize: {"startOnLoad": true, logLevel: "fatal" }}%% graph LR a-->b b-->c c-->d d-->e e-->f f-->g g-->h ` |
|
|
||||||
| `config?` | [`MermaidConfig`](mermaid.MermaidConfig.md) | The mermaid config. |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`string`
|
|
||||||
|
|
||||||
A graph definition key
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:438](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L438)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### init
|
|
||||||
|
|
||||||
• **init**: (`config?`: [`MermaidConfig`](mermaid.MermaidConfig.md), `nodes?`: `string` | `HTMLElement` | `NodeListOf`<`HTMLElement`>, `callback?`: (`id`: `string`) => `unknown`) => `Promise`<`void`>
|
|
||||||
|
|
||||||
**`Deprecated`**
|
|
||||||
|
|
||||||
Use [initialize](mermaid.Mermaid.md#initialize) and [run](mermaid.Mermaid.md#run) instead.
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`config?`, `nodes?`, `callback?`): `Promise`<`void`>
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :---------- | :------------------------------------------------------- |
|
|
||||||
| `config?` | [`MermaidConfig`](mermaid.MermaidConfig.md) |
|
|
||||||
| `nodes?` | `string` \| `HTMLElement` \| `NodeListOf`<`HTMLElement`> |
|
|
||||||
| `callback?` | (`id`: `string`) => `unknown` |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`Promise`<`void`>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:431](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L431)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### initialize
|
|
||||||
|
|
||||||
• **initialize**: (`config`: [`MermaidConfig`](mermaid.MermaidConfig.md)) => `void`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`config`): `void`
|
|
||||||
|
|
||||||
Used to set configurations for mermaid.
|
|
||||||
This function should be called before the run function.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :------- | :------------------------------------------ | :-------------------------------- |
|
|
||||||
| `config` | [`MermaidConfig`](mermaid.MermaidConfig.md) | Configuration object for mermaid. |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:435](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L435)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### mermaidAPI
|
|
||||||
|
|
||||||
• **mermaidAPI**: `Readonly`<{ `defaultConfig`: [`MermaidConfig`](mermaid.MermaidConfig.md) = configApi.defaultConfig; `getConfig`: () => [`MermaidConfig`](mermaid.MermaidConfig.md) = configApi.getConfig; `getDiagramFromText`: (`text`: `string`, `metadata`: `Pick`<`DiagramMetadata`, `"title"`>) => `Promise`<`Diagram`> ; `getSiteConfig`: () => [`MermaidConfig`](mermaid.MermaidConfig.md) = configApi.getSiteConfig; `globalReset`: () => `void` ; `initialize`: (`userOptions`: [`MermaidConfig`](mermaid.MermaidConfig.md)) => `void` ; `parse`: (`text`: `string`, `parseOptions`: [`ParseOptions`](mermaid.ParseOptions.md) & { `suppressErrors`: `true` }) => `Promise`<[`ParseResult`](mermaid.ParseResult.md) | `false`>(`text`: `string`, `parseOptions?`: [`ParseOptions`](mermaid.ParseOptions.md)) => `Promise`<[`ParseResult`](mermaid.ParseResult.md)> ; `render`: (`id`: `string`, `text`: `string`, `svgContainingElement?`: `Element`) => `Promise`<[`RenderResult`](mermaid.RenderResult.md)> ; `reset`: () => `void` ; `setConfig`: (`conf`: [`MermaidConfig`](mermaid.MermaidConfig.md)) => [`MermaidConfig`](mermaid.MermaidConfig.md) = configApi.setConfig; `updateSiteConfig`: (`conf`: [`MermaidConfig`](mermaid.MermaidConfig.md)) => [`MermaidConfig`](mermaid.MermaidConfig.md) = configApi.updateSiteConfig }>
|
|
||||||
|
|
||||||
**`Deprecated`**
|
|
||||||
|
|
||||||
Use [parse](mermaid.Mermaid.md#parse) and [render](mermaid.Mermaid.md#render) instead. Please [open a discussion](https://github.com/mermaid-js/mermaid/discussions) if your use case does not fit the new API.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:425](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L425)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### parse
|
|
||||||
|
|
||||||
• **parse**: (`text`: `string`, `parseOptions`: [`ParseOptions`](mermaid.ParseOptions.md) & { `suppressErrors`: `true` }) => `Promise`<[`ParseResult`](mermaid.ParseResult.md) | `false`>(`text`: `string`, `parseOptions?`: [`ParseOptions`](mermaid.ParseOptions.md)) => `Promise`<[`ParseResult`](mermaid.ParseResult.md)>
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`text`, `parseOptions`): `Promise`<[`ParseResult`](mermaid.ParseResult.md) | `false`>
|
|
||||||
|
|
||||||
Parse the text and validate the syntax.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :------------- | :----------------------------------------------------------------------- | :------------------------------ |
|
|
||||||
| `text` | `string` | The mermaid diagram definition. |
|
|
||||||
| `parseOptions` | [`ParseOptions`](mermaid.ParseOptions.md) & { `suppressErrors`: `true` } | Options for parsing. |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`Promise`<[`ParseResult`](mermaid.ParseResult.md) | `false`>
|
|
||||||
|
|
||||||
An object with the `diagramType` set to type of the diagram if valid. Otherwise `false` if parseOptions.suppressErrors is `true`.
|
|
||||||
|
|
||||||
**`See`**
|
|
||||||
|
|
||||||
[ParseOptions](mermaid.ParseOptions.md)
|
|
||||||
|
|
||||||
**`Throws`**
|
|
||||||
|
|
||||||
Error if the diagram is invalid and parseOptions.suppressErrors is false or not set.
|
|
||||||
|
|
||||||
▸ (`text`, `parseOptions?`): `Promise`<[`ParseResult`](mermaid.ParseResult.md)>
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :-------------- | :---------------------------------------- |
|
|
||||||
| `text` | `string` |
|
|
||||||
| `parseOptions?` | [`ParseOptions`](mermaid.ParseOptions.md) |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`Promise`<[`ParseResult`](mermaid.ParseResult.md)>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:426](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L426)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### parseError
|
|
||||||
|
|
||||||
• `Optional` **parseError**: [`ParseErrorFunction`](../modules/mermaid.md#parseerrorfunction)
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:420](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L420)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### registerExternalDiagrams
|
|
||||||
|
|
||||||
• **registerExternalDiagrams**: (`diagrams`: [`ExternalDiagramDefinition`](mermaid.ExternalDiagramDefinition.md)\[], `opts`: { `lazyLoad?`: `boolean` = true }) => `Promise`<`void`>
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`diagrams`, `opts?`): `Promise`<`void`>
|
|
||||||
|
|
||||||
Used to register external diagram types.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Default value | Description |
|
|
||||||
| :--------------- | :--------------------------------------------------------------------- | :------------ | :-------------------------------------------------------------------------- |
|
|
||||||
| `diagrams` | [`ExternalDiagramDefinition`](mermaid.ExternalDiagramDefinition.md)\[] | `undefined` | Array of [ExternalDiagramDefinition](mermaid.ExternalDiagramDefinition.md). |
|
|
||||||
| `opts` | `Object` | `{}` | If opts.lazyLoad is false, the diagrams will be loaded immediately. |
|
|
||||||
| `opts.lazyLoad?` | `boolean` | `true` | - |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`Promise`<`void`>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:434](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L434)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### registerIconPacks
|
|
||||||
|
|
||||||
• **registerIconPacks**: (`iconLoaders`: `IconLoader`\[]) => `void`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`iconLoaders`): `void`
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :------------ | :-------------- |
|
|
||||||
| `iconLoaders` | `IconLoader`\[] |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:439](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L439)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### registerLayoutLoaders
|
|
||||||
|
|
||||||
• **registerLayoutLoaders**: (`loaders`: [`LayoutLoaderDefinition`](mermaid.LayoutLoaderDefinition.md)\[]) => `void`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`loaders`): `void`
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :-------- | :--------------------------------------------------------------- |
|
|
||||||
| `loaders` | [`LayoutLoaderDefinition`](mermaid.LayoutLoaderDefinition.md)\[] |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:433](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L433)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### render
|
|
||||||
|
|
||||||
• **render**: (`id`: `string`, `text`: `string`, `svgContainingElement?`: `Element`) => `Promise`<[`RenderResult`](mermaid.RenderResult.md)>
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`id`, `text`, `svgContainingElement?`): `Promise`<[`RenderResult`](mermaid.RenderResult.md)>
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :---------------------- | :-------- |
|
|
||||||
| `id` | `string` |
|
|
||||||
| `text` | `string` |
|
|
||||||
| `svgContainingElement?` | `Element` |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`Promise`<[`RenderResult`](mermaid.RenderResult.md)>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:427](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L427)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### run
|
|
||||||
|
|
||||||
• **run**: (`options`: [`RunOptions`](mermaid.RunOptions.md)) => `Promise`<`void`>
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`options?`): `Promise`<`void`>
|
|
||||||
|
|
||||||
## run
|
|
||||||
|
|
||||||
Function that goes through the document to find the chart definitions in there and render them.
|
|
||||||
|
|
||||||
The function tags the processed attributes with the attribute data-processed and ignores found
|
|
||||||
elements with the attribute already set. This way the init function can be triggered several
|
|
||||||
times.
|
|
||||||
|
|
||||||
```mermaid-example
|
|
||||||
graph LR;
|
|
||||||
a(Find elements)-->b{Processed}
|
|
||||||
b-->|Yes|c(Leave element)
|
|
||||||
b-->|No |d(Transform)
|
|
||||||
```
|
|
||||||
|
|
||||||
```mermaid
|
|
||||||
graph LR;
|
|
||||||
a(Find elements)-->b{Processed}
|
|
||||||
b-->|Yes|c(Leave element)
|
|
||||||
b-->|No |d(Transform)
|
|
||||||
```
|
|
||||||
|
|
||||||
Renders the mermaid diagrams
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :-------- | :------------------------------------ | :----------------------- |
|
|
||||||
| `options` | [`RunOptions`](mermaid.RunOptions.md) | Optional runtime configs |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`Promise`<`void`>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:432](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L432)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### setParseErrorHandler
|
|
||||||
|
|
||||||
• **setParseErrorHandler**: (`parseErrorHandler`: (`err`: `any`, `hash`: `any`) => `void`) => `void`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`parseErrorHandler`): `void`
|
|
||||||
|
|
||||||
## setParseErrorHandler Alternative to directly setting parseError using:
|
|
||||||
|
|
||||||
```js
|
|
||||||
mermaid.parseError = function (err, hash) {
|
|
||||||
forExampleDisplayErrorInGui(err); // do something with the error
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
This is provided for environments where the mermaid object can't directly have a new member added
|
|
||||||
to it (eg. dart interop wrapper). (Initially there is no parseError member of mermaid).
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :------------------ | :-------------------------------------- | :------------------------- |
|
|
||||||
| `parseErrorHandler` | (`err`: `any`, `hash`: `any`) => `void` | New parseError() callback. |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:437](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L437)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### startOnLoad
|
|
||||||
|
|
||||||
• **startOnLoad**: `boolean`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:419](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L419)
|
|
@@ -1,541 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.MermaidConfig.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.MermaidConfig.md).
|
|
||||||
|
|
||||||
# Interface: MermaidConfig
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).MermaidConfig
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### altFontFamily
|
|
||||||
|
|
||||||
• `Optional` **altFontFamily**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:122](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L122)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### architecture
|
|
||||||
|
|
||||||
• `Optional` **architecture**: `ArchitectureDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:194](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L194)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### arrowMarkerAbsolute
|
|
||||||
|
|
||||||
• `Optional` **arrowMarkerAbsolute**: `boolean`
|
|
||||||
|
|
||||||
Controls whether or arrow markers in html code are absolute paths or anchors.
|
|
||||||
This matters if you are using base tag settings.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:141](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L141)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### block
|
|
||||||
|
|
||||||
• `Optional` **block**: `BlockDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:201](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L201)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### c4
|
|
||||||
|
|
||||||
• `Optional` **c4**: `C4DiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:198](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L198)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### class
|
|
||||||
|
|
||||||
• `Optional` **class**: `ClassDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:187](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L187)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### darkMode
|
|
||||||
|
|
||||||
• `Optional` **darkMode**: `boolean`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:113](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L113)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### deterministicIDSeed
|
|
||||||
|
|
||||||
• `Optional` **deterministicIDSeed**: `string`
|
|
||||||
|
|
||||||
This option is the optional seed for deterministic ids.
|
|
||||||
If set to `undefined` but deterministicIds is `true`, a simple number iterator is used.
|
|
||||||
You can set this attribute to base the seed on a static string.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:181](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L181)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### deterministicIds
|
|
||||||
|
|
||||||
• `Optional` **deterministicIds**: `boolean`
|
|
||||||
|
|
||||||
This option controls if the generated ids of nodes in the SVG are
|
|
||||||
generated randomly or based on a seed.
|
|
||||||
If set to `false`, the IDs are generated based on the current date and
|
|
||||||
thus are not deterministic. This is the default behavior.
|
|
||||||
|
|
||||||
This matters if your files are checked into source control e.g. git and
|
|
||||||
should not change unless content is changed.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:174](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L174)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### dompurifyConfig
|
|
||||||
|
|
||||||
• `Optional` **dompurifyConfig**: `Config`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:202](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L202)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### elk
|
|
||||||
|
|
||||||
• `Optional` **elk**: `Object`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :----------------------- | :-------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `cycleBreakingStrategy?` | `"GREEDY"` \| `"DEPTH_FIRST"` \| `"INTERACTIVE"` \| `"MODEL_ORDER"` \| `"GREEDY_MODEL_ORDER"` | This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops. |
|
|
||||||
| `mergeEdges?` | `boolean` | Elk specific option that allows edges to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram. |
|
|
||||||
| `nodePlacementStrategy?` | `"SIMPLE"` \| `"NETWORK_SIMPLEX"` \| `"LINEAR_SEGMENTS"` \| `"BRANDES_KOEPF"` | Elk specific option affecting how nodes are placed. |
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:91](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L91)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### er
|
|
||||||
|
|
||||||
• `Optional` **er**: `ErDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:189](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L189)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### flowchart
|
|
||||||
|
|
||||||
• `Optional` **flowchart**: `FlowchartDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:182](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L182)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### fontFamily
|
|
||||||
|
|
||||||
• `Optional` **fontFamily**: `string`
|
|
||||||
|
|
||||||
Specifies the font to be used in the rendered diagrams.
|
|
||||||
Can be any possible CSS `font-family`.
|
|
||||||
See <https://developer.mozilla.org/en-US/docs/Web/CSS/font-family>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:121](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L121)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### fontSize
|
|
||||||
|
|
||||||
• `Optional` **fontSize**: `number`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:204](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L204)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### forceLegacyMathML
|
|
||||||
|
|
||||||
• `Optional` **forceLegacyMathML**: `boolean`
|
|
||||||
|
|
||||||
This option forces Mermaid to rely on KaTeX's own stylesheet for rendering MathML. Due to differences between OS
|
|
||||||
fonts and browser's MathML implementation, this option is recommended if consistent rendering is important.
|
|
||||||
If set to true, ignores legacyMathML.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:163](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L163)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### gantt
|
|
||||||
|
|
||||||
• `Optional` **gantt**: `GanttDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:184](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L184)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### gitGraph
|
|
||||||
|
|
||||||
• `Optional` **gitGraph**: `GitGraphDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:197](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L197)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### handDrawnSeed
|
|
||||||
|
|
||||||
• `Optional` **handDrawnSeed**: `number`
|
|
||||||
|
|
||||||
Defines the seed to be used when using handDrawn look. This is important for the automated tests as they will always find differences without the seed. The default value is 0 which gives a random seed.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:76](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L76)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### htmlLabels
|
|
||||||
|
|
||||||
• `Optional` **htmlLabels**: `boolean`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:114](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L114)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### journey
|
|
||||||
|
|
||||||
• `Optional` **journey**: `JourneyDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:185](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L185)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### kanban
|
|
||||||
|
|
||||||
• `Optional` **kanban**: `KanbanDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:196](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L196)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### layout
|
|
||||||
|
|
||||||
• `Optional` **layout**: `string`
|
|
||||||
|
|
||||||
Defines which layout algorithm to use for rendering the diagram.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:81](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L81)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### legacyMathML
|
|
||||||
|
|
||||||
• `Optional` **legacyMathML**: `boolean`
|
|
||||||
|
|
||||||
This option specifies if Mermaid can expect the dependent to include KaTeX stylesheets for browsers
|
|
||||||
without their own MathML implementation. If this option is disabled and MathML is not supported, the math
|
|
||||||
equations are replaced with a warning. If this option is enabled and MathML is not supported, Mermaid will
|
|
||||||
fall back to legacy rendering for KaTeX.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:156](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L156)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### logLevel
|
|
||||||
|
|
||||||
• `Optional` **logLevel**: `0` | `2` | `1` | `"trace"` | `"debug"` | `"info"` | `"warn"` | `"error"` | `"fatal"` | `3` | `4` | `5`
|
|
||||||
|
|
||||||
This option decides the amount of logging to be used by mermaid.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:127](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L127)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### look
|
|
||||||
|
|
||||||
• `Optional` **look**: `"classic"` | `"handDrawn"`
|
|
||||||
|
|
||||||
Defines which main look to use for the diagram.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:71](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L71)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### markdownAutoWrap
|
|
||||||
|
|
||||||
• `Optional` **markdownAutoWrap**: `boolean`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:205](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L205)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### maxEdges
|
|
||||||
|
|
||||||
• `Optional` **maxEdges**: `number`
|
|
||||||
|
|
||||||
Defines the maximum number of edges that can be drawn in a graph.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:90](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L90)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### maxTextSize
|
|
||||||
|
|
||||||
• `Optional` **maxTextSize**: `number`
|
|
||||||
|
|
||||||
The maximum allowed size of the users text diagram
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:85](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L85)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### mindmap
|
|
||||||
|
|
||||||
• `Optional` **mindmap**: `MindmapDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:195](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L195)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### packet
|
|
||||||
|
|
||||||
• `Optional` **packet**: `PacketDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:200](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L200)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### pie
|
|
||||||
|
|
||||||
• `Optional` **pie**: `PieDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:190](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L190)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### quadrantChart
|
|
||||||
|
|
||||||
• `Optional` **quadrantChart**: `QuadrantChartConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:191](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L191)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### requirement
|
|
||||||
|
|
||||||
• `Optional` **requirement**: `RequirementDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:193](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L193)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### sankey
|
|
||||||
|
|
||||||
• `Optional` **sankey**: `SankeyDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:199](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L199)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### secure
|
|
||||||
|
|
||||||
• `Optional` **secure**: `string`\[]
|
|
||||||
|
|
||||||
This option controls which `currentConfig` keys are considered secure and
|
|
||||||
can only be changed via call to `mermaid.initialize`.
|
|
||||||
This prevents malicious graph directives from overriding a site's default security.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:148](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L148)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### securityLevel
|
|
||||||
|
|
||||||
• `Optional` **securityLevel**: `"strict"` | `"loose"` | `"antiscript"` | `"sandbox"`
|
|
||||||
|
|
||||||
Level of trust for parsed diagram
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:131](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L131)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### sequence
|
|
||||||
|
|
||||||
• `Optional` **sequence**: `SequenceDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:183](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L183)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### startOnLoad
|
|
||||||
|
|
||||||
• `Optional` **startOnLoad**: `boolean`
|
|
||||||
|
|
||||||
Dictates whether mermaid starts on Page load
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:135](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L135)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### state
|
|
||||||
|
|
||||||
• `Optional` **state**: `StateDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:188](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L188)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### suppressErrorRendering
|
|
||||||
|
|
||||||
• `Optional` **suppressErrorRendering**: `boolean`
|
|
||||||
|
|
||||||
Suppresses inserting 'Syntax error' diagram in the DOM.
|
|
||||||
This is useful when you want to control how to handle syntax errors in your application.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:211](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L211)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### theme
|
|
||||||
|
|
||||||
• `Optional` **theme**: `"default"` | `"base"` | `"dark"` | `"forest"` | `"neutral"` | `"null"`
|
|
||||||
|
|
||||||
Theme, the CSS style sheet.
|
|
||||||
You may also use `themeCSS` to override this value.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:64](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L64)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### themeCSS
|
|
||||||
|
|
||||||
• `Optional` **themeCSS**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:66](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L66)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### themeVariables
|
|
||||||
|
|
||||||
• `Optional` **themeVariables**: `any`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:65](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L65)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### timeline
|
|
||||||
|
|
||||||
• `Optional` **timeline**: `TimelineDiagramConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:186](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L186)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### wrap
|
|
||||||
|
|
||||||
• `Optional` **wrap**: `boolean`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:203](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L203)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### xyChart
|
|
||||||
|
|
||||||
• `Optional` **xyChart**: `XYChartConfig`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.type.ts:192](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L192)
|
|
@@ -1,22 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.ParseOptions.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.ParseOptions.md).
|
|
||||||
|
|
||||||
# Interface: ParseOptions
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).ParseOptions
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### suppressErrors
|
|
||||||
|
|
||||||
• `Optional` **suppressErrors**: `boolean`
|
|
||||||
|
|
||||||
If `true`, parse will return `false` instead of throwing error when the diagram is invalid.
|
|
||||||
The `parseError` function will not be called.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/types.ts:64](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L64)
|
|
@@ -1,33 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.ParseResult.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.ParseResult.md).
|
|
||||||
|
|
||||||
# Interface: ParseResult
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).ParseResult
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### config
|
|
||||||
|
|
||||||
• **config**: [`MermaidConfig`](mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
The config passed as YAML frontmatter or directives
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/types.ts:75](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L75)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### diagramType
|
|
||||||
|
|
||||||
• **diagramType**: `string`
|
|
||||||
|
|
||||||
The diagram type, e.g. 'flowchart', 'sequence', etc.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/types.ts:71](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L71)
|
|
@@ -1,19 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.RenderOptions.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.RenderOptions.md).
|
|
||||||
|
|
||||||
# Interface: RenderOptions
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).RenderOptions
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### algorithm
|
|
||||||
|
|
||||||
• `Optional` **algorithm**: `string`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/rendering-util/render.ts:8](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L8)
|
|
@@ -1,66 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.RenderResult.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.RenderResult.md).
|
|
||||||
|
|
||||||
# Interface: RenderResult
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).RenderResult
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### bindFunctions
|
|
||||||
|
|
||||||
• `Optional` **bindFunctions**: (`element`: `Element`) => `void`
|
|
||||||
|
|
||||||
Bind function to be called after the svg has been inserted into the DOM.
|
|
||||||
This is necessary for adding event listeners to the elements in the svg.
|
|
||||||
|
|
||||||
```js
|
|
||||||
const { svg, bindFunctions } = await mermaid.render('id1', 'graph TD;A-->B');
|
|
||||||
div.innerHTML = svg;
|
|
||||||
bindFunctions?.(div); // To call bindFunctions only if it's present.
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`element`): `void`
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :-------- | :-------- |
|
|
||||||
| `element` | `Element` |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/types.ts:103](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L103)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### diagramType
|
|
||||||
|
|
||||||
• **diagramType**: `string`
|
|
||||||
|
|
||||||
The diagram type, e.g. 'flowchart', 'sequence', etc.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/types.ts:93](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L93)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### svg
|
|
||||||
|
|
||||||
• **svg**: `string`
|
|
||||||
|
|
||||||
The svg code for the rendered graph.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/types.ts:89](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L89)
|
|
@@ -1,71 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaid.RunOptions.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaid.RunOptions.md).
|
|
||||||
|
|
||||||
# Interface: RunOptions
|
|
||||||
|
|
||||||
[mermaid](../modules/mermaid.md).RunOptions
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
### nodes
|
|
||||||
|
|
||||||
• `Optional` **nodes**: `ArrayLike`<`HTMLElement`>
|
|
||||||
|
|
||||||
The nodes to render. If this is set, `querySelector` will be ignored.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:49](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L49)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### postRenderCallback
|
|
||||||
|
|
||||||
• `Optional` **postRenderCallback**: (`id`: `string`) => `unknown`
|
|
||||||
|
|
||||||
A callback to call after each diagram is rendered.
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`id`): `unknown`
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :--- | :------- |
|
|
||||||
| `id` | `string` |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`unknown`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:53](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L53)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### querySelector
|
|
||||||
|
|
||||||
• `Optional` **querySelector**: `string`
|
|
||||||
|
|
||||||
The query selector to use when finding elements to render. Default: `".mermaid"`.
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:45](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L45)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### suppressErrors
|
|
||||||
|
|
||||||
• `Optional` **suppressErrors**: `boolean`
|
|
||||||
|
|
||||||
If `true`, errors will be logged to the console, but not thrown. Default: `false`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:57](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L57)
|
|
40
docs/config/setup/mermaid/README.md
Normal file
40
docs/config/setup/mermaid/README.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/README.md](../../../../packages/mermaid/src/docs/config/setup/mermaid/README.md).
|
||||||
|
|
||||||
|
[**mermaid**](../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# mermaid
|
||||||
|
|
||||||
|
## Classes
|
||||||
|
|
||||||
|
- [UnknownDiagramError](classes/UnknownDiagramError.md)
|
||||||
|
|
||||||
|
## Interfaces
|
||||||
|
|
||||||
|
- [DetailedError](interfaces/DetailedError.md)
|
||||||
|
- [ExternalDiagramDefinition](interfaces/ExternalDiagramDefinition.md)
|
||||||
|
- [LayoutData](interfaces/LayoutData.md)
|
||||||
|
- [LayoutLoaderDefinition](interfaces/LayoutLoaderDefinition.md)
|
||||||
|
- [Mermaid](interfaces/Mermaid.md)
|
||||||
|
- [MermaidConfig](interfaces/MermaidConfig.md)
|
||||||
|
- [ParseOptions](interfaces/ParseOptions.md)
|
||||||
|
- [ParseResult](interfaces/ParseResult.md)
|
||||||
|
- [RenderOptions](interfaces/RenderOptions.md)
|
||||||
|
- [RenderResult](interfaces/RenderResult.md)
|
||||||
|
- [RunOptions](interfaces/RunOptions.md)
|
||||||
|
|
||||||
|
## Type Aliases
|
||||||
|
|
||||||
|
- [InternalHelpers](type-aliases/InternalHelpers.md)
|
||||||
|
- [ParseErrorFunction](type-aliases/ParseErrorFunction.md)
|
||||||
|
- [SVG](type-aliases/SVG.md)
|
||||||
|
- [SVGGroup](type-aliases/SVGGroup.md)
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
- [default](variables/default.md)
|
159
docs/config/setup/mermaid/classes/UnknownDiagramError.md
Normal file
159
docs/config/setup/mermaid/classes/UnknownDiagramError.md
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/classes/UnknownDiagramError.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/classes/UnknownDiagramError.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Class: UnknownDiagramError
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/errors.ts:1](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/errors.ts#L1)
|
||||||
|
|
||||||
|
## Extends
|
||||||
|
|
||||||
|
- `Error`
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
### new UnknownDiagramError()
|
||||||
|
|
||||||
|
> **new UnknownDiagramError**(`message`): [`UnknownDiagramError`](UnknownDiagramError.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/errors.ts:2](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/errors.ts#L2)
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### message
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
[`UnknownDiagramError`](UnknownDiagramError.md)
|
||||||
|
|
||||||
|
#### Overrides
|
||||||
|
|
||||||
|
`Error.constructor`
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### cause?
|
||||||
|
|
||||||
|
> `optional` **cause**: `unknown`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/typescript\@5.7.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.cause`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### message
|
||||||
|
|
||||||
|
> **message**: `string`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/typescript\@5.7.3/node_modules/typescript/lib/lib.es5.d.ts:1077
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.message`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### name
|
||||||
|
|
||||||
|
> **name**: `string`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/typescript\@5.7.3/node_modules/typescript/lib/lib.es5.d.ts:1076
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.name`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### stack?
|
||||||
|
|
||||||
|
> `optional` **stack**: `string`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/typescript\@5.7.3/node_modules/typescript/lib/lib.es5.d.ts:1078
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.stack`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### prepareStackTrace()?
|
||||||
|
|
||||||
|
> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/@types+node\@20.17.19/node_modules/@types/node/globals.d.ts:98
|
||||||
|
|
||||||
|
Optional override for formatting stack traces
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### err
|
||||||
|
|
||||||
|
`Error`
|
||||||
|
|
||||||
|
##### stackTraces
|
||||||
|
|
||||||
|
`CallSite`\[]
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`any`
|
||||||
|
|
||||||
|
#### See
|
||||||
|
|
||||||
|
<https://v8.dev/docs/stack-trace-api#customizing-stack-traces>
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.prepareStackTrace`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### stackTraceLimit
|
||||||
|
|
||||||
|
> `static` **stackTraceLimit**: `number`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/@types+node\@20.17.19/node_modules/@types/node/globals.d.ts:100
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.stackTraceLimit`
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### captureStackTrace()
|
||||||
|
|
||||||
|
> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`
|
||||||
|
|
||||||
|
Defined in: node_modules/.pnpm/@types+node\@20.17.19/node_modules/@types/node/globals.d.ts:91
|
||||||
|
|
||||||
|
Create .stack property on a target object
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### targetObject
|
||||||
|
|
||||||
|
`object`
|
||||||
|
|
||||||
|
##### constructorOpt?
|
||||||
|
|
||||||
|
`Function`
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
#### Inherited from
|
||||||
|
|
||||||
|
`Error.captureStackTrace`
|
45
docs/config/setup/mermaid/interfaces/DetailedError.md
Normal file
45
docs/config/setup/mermaid/interfaces/DetailedError.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/DetailedError.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/DetailedError.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: DetailedError
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/utils.ts:780](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L780)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### error?
|
||||||
|
|
||||||
|
> `optional` **error**: `any`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/utils.ts:785](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L785)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### hash
|
||||||
|
|
||||||
|
> **hash**: `any`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/utils.ts:783](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L783)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### message?
|
||||||
|
|
||||||
|
> `optional` **message**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/utils.ts:786](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L786)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### str
|
||||||
|
|
||||||
|
> **str**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/utils.ts:781](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/utils.ts#L781)
|
@@ -0,0 +1,37 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/ExternalDiagramDefinition.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/ExternalDiagramDefinition.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: ExternalDiagramDefinition
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/diagram-api/types.ts:99](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L99)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### detector
|
||||||
|
|
||||||
|
> **detector**: `DiagramDetector`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/diagram-api/types.ts:101](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L101)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### id
|
||||||
|
|
||||||
|
> **id**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/diagram-api/types.ts:100](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L100)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### loader
|
||||||
|
|
||||||
|
> **loader**: `DiagramLoader`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/diagram-api/types.ts:102](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L102)
|
41
docs/config/setup/mermaid/interfaces/LayoutData.md
Normal file
41
docs/config/setup/mermaid/interfaces/LayoutData.md
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/LayoutData.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/LayoutData.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: LayoutData
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/types.ts:145](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L145)
|
||||||
|
|
||||||
|
## Indexable
|
||||||
|
|
||||||
|
\[`key`: `string`]: `any`
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### config
|
||||||
|
|
||||||
|
> **config**: [`MermaidConfig`](MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/types.ts:148](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L148)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### edges
|
||||||
|
|
||||||
|
> **edges**: `Edge`\[]
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/types.ts:147](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L147)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### nodes
|
||||||
|
|
||||||
|
> **nodes**: `Node`\[]
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/types.ts:146](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/types.ts#L146)
|
@@ -0,0 +1,37 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/LayoutLoaderDefinition.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/LayoutLoaderDefinition.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: LayoutLoaderDefinition
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/render.ts:21](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L21)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### algorithm?
|
||||||
|
|
||||||
|
> `optional` **algorithm**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/render.ts:24](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L24)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### loader
|
||||||
|
|
||||||
|
> **loader**: `LayoutLoader`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/render.ts:23](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L23)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### name
|
||||||
|
|
||||||
|
> **name**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/render.ts:22](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L22)
|
427
docs/config/setup/mermaid/interfaces/Mermaid.md
Normal file
427
docs/config/setup/mermaid/interfaces/Mermaid.md
Normal file
@@ -0,0 +1,427 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/Mermaid.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/Mermaid.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: Mermaid
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:418](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L418)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### contentLoaded()
|
||||||
|
|
||||||
|
> **contentLoaded**: () => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:436](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L436)
|
||||||
|
|
||||||
|
\##contentLoaded Callback function that is called when page is loaded. This functions fetches
|
||||||
|
configuration for mermaid rendering and calls init for rendering the mermaid diagrams on the
|
||||||
|
page.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### detectType()
|
||||||
|
|
||||||
|
> **detectType**: (`text`, `config`?) => `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:438](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L438)
|
||||||
|
|
||||||
|
Detects the type of the graph text.
|
||||||
|
|
||||||
|
Takes into consideration the possible existence of an `%%init` directive
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### text
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
The text defining the graph. For example:
|
||||||
|
|
||||||
|
```mermaid-example
|
||||||
|
%%{initialize: {"startOnLoad": true, logLevel: "fatal" }}%%
|
||||||
|
graph LR
|
||||||
|
a-->b
|
||||||
|
b-->c
|
||||||
|
c-->d
|
||||||
|
d-->e
|
||||||
|
e-->f
|
||||||
|
f-->g
|
||||||
|
g-->h
|
||||||
|
```
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
%%{initialize: {"startOnLoad": true, logLevel: "fatal" }}%%
|
||||||
|
graph LR
|
||||||
|
a-->b
|
||||||
|
b-->c
|
||||||
|
c-->d
|
||||||
|
d-->e
|
||||||
|
e-->f
|
||||||
|
f-->g
|
||||||
|
g-->h
|
||||||
|
```
|
||||||
|
|
||||||
|
##### config?
|
||||||
|
|
||||||
|
[`MermaidConfig`](MermaidConfig.md)
|
||||||
|
|
||||||
|
The mermaid config.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
A graph definition key
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### ~~init()~~
|
||||||
|
|
||||||
|
> **init**: (`config`?, `nodes`?, `callback`?) => `Promise`<`void`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:431](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L431)
|
||||||
|
|
||||||
|
## init
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### config?
|
||||||
|
|
||||||
|
[`MermaidConfig`](MermaidConfig.md)
|
||||||
|
|
||||||
|
**Deprecated**, please set configuration in [initialize](Mermaid.md#initialize).
|
||||||
|
|
||||||
|
##### nodes?
|
||||||
|
|
||||||
|
**Default**: `.mermaid`. One of the following:
|
||||||
|
|
||||||
|
- A DOM Node
|
||||||
|
- An array of DOM nodes (as would come from a jQuery selector)
|
||||||
|
- A W3C selector, a la `.mermaid`
|
||||||
|
|
||||||
|
`string` | `HTMLElement` | `NodeListOf`<`HTMLElement`>
|
||||||
|
|
||||||
|
##### callback?
|
||||||
|
|
||||||
|
(`id`) => `unknown`
|
||||||
|
|
||||||
|
Called once for each rendered diagram's id.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`Promise`<`void`>
|
||||||
|
|
||||||
|
#### Deprecated
|
||||||
|
|
||||||
|
Use [initialize](Mermaid.md#initialize) and [run](Mermaid.md#run) instead.
|
||||||
|
|
||||||
|
Renders the mermaid diagrams
|
||||||
|
|
||||||
|
#### Deprecated
|
||||||
|
|
||||||
|
Use [initialize](Mermaid.md#initialize) and [run](Mermaid.md#run) instead.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### initialize()
|
||||||
|
|
||||||
|
> **initialize**: (`config`) => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:435](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L435)
|
||||||
|
|
||||||
|
Used to set configurations for mermaid.
|
||||||
|
This function should be called before the run function.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### config
|
||||||
|
|
||||||
|
[`MermaidConfig`](MermaidConfig.md)
|
||||||
|
|
||||||
|
Configuration object for mermaid.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### ~~mermaidAPI~~
|
||||||
|
|
||||||
|
> **mermaidAPI**: `Readonly`<{ `defaultConfig`: [`MermaidConfig`](MermaidConfig.md); `getConfig`: () => [`MermaidConfig`](MermaidConfig.md); `getDiagramFromText`: (`text`, `metadata`) => `Promise`<`Diagram`>; `getSiteConfig`: () => [`MermaidConfig`](MermaidConfig.md); `globalReset`: () => `void`; `initialize`: (`userOptions`) => `void`; `parse`: (`text`, `parseOptions`) => `Promise`<`false` | [`ParseResult`](ParseResult.md)>(`text`, `parseOptions`?) => `Promise`<[`ParseResult`](ParseResult.md)>; `render`: (`id`, `text`, `svgContainingElement`?) => `Promise`<[`RenderResult`](RenderResult.md)>; `reset`: () => `void`; `setConfig`: (`conf`) => [`MermaidConfig`](MermaidConfig.md); `updateSiteConfig`: (`conf`) => [`MermaidConfig`](MermaidConfig.md); }>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:425](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L425)
|
||||||
|
|
||||||
|
**`Internal`**
|
||||||
|
|
||||||
|
#### Deprecated
|
||||||
|
|
||||||
|
Use [parse](Mermaid.md#parse) and [render](Mermaid.md#render) instead. Please [open a discussion](https://github.com/mermaid-js/mermaid/discussions) if your use case does not fit the new API.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### parse()
|
||||||
|
|
||||||
|
> **parse**: (`text`, `parseOptions`) => `Promise`<`false` | [`ParseResult`](ParseResult.md)>(`text`, `parseOptions`?) => `Promise`<[`ParseResult`](ParseResult.md)>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:426](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L426)
|
||||||
|
|
||||||
|
Parse the text and validate the syntax.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### text
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
The mermaid diagram definition.
|
||||||
|
|
||||||
|
##### parseOptions
|
||||||
|
|
||||||
|
[`ParseOptions`](ParseOptions.md) & `object`
|
||||||
|
|
||||||
|
Options for parsing.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`Promise`<`false` | [`ParseResult`](ParseResult.md)>
|
||||||
|
|
||||||
|
An object with the `diagramType` set to type of the diagram if valid. Otherwise `false` if parseOptions.suppressErrors is `true`.
|
||||||
|
|
||||||
|
#### See
|
||||||
|
|
||||||
|
[ParseOptions](ParseOptions.md)
|
||||||
|
|
||||||
|
#### Throws
|
||||||
|
|
||||||
|
Error if the diagram is invalid and parseOptions.suppressErrors is false or not set.
|
||||||
|
|
||||||
|
Parse the text and validate the syntax.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### text
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
The mermaid diagram definition.
|
||||||
|
|
||||||
|
##### parseOptions?
|
||||||
|
|
||||||
|
[`ParseOptions`](ParseOptions.md)
|
||||||
|
|
||||||
|
Options for parsing.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`Promise`<[`ParseResult`](ParseResult.md)>
|
||||||
|
|
||||||
|
An object with the `diagramType` set to type of the diagram if valid. Otherwise `false` if parseOptions.suppressErrors is `true`.
|
||||||
|
|
||||||
|
#### See
|
||||||
|
|
||||||
|
[ParseOptions](ParseOptions.md)
|
||||||
|
|
||||||
|
#### Throws
|
||||||
|
|
||||||
|
Error if the diagram is invalid and parseOptions.suppressErrors is false or not set.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### parseError?
|
||||||
|
|
||||||
|
> `optional` **parseError**: [`ParseErrorFunction`](../type-aliases/ParseErrorFunction.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:420](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L420)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### registerExternalDiagrams()
|
||||||
|
|
||||||
|
> **registerExternalDiagrams**: (`diagrams`, `opts`) => `Promise`<`void`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:434](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L434)
|
||||||
|
|
||||||
|
Used to register external diagram types.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### diagrams
|
||||||
|
|
||||||
|
[`ExternalDiagramDefinition`](ExternalDiagramDefinition.md)\[]
|
||||||
|
|
||||||
|
Array of [ExternalDiagramDefinition](ExternalDiagramDefinition.md).
|
||||||
|
|
||||||
|
##### opts
|
||||||
|
|
||||||
|
If opts.lazyLoad is false, the diagrams will be loaded immediately.
|
||||||
|
|
||||||
|
###### lazyLoad?
|
||||||
|
|
||||||
|
`boolean` = `true`
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`Promise`<`void`>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### registerIconPacks()
|
||||||
|
|
||||||
|
> **registerIconPacks**: (`iconLoaders`) => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:439](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L439)
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### iconLoaders
|
||||||
|
|
||||||
|
`IconLoader`\[]
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### registerLayoutLoaders()
|
||||||
|
|
||||||
|
> **registerLayoutLoaders**: (`loaders`) => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:433](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L433)
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### loaders
|
||||||
|
|
||||||
|
[`LayoutLoaderDefinition`](LayoutLoaderDefinition.md)\[]
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### render()
|
||||||
|
|
||||||
|
> **render**: (`id`, `text`, `svgContainingElement`?) => `Promise`<[`RenderResult`](RenderResult.md)>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:427](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L427)
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### id
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
##### text
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
##### svgContainingElement?
|
||||||
|
|
||||||
|
`Element`
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`Promise`<[`RenderResult`](RenderResult.md)>
|
||||||
|
|
||||||
|
#### Deprecated
|
||||||
|
|
||||||
|
- use the `mermaid.render` function instead of `mermaid.mermaidAPI.render`
|
||||||
|
|
||||||
|
Deprecated for external use.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### run()
|
||||||
|
|
||||||
|
> **run**: (`options`) => `Promise`<`void`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:432](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L432)
|
||||||
|
|
||||||
|
## run
|
||||||
|
|
||||||
|
Function that goes through the document to find the chart definitions in there and render them.
|
||||||
|
|
||||||
|
The function tags the processed attributes with the attribute data-processed and ignores found
|
||||||
|
elements with the attribute already set. This way the init function can be triggered several
|
||||||
|
times.
|
||||||
|
|
||||||
|
```mermaid-example
|
||||||
|
graph LR;
|
||||||
|
a(Find elements)-->b{Processed}
|
||||||
|
b-->|Yes|c(Leave element)
|
||||||
|
b-->|No |d(Transform)
|
||||||
|
```
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR;
|
||||||
|
a(Find elements)-->b{Processed}
|
||||||
|
b-->|Yes|c(Leave element)
|
||||||
|
b-->|No |d(Transform)
|
||||||
|
```
|
||||||
|
|
||||||
|
Renders the mermaid diagrams
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### options
|
||||||
|
|
||||||
|
[`RunOptions`](RunOptions.md) = `...`
|
||||||
|
|
||||||
|
Optional runtime configs
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`Promise`<`void`>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### setParseErrorHandler()
|
||||||
|
|
||||||
|
> **setParseErrorHandler**: (`parseErrorHandler`) => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:437](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L437)
|
||||||
|
|
||||||
|
## setParseErrorHandler Alternative to directly setting parseError using:
|
||||||
|
|
||||||
|
```js
|
||||||
|
mermaid.parseError = function (err, hash) {
|
||||||
|
forExampleDisplayErrorInGui(err); // do something with the error
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
This is provided for environments where the mermaid object can't directly have a new member added
|
||||||
|
to it (eg. dart interop wrapper). (Initially there is no parseError member of mermaid).
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### parseErrorHandler
|
||||||
|
|
||||||
|
(`err`, `hash`) => `void`
|
||||||
|
|
||||||
|
New parseError() callback.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### startOnLoad
|
||||||
|
|
||||||
|
> **startOnLoad**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:419](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L419)
|
461
docs/config/setup/mermaid/interfaces/MermaidConfig.md
Normal file
461
docs/config/setup/mermaid/interfaces/MermaidConfig.md
Normal file
@@ -0,0 +1,461 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/MermaidConfig.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/MermaidConfig.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: MermaidConfig
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:58](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L58)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### altFontFamily?
|
||||||
|
|
||||||
|
> `optional` **altFontFamily**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:122](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L122)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### architecture?
|
||||||
|
|
||||||
|
> `optional` **architecture**: `ArchitectureDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:194](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L194)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### arrowMarkerAbsolute?
|
||||||
|
|
||||||
|
> `optional` **arrowMarkerAbsolute**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:141](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L141)
|
||||||
|
|
||||||
|
Controls whether or arrow markers in html code are absolute paths or anchors.
|
||||||
|
This matters if you are using base tag settings.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### block?
|
||||||
|
|
||||||
|
> `optional` **block**: `BlockDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:201](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L201)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### c4?
|
||||||
|
|
||||||
|
> `optional` **c4**: `C4DiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:198](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L198)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### class?
|
||||||
|
|
||||||
|
> `optional` **class**: `ClassDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:187](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L187)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### darkMode?
|
||||||
|
|
||||||
|
> `optional` **darkMode**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:113](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L113)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### deterministicIds?
|
||||||
|
|
||||||
|
> `optional` **deterministicIds**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:174](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L174)
|
||||||
|
|
||||||
|
This option controls if the generated ids of nodes in the SVG are
|
||||||
|
generated randomly or based on a seed.
|
||||||
|
If set to `false`, the IDs are generated based on the current date and
|
||||||
|
thus are not deterministic. This is the default behavior.
|
||||||
|
|
||||||
|
This matters if your files are checked into source control e.g. git and
|
||||||
|
should not change unless content is changed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### deterministicIDSeed?
|
||||||
|
|
||||||
|
> `optional` **deterministicIDSeed**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:181](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L181)
|
||||||
|
|
||||||
|
This option is the optional seed for deterministic ids.
|
||||||
|
If set to `undefined` but deterministicIds is `true`, a simple number iterator is used.
|
||||||
|
You can set this attribute to base the seed on a static string.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### dompurifyConfig?
|
||||||
|
|
||||||
|
> `optional` **dompurifyConfig**: `Config`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:202](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L202)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### elk?
|
||||||
|
|
||||||
|
> `optional` **elk**: `object`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:91](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L91)
|
||||||
|
|
||||||
|
#### cycleBreakingStrategy?
|
||||||
|
|
||||||
|
> `optional` **cycleBreakingStrategy**: `"GREEDY"` | `"DEPTH_FIRST"` | `"INTERACTIVE"` | `"MODEL_ORDER"` | `"GREEDY_MODEL_ORDER"`
|
||||||
|
|
||||||
|
This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops.
|
||||||
|
|
||||||
|
#### mergeEdges?
|
||||||
|
|
||||||
|
> `optional` **mergeEdges**: `boolean`
|
||||||
|
|
||||||
|
Elk specific option that allows edges to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram.
|
||||||
|
|
||||||
|
#### nodePlacementStrategy?
|
||||||
|
|
||||||
|
> `optional` **nodePlacementStrategy**: `"SIMPLE"` | `"NETWORK_SIMPLEX"` | `"LINEAR_SEGMENTS"` | `"BRANDES_KOEPF"`
|
||||||
|
|
||||||
|
Elk specific option affecting how nodes are placed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### er?
|
||||||
|
|
||||||
|
> `optional` **er**: `ErDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:189](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L189)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### flowchart?
|
||||||
|
|
||||||
|
> `optional` **flowchart**: `FlowchartDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:182](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L182)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### fontFamily?
|
||||||
|
|
||||||
|
> `optional` **fontFamily**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:121](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L121)
|
||||||
|
|
||||||
|
Specifies the font to be used in the rendered diagrams.
|
||||||
|
Can be any possible CSS `font-family`.
|
||||||
|
See <https://developer.mozilla.org/en-US/docs/Web/CSS/font-family>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### fontSize?
|
||||||
|
|
||||||
|
> `optional` **fontSize**: `number`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:204](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L204)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### forceLegacyMathML?
|
||||||
|
|
||||||
|
> `optional` **forceLegacyMathML**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:163](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L163)
|
||||||
|
|
||||||
|
This option forces Mermaid to rely on KaTeX's own stylesheet for rendering MathML. Due to differences between OS
|
||||||
|
fonts and browser's MathML implementation, this option is recommended if consistent rendering is important.
|
||||||
|
If set to true, ignores legacyMathML.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### gantt?
|
||||||
|
|
||||||
|
> `optional` **gantt**: `GanttDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:184](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L184)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### gitGraph?
|
||||||
|
|
||||||
|
> `optional` **gitGraph**: `GitGraphDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:197](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L197)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### handDrawnSeed?
|
||||||
|
|
||||||
|
> `optional` **handDrawnSeed**: `number`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:76](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L76)
|
||||||
|
|
||||||
|
Defines the seed to be used when using handDrawn look. This is important for the automated tests as they will always find differences without the seed. The default value is 0 which gives a random seed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### htmlLabels?
|
||||||
|
|
||||||
|
> `optional` **htmlLabels**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:114](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L114)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### journey?
|
||||||
|
|
||||||
|
> `optional` **journey**: `JourneyDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:185](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L185)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### kanban?
|
||||||
|
|
||||||
|
> `optional` **kanban**: `KanbanDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:196](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L196)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### layout?
|
||||||
|
|
||||||
|
> `optional` **layout**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:81](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L81)
|
||||||
|
|
||||||
|
Defines which layout algorithm to use for rendering the diagram.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### legacyMathML?
|
||||||
|
|
||||||
|
> `optional` **legacyMathML**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:156](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L156)
|
||||||
|
|
||||||
|
This option specifies if Mermaid can expect the dependent to include KaTeX stylesheets for browsers
|
||||||
|
without their own MathML implementation. If this option is disabled and MathML is not supported, the math
|
||||||
|
equations are replaced with a warning. If this option is enabled and MathML is not supported, Mermaid will
|
||||||
|
fall back to legacy rendering for KaTeX.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### logLevel?
|
||||||
|
|
||||||
|
> `optional` **logLevel**: `0` | `2` | `1` | `"trace"` | `"debug"` | `"info"` | `"warn"` | `"error"` | `"fatal"` | `3` | `4` | `5`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:127](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L127)
|
||||||
|
|
||||||
|
This option decides the amount of logging to be used by mermaid.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### look?
|
||||||
|
|
||||||
|
> `optional` **look**: `"classic"` | `"handDrawn"`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:71](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L71)
|
||||||
|
|
||||||
|
Defines which main look to use for the diagram.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### markdownAutoWrap?
|
||||||
|
|
||||||
|
> `optional` **markdownAutoWrap**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:205](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L205)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### maxEdges?
|
||||||
|
|
||||||
|
> `optional` **maxEdges**: `number`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:90](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L90)
|
||||||
|
|
||||||
|
Defines the maximum number of edges that can be drawn in a graph.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### maxTextSize?
|
||||||
|
|
||||||
|
> `optional` **maxTextSize**: `number`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:85](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L85)
|
||||||
|
|
||||||
|
The maximum allowed size of the users text diagram
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### mindmap?
|
||||||
|
|
||||||
|
> `optional` **mindmap**: `MindmapDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:195](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L195)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### packet?
|
||||||
|
|
||||||
|
> `optional` **packet**: `PacketDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:200](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L200)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### pie?
|
||||||
|
|
||||||
|
> `optional` **pie**: `PieDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:190](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L190)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### quadrantChart?
|
||||||
|
|
||||||
|
> `optional` **quadrantChart**: `QuadrantChartConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:191](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L191)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### requirement?
|
||||||
|
|
||||||
|
> `optional` **requirement**: `RequirementDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:193](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L193)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### sankey?
|
||||||
|
|
||||||
|
> `optional` **sankey**: `SankeyDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:199](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L199)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### secure?
|
||||||
|
|
||||||
|
> `optional` **secure**: `string`\[]
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:148](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L148)
|
||||||
|
|
||||||
|
This option controls which `currentConfig` keys are considered secure and
|
||||||
|
can only be changed via call to `mermaid.initialize`.
|
||||||
|
This prevents malicious graph directives from overriding a site's default security.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### securityLevel?
|
||||||
|
|
||||||
|
> `optional` **securityLevel**: `"strict"` | `"loose"` | `"antiscript"` | `"sandbox"`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:131](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L131)
|
||||||
|
|
||||||
|
Level of trust for parsed diagram
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### sequence?
|
||||||
|
|
||||||
|
> `optional` **sequence**: `SequenceDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:183](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L183)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### startOnLoad?
|
||||||
|
|
||||||
|
> `optional` **startOnLoad**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:135](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L135)
|
||||||
|
|
||||||
|
Dictates whether mermaid starts on Page load
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### state?
|
||||||
|
|
||||||
|
> `optional` **state**: `StateDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:188](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L188)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### suppressErrorRendering?
|
||||||
|
|
||||||
|
> `optional` **suppressErrorRendering**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:211](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L211)
|
||||||
|
|
||||||
|
Suppresses inserting 'Syntax error' diagram in the DOM.
|
||||||
|
This is useful when you want to control how to handle syntax errors in your application.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### theme?
|
||||||
|
|
||||||
|
> `optional` **theme**: `"default"` | `"base"` | `"dark"` | `"forest"` | `"neutral"` | `"null"`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:64](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L64)
|
||||||
|
|
||||||
|
Theme, the CSS style sheet.
|
||||||
|
You may also use `themeCSS` to override this value.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### themeCSS?
|
||||||
|
|
||||||
|
> `optional` **themeCSS**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:66](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L66)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### themeVariables?
|
||||||
|
|
||||||
|
> `optional` **themeVariables**: `any`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:65](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L65)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### timeline?
|
||||||
|
|
||||||
|
> `optional` **timeline**: `TimelineDiagramConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:186](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L186)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### wrap?
|
||||||
|
|
||||||
|
> `optional` **wrap**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:203](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L203)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### xyChart?
|
||||||
|
|
||||||
|
> `optional` **xyChart**: `XYChartConfig`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/config.type.ts:192](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L192)
|
24
docs/config/setup/mermaid/interfaces/ParseOptions.md
Normal file
24
docs/config/setup/mermaid/interfaces/ParseOptions.md
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/ParseOptions.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/ParseOptions.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: ParseOptions
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:59](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L59)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### suppressErrors?
|
||||||
|
|
||||||
|
> `optional` **suppressErrors**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:64](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L64)
|
||||||
|
|
||||||
|
If `true`, parse will return `false` instead of throwing error when the diagram is invalid.
|
||||||
|
The `parseError` function will not be called.
|
33
docs/config/setup/mermaid/interfaces/ParseResult.md
Normal file
33
docs/config/setup/mermaid/interfaces/ParseResult.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/ParseResult.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/ParseResult.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: ParseResult
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:67](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L67)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### config
|
||||||
|
|
||||||
|
> **config**: [`MermaidConfig`](MermaidConfig.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:75](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L75)
|
||||||
|
|
||||||
|
The config passed as YAML frontmatter or directives
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### diagramType
|
||||||
|
|
||||||
|
> **diagramType**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:71](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L71)
|
||||||
|
|
||||||
|
The diagram type, e.g. 'flowchart', 'sequence', etc.
|
21
docs/config/setup/mermaid/interfaces/RenderOptions.md
Normal file
21
docs/config/setup/mermaid/interfaces/RenderOptions.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/RenderOptions.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/RenderOptions.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: RenderOptions
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/render.ts:7](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L7)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### algorithm?
|
||||||
|
|
||||||
|
> `optional` **algorithm**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/rendering-util/render.ts:8](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/rendering-util/render.ts#L8)
|
60
docs/config/setup/mermaid/interfaces/RenderResult.md
Normal file
60
docs/config/setup/mermaid/interfaces/RenderResult.md
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/RenderResult.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/RenderResult.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: RenderResult
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:85](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L85)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### bindFunctions()?
|
||||||
|
|
||||||
|
> `optional` **bindFunctions**: (`element`) => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:103](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L103)
|
||||||
|
|
||||||
|
Bind function to be called after the svg has been inserted into the DOM.
|
||||||
|
This is necessary for adding event listeners to the elements in the svg.
|
||||||
|
|
||||||
|
```js
|
||||||
|
const { svg, bindFunctions } = await mermaid.render('id1', 'graph TD;A-->B');
|
||||||
|
div.innerHTML = svg;
|
||||||
|
bindFunctions?.(div); // To call bindFunctions only if it's present.
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### element
|
||||||
|
|
||||||
|
`Element`
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`void`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### diagramType
|
||||||
|
|
||||||
|
> **diagramType**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:93](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L93)
|
||||||
|
|
||||||
|
The diagram type, e.g. 'flowchart', 'sequence', etc.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### svg
|
||||||
|
|
||||||
|
> **svg**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/types.ts:89](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/types.ts#L89)
|
||||||
|
|
||||||
|
The svg code for the rendered graph.
|
63
docs/config/setup/mermaid/interfaces/RunOptions.md
Normal file
63
docs/config/setup/mermaid/interfaces/RunOptions.md
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/interfaces/RunOptions.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/interfaces/RunOptions.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Interface: RunOptions
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:41](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L41)
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
### nodes?
|
||||||
|
|
||||||
|
> `optional` **nodes**: `ArrayLike`<`HTMLElement`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:49](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L49)
|
||||||
|
|
||||||
|
The nodes to render. If this is set, `querySelector` will be ignored.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### postRenderCallback()?
|
||||||
|
|
||||||
|
> `optional` **postRenderCallback**: (`id`) => `unknown`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:53](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L53)
|
||||||
|
|
||||||
|
A callback to call after each diagram is rendered.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
##### id
|
||||||
|
|
||||||
|
`string`
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
`unknown`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### querySelector?
|
||||||
|
|
||||||
|
> `optional` **querySelector**: `string`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:45](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L45)
|
||||||
|
|
||||||
|
The query selector to use when finding elements to render. Default: `".mermaid"`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### suppressErrors?
|
||||||
|
|
||||||
|
> `optional` **suppressErrors**: `boolean`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:57](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L57)
|
||||||
|
|
||||||
|
If `true`, errors will be logged to the console, but not thrown. Default: `false`
|
15
docs/config/setup/mermaid/type-aliases/InternalHelpers.md
Normal file
15
docs/config/setup/mermaid/type-aliases/InternalHelpers.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/type-aliases/InternalHelpers.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/type-aliases/InternalHelpers.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Type Alias: InternalHelpers
|
||||||
|
|
||||||
|
> **InternalHelpers**: _typeof_ `internalHelpers`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/internals.ts:33](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/internals.ts#L33)
|
29
docs/config/setup/mermaid/type-aliases/ParseErrorFunction.md
Normal file
29
docs/config/setup/mermaid/type-aliases/ParseErrorFunction.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/type-aliases/ParseErrorFunction.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/type-aliases/ParseErrorFunction.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Type Alias: ParseErrorFunction()
|
||||||
|
|
||||||
|
> **ParseErrorFunction**: (`err`, `hash`?) => `void`
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/Diagram.ts:10](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/Diagram.ts#L10)
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
### err
|
||||||
|
|
||||||
|
`string` | [`DetailedError`](../interfaces/DetailedError.md) | `unknown`
|
||||||
|
|
||||||
|
### hash?
|
||||||
|
|
||||||
|
`any`
|
||||||
|
|
||||||
|
## Returns
|
||||||
|
|
||||||
|
`void`
|
15
docs/config/setup/mermaid/type-aliases/SVG.md
Normal file
15
docs/config/setup/mermaid/type-aliases/SVG.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/type-aliases/SVG.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/type-aliases/SVG.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Type Alias: SVG
|
||||||
|
|
||||||
|
> **SVG**: `d3.Selection`<`SVGSVGElement`, `unknown`, `Element` | `null`, `unknown`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/diagram-api/types.ts:130](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L130)
|
15
docs/config/setup/mermaid/type-aliases/SVGGroup.md
Normal file
15
docs/config/setup/mermaid/type-aliases/SVGGroup.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/type-aliases/SVGGroup.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/type-aliases/SVGGroup.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Type Alias: SVGGroup
|
||||||
|
|
||||||
|
> **SVGGroup**: `d3.Selection`<`SVGGElement`, `unknown`, `Element` | `null`, `unknown`>
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/diagram-api/types.ts:132](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L132)
|
15
docs/config/setup/mermaid/variables/default.md
Normal file
15
docs/config/setup/mermaid/variables/default.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
||||||
|
>
|
||||||
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/mermaid/variables/default.md](../../../../../packages/mermaid/src/docs/config/setup/mermaid/variables/default.md).
|
||||||
|
|
||||||
|
[**mermaid**](../../README.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Variable: default
|
||||||
|
|
||||||
|
> `const` **default**: [`Mermaid`](../interfaces/Mermaid.md)
|
||||||
|
|
||||||
|
Defined in: [packages/mermaid/src/mermaid.ts:442](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L442)
|
@@ -1,276 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/modules/config.md](../../../../packages/mermaid/src/docs/config/setup/modules/config.md).
|
|
||||||
|
|
||||||
# Module: config
|
|
||||||
|
|
||||||
## Variables
|
|
||||||
|
|
||||||
### defaultConfig
|
|
||||||
|
|
||||||
• `Const` **defaultConfig**: [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:8](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L8)
|
|
||||||
|
|
||||||
## Functions
|
|
||||||
|
|
||||||
### addDirective
|
|
||||||
|
|
||||||
▸ **addDirective**(`directive`): `void`
|
|
||||||
|
|
||||||
Pushes in a directive to the configuration
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :---------- | :-------------------------------------------------------- | :----------------------- |
|
|
||||||
| `directive` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) | The directive to push in |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:188](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L188)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### getConfig
|
|
||||||
|
|
||||||
▸ **getConfig**(): [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
## getConfig
|
|
||||||
|
|
||||||
| Function | Description | Type | Return Values |
|
|
||||||
| --------- | ------------------------- | ----------- | ------------------------------ |
|
|
||||||
| getConfig | Obtains the currentConfig | Get Request | Any Values from current Config |
|
|
||||||
|
|
||||||
**Notes**: Avoid calling this function repeatedly. Instead, store the result in a variable and use it, and pass it down to function calls.
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
The currentConfig
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:131](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L131)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### getSiteConfig
|
|
||||||
|
|
||||||
▸ **getSiteConfig**(): [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
## getSiteConfig
|
|
||||||
|
|
||||||
| Function | Description | Type | Values |
|
|
||||||
| ------------- | ------------------------------------------------- | ----------- | -------------------------------- |
|
|
||||||
| setSiteConfig | Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig |
|
|
||||||
|
|
||||||
**Notes**: Returns **any** values in siteConfig.
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
The siteConfig
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:96](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L96)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### reset
|
|
||||||
|
|
||||||
▸ **reset**(`config?`): `void`
|
|
||||||
|
|
||||||
## reset
|
|
||||||
|
|
||||||
| Function | Description | Type | Required | Values |
|
|
||||||
| -------- | ---------------------------- | ----------- | -------- | ------ |
|
|
||||||
| reset | Resets currentConfig to conf | Put Request | Required | None |
|
|
||||||
|
|
||||||
## conf
|
|
||||||
|
|
||||||
| Parameter | Description | Type | Required | Values |
|
|
||||||
| --------- | -------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- |
|
|
||||||
| conf | base set of values, which currentConfig could be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array |
|
|
||||||
|
|
||||||
**Notes**: (default: current siteConfig ) (optional, default `getSiteConfig()`)
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Default value | Description |
|
|
||||||
| :------- | :-------------------------------------------------------- | :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `config` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) | `siteConfig` | base set of values, which currentConfig could be **reset** to. Defaults to the current siteConfig (e.g returned by [getSiteConfig](config.md#getsiteconfig)). |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:221](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L221)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### sanitize
|
|
||||||
|
|
||||||
▸ **sanitize**(`options`): `void`
|
|
||||||
|
|
||||||
## sanitize
|
|
||||||
|
|
||||||
| Function | Description | Type | Values |
|
|
||||||
| -------- | -------------------------------------- | ----------- | ------ |
|
|
||||||
| sanitize | Sets the siteConfig to desired values. | Put Request | None |
|
|
||||||
|
|
||||||
Ensures options parameter does not attempt to override siteConfig secure keys **Notes**: modifies
|
|
||||||
options in-place
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :-------- | :---- | :-------------------------------- |
|
|
||||||
| `options` | `any` | The potential setConfig parameter |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:146](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L146)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### saveConfigFromInitialize
|
|
||||||
|
|
||||||
▸ **saveConfigFromInitialize**(`conf`): `void`
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :----- | :-------------------------------------------------------- |
|
|
||||||
| `conf` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:75](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L75)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### setConfig
|
|
||||||
|
|
||||||
▸ **setConfig**(`conf`): [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
## setConfig
|
|
||||||
|
|
||||||
| Function | Description | Type | Values |
|
|
||||||
| ------------- | ------------------------------------- | ----------- | --------------------------------------- |
|
|
||||||
| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
|
|
||||||
|
|
||||||
**Notes**: Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure
|
|
||||||
keys. Any values found in conf with key found in siteConfig.secure will be replaced with the
|
|
||||||
corresponding siteConfig value.
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :----- | :-------------------------------------------------------- | :-------------------------- |
|
|
||||||
| `conf` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) | The potential currentConfig |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
The currentConfig merged with the sanitized conf
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:113](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L113)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### setSiteConfig
|
|
||||||
|
|
||||||
▸ **setSiteConfig**(`conf`): [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
## setSiteConfig
|
|
||||||
|
|
||||||
| Function | Description | Type | Values |
|
|
||||||
| ------------- | ------------------------------------- | ----------- | --------------------------------------- |
|
|
||||||
| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
|
|
||||||
|
|
||||||
**Notes:** Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls
|
|
||||||
to reset() will reset the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig)
|
|
||||||
will reset siteConfig and currentConfig to the defaultConfig Note: currentConfig is set in this
|
|
||||||
function _Default value: At default, will mirror Global Config_
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| :----- | :-------------------------------------------------------- | :------------------------------------------ |
|
|
||||||
| `conf` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) | The base currentConfig to use as siteConfig |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
The new siteConfig
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:61](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L61)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### updateCurrentConfig
|
|
||||||
|
|
||||||
▸ **updateCurrentConfig**(`siteCfg`, `_directives`): [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :------------ | :----------------------------------------------------------- |
|
|
||||||
| `siteCfg` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) |
|
|
||||||
| `_directives` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)\[] |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:15](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L15)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### updateSiteConfig
|
|
||||||
|
|
||||||
▸ **updateSiteConfig**(`conf`): [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
#### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :----- | :-------------------------------------------------------- |
|
|
||||||
| `conf` | [`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md) |
|
|
||||||
|
|
||||||
#### Returns
|
|
||||||
|
|
||||||
[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/config.ts:79](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L79)
|
|
@@ -1,33 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/modules/defaultConfig.md](../../../../packages/mermaid/src/docs/config/setup/modules/defaultConfig.md).
|
|
||||||
|
|
||||||
# Module: defaultConfig
|
|
||||||
|
|
||||||
## Variables
|
|
||||||
|
|
||||||
### configKeys
|
|
||||||
|
|
||||||
• `Const` **configKeys**: `Set`<`string`>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/defaultConfig.ts:270](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L270)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### default
|
|
||||||
|
|
||||||
• `Const` **default**: `RequiredDeep`<[`MermaidConfig`](../interfaces/mermaid.MermaidConfig.md)>
|
|
||||||
|
|
||||||
Default mermaid configuration options.
|
|
||||||
|
|
||||||
Please see the Mermaid config JSON Schema for the default JSON values.
|
|
||||||
Non-JSON JS default values are listed in this file, e.g. functions, or
|
|
||||||
`undefined` (explicitly set so that `configKeys` finds them).
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/defaultConfig.ts:18](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L18)
|
|
@@ -1,90 +0,0 @@
|
|||||||
> **Warning**
|
|
||||||
>
|
|
||||||
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
||||||
>
|
|
||||||
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/modules/mermaid.md](../../../../packages/mermaid/src/docs/config/setup/modules/mermaid.md).
|
|
||||||
|
|
||||||
# Module: mermaid
|
|
||||||
|
|
||||||
## Classes
|
|
||||||
|
|
||||||
- [UnknownDiagramError](../classes/mermaid.UnknownDiagramError.md)
|
|
||||||
|
|
||||||
## Interfaces
|
|
||||||
|
|
||||||
- [DetailedError](../interfaces/mermaid.DetailedError.md)
|
|
||||||
- [ExternalDiagramDefinition](../interfaces/mermaid.ExternalDiagramDefinition.md)
|
|
||||||
- [LayoutData](../interfaces/mermaid.LayoutData.md)
|
|
||||||
- [LayoutLoaderDefinition](../interfaces/mermaid.LayoutLoaderDefinition.md)
|
|
||||||
- [Mermaid](../interfaces/mermaid.Mermaid.md)
|
|
||||||
- [MermaidConfig](../interfaces/mermaid.MermaidConfig.md)
|
|
||||||
- [ParseOptions](../interfaces/mermaid.ParseOptions.md)
|
|
||||||
- [ParseResult](../interfaces/mermaid.ParseResult.md)
|
|
||||||
- [RenderOptions](../interfaces/mermaid.RenderOptions.md)
|
|
||||||
- [RenderResult](../interfaces/mermaid.RenderResult.md)
|
|
||||||
- [RunOptions](../interfaces/mermaid.RunOptions.md)
|
|
||||||
|
|
||||||
## Type Aliases
|
|
||||||
|
|
||||||
### InternalHelpers
|
|
||||||
|
|
||||||
Ƭ **InternalHelpers**: typeof `internalHelpers`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/internals.ts:33](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/internals.ts#L33)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### ParseErrorFunction
|
|
||||||
|
|
||||||
Ƭ **ParseErrorFunction**: (`err`: `string` | [`DetailedError`](../interfaces/mermaid.DetailedError.md) | `unknown`, `hash?`: `any`) => `void`
|
|
||||||
|
|
||||||
#### Type declaration
|
|
||||||
|
|
||||||
▸ (`err`, `hash?`): `void`
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type |
|
|
||||||
| :------ | :--------------------------------------------------------------------------------- |
|
|
||||||
| `err` | `string` \| [`DetailedError`](../interfaces/mermaid.DetailedError.md) \| `unknown` |
|
|
||||||
| `hash?` | `any` |
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
`void`
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/Diagram.ts:10](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/Diagram.ts#L10)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### SVG
|
|
||||||
|
|
||||||
Ƭ **SVG**: `d3.Selection`<`SVGSVGElement`, `unknown`, `Element` | `null`, `unknown`>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/diagram-api/types.ts:130](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L130)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### SVGGroup
|
|
||||||
|
|
||||||
Ƭ **SVGGroup**: `d3.Selection`<`SVGGElement`, `unknown`, `Element` | `null`, `unknown`>
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/diagram-api/types.ts:132](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/diagram-api/types.ts#L132)
|
|
||||||
|
|
||||||
## Variables
|
|
||||||
|
|
||||||
### default
|
|
||||||
|
|
||||||
• `Const` **default**: [`Mermaid`](../interfaces/mermaid.Mermaid.md)
|
|
||||||
|
|
||||||
#### Defined in
|
|
||||||
|
|
||||||
[packages/mermaid/src/mermaid.ts:442](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaid.ts#L442)
|
|
@@ -123,8 +123,8 @@
|
|||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"start-server-and-test": "^2.0.3",
|
"start-server-and-test": "^2.0.3",
|
||||||
"type-fest": "^4.13.1",
|
"type-fest": "^4.13.1",
|
||||||
"typedoc": "^0.27.0",
|
"typedoc": "^0.27.7",
|
||||||
"typedoc-plugin-markdown": "^3.17.1",
|
"typedoc-plugin-markdown": "^4.4.2",
|
||||||
"typescript": "~5.7.0",
|
"typescript": "~5.7.0",
|
||||||
"unist-util-flatmap": "^1.0.0",
|
"unist-util-flatmap": "^1.0.0",
|
||||||
"unist-util-visit": "^5.0.0",
|
"unist-util-visit": "^5.0.0",
|
||||||
|
@@ -84,7 +84,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
const commits = db.getCommits();
|
const commits = db.getCommits();
|
||||||
|
|
||||||
expect(commits.size).toBe(1);
|
expect(commits.size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('a commit');
|
expect(commits.get(key)?.message).toBe('a commit');
|
||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
});
|
});
|
||||||
@@ -246,7 +246,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -263,7 +263,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -281,7 +281,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test']);
|
||||||
@@ -299,7 +299,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -317,7 +317,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -335,7 +335,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -353,7 +353,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('test commit');
|
expect(commits.get(key)?.message).toBe('test commit');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -371,7 +371,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('test commit');
|
expect(commits.get(key)?.message).toBe('test commit');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual([]);
|
expect(commits.get(key)?.tags).toStrictEqual([]);
|
||||||
@@ -389,7 +389,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -407,7 +407,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -425,7 +425,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).not.toBeNull();
|
expect(commits.get(key)?.id).not.toBeNull();
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -443,7 +443,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('');
|
expect(commits.get(key)?.message).toBe('');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -461,7 +461,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('test msg');
|
expect(commits.get(key)?.message).toBe('test msg');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -480,7 +480,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('test msg');
|
expect(commits.get(key)?.message).toBe('test msg');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -498,7 +498,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('test msg');
|
expect(commits.get(key)?.message).toBe('test msg');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
@@ -516,7 +516,7 @@ describe('when parsing a gitGraph', function () {
|
|||||||
expect(db.getCurrentBranch()).toBe('main');
|
expect(db.getCurrentBranch()).toBe('main');
|
||||||
expect(db.getDirection()).toBe('LR');
|
expect(db.getDirection()).toBe('LR');
|
||||||
expect(db.getBranches().size).toBe(1);
|
expect(db.getBranches().size).toBe(1);
|
||||||
const key = commits.keys().next().value;
|
const key = commits.keys().next().value!;
|
||||||
expect(commits.get(key)?.message).toBe('test msg');
|
expect(commits.get(key)?.message).toBe('test msg');
|
||||||
expect(commits.get(key)?.id).toBe('1111');
|
expect(commits.get(key)?.id).toBe('1111');
|
||||||
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
expect(commits.get(key)?.tags).toStrictEqual(['test tag']);
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import type { InfoFields, InfoDB } from './infoTypes.js';
|
import type { InfoFields, InfoDB } from './infoTypes.js';
|
||||||
import { version } from '../../../package.json';
|
import packageJson from '../../../package.json' assert { type: 'json' };
|
||||||
|
|
||||||
export const DEFAULT_INFO_DB: InfoFields = { version } as const;
|
export const DEFAULT_INFO_DB: InfoFields = { version: packageJson.version } as const;
|
||||||
|
|
||||||
export const getVersion = (): string => DEFAULT_INFO_DB.version;
|
export const getVersion = (): string => DEFAULT_INFO_DB.version;
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import type { MarkdownOptions } from 'vitepress';
|
import type { MarkdownOptions } from 'vitepress';
|
||||||
import { defineConfig } from 'vitepress';
|
import { defineConfig } from 'vitepress';
|
||||||
import { version } from '../../../package.json';
|
import packageJson from '../../../package.json' assert { type: 'json' };
|
||||||
import MermaidExample from './mermaid-markdown-all.js';
|
import MermaidExample from './mermaid-markdown-all.js';
|
||||||
|
|
||||||
const allMarkdownTransformers: MarkdownOptions = {
|
const allMarkdownTransformers: MarkdownOptions = {
|
||||||
@@ -95,7 +95,7 @@ function nav() {
|
|||||||
activeMatch: '/announcements',
|
activeMatch: '/announcements',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: version,
|
text: packageJson.version,
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
text: 'Changelog',
|
text: 'Changelog',
|
||||||
|
@@ -8,7 +8,7 @@ import { compile, serialize, stringify } from 'stylis';
|
|||||||
// @ts-ignore: TODO Fix ts errors
|
// @ts-ignore: TODO Fix ts errors
|
||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
import isEmpty from 'lodash-es/isEmpty.js';
|
import isEmpty from 'lodash-es/isEmpty.js';
|
||||||
import { version } from '../package.json';
|
import packageJson from '../package.json' assert { type: 'json' };
|
||||||
import { addSVGa11yTitleDescription, setA11yDiagramInfo } from './accessibility.js';
|
import { addSVGa11yTitleDescription, setA11yDiagramInfo } from './accessibility.js';
|
||||||
import assignWithDepth from './assignWithDepth.js';
|
import assignWithDepth from './assignWithDepth.js';
|
||||||
import * as configApi from './config.js';
|
import * as configApi from './config.js';
|
||||||
@@ -422,12 +422,12 @@ const render = async function (
|
|||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
// Draw the diagram with the renderer
|
// Draw the diagram with the renderer
|
||||||
try {
|
try {
|
||||||
await diag.renderer.draw(text, id, version, diag);
|
await diag.renderer.draw(text, id, packageJson.version, diag);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (config.suppressErrorRendering) {
|
if (config.suppressErrorRendering) {
|
||||||
removeTempElements();
|
removeTempElements();
|
||||||
} else {
|
} else {
|
||||||
errorRenderer.draw(text, id, version);
|
errorRenderer.draw(text, id, packageJson.version);
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://typedoc.org/schema.json",
|
||||||
"plugin": ["typedoc-plugin-markdown"],
|
"plugin": ["typedoc-plugin-markdown"],
|
||||||
"readme": "none",
|
"readme": "none",
|
||||||
"githubPages": false,
|
"githubPages": false,
|
||||||
@@ -6,6 +7,5 @@
|
|||||||
"gitRevision": "master",
|
"gitRevision": "master",
|
||||||
"out": "src/docs/config/setup",
|
"out": "src/docs/config/setup",
|
||||||
"entryPointStrategy": "expand",
|
"entryPointStrategy": "expand",
|
||||||
"hideBreadcrumbs": true,
|
"hideBreadcrumbs": true
|
||||||
"hideInPageTOC": true
|
|
||||||
}
|
}
|
||||||
|
35
pnpm-lock.yaml
generated
35
pnpm-lock.yaml
generated
@@ -381,11 +381,11 @@ importers:
|
|||||||
specifier: ^4.13.1
|
specifier: ^4.13.1
|
||||||
version: 4.35.0
|
version: 4.35.0
|
||||||
typedoc:
|
typedoc:
|
||||||
specifier: ^0.27.0
|
specifier: ^0.27.7
|
||||||
version: 0.27.7(typescript@5.7.3)
|
version: 0.27.7(typescript@5.7.3)
|
||||||
typedoc-plugin-markdown:
|
typedoc-plugin-markdown:
|
||||||
specifier: ^3.17.1
|
specifier: ^4.4.2
|
||||||
version: 3.17.1(typedoc@0.27.7(typescript@5.7.3))
|
version: 4.4.2(typedoc@0.27.7(typescript@5.7.3))
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ~5.7.0
|
specifier: ~5.7.0
|
||||||
version: 5.7.3
|
version: 5.7.3
|
||||||
@@ -6328,11 +6328,6 @@ packages:
|
|||||||
handle-thing@2.0.1:
|
handle-thing@2.0.1:
|
||||||
resolution: {integrity: sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==}
|
resolution: {integrity: sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==}
|
||||||
|
|
||||||
handlebars@4.7.8:
|
|
||||||
resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==}
|
|
||||||
engines: {node: '>=0.4.7'}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
has-ansi@2.0.0:
|
has-ansi@2.0.0:
|
||||||
resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==}
|
resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
@@ -9600,10 +9595,11 @@ packages:
|
|||||||
typedarray-to-buffer@3.1.5:
|
typedarray-to-buffer@3.1.5:
|
||||||
resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}
|
resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}
|
||||||
|
|
||||||
typedoc-plugin-markdown@3.17.1:
|
typedoc-plugin-markdown@4.4.2:
|
||||||
resolution: {integrity: sha512-QzdU3fj0Kzw2XSdoL15ExLASt2WPqD7FbLeaqwT70+XjKyTshBnUlQA5nNREO1C2P8Uen0CDjsBLMsCQ+zd0lw==}
|
resolution: {integrity: sha512-kJVkU2Wd+AXQpyL6DlYXXRrfNrHrEIUgiABWH8Z+2Lz5Sq6an4dQ/hfvP75bbokjNDUskOdFlEEm/0fSVyC7eg==}
|
||||||
|
engines: {node: '>= 18'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
typedoc: '>=0.24.0'
|
typedoc: 0.27.x
|
||||||
|
|
||||||
typedoc@0.27.7:
|
typedoc@0.27.7:
|
||||||
resolution: {integrity: sha512-K/JaUPX18+61W3VXek1cWC5gwmuLvYTOXJzBvD9W7jFvbPnefRnCHQCEPw7MSNrP/Hj7JJrhZtDDLKdcYm6ucg==}
|
resolution: {integrity: sha512-K/JaUPX18+61W3VXek1cWC5gwmuLvYTOXJzBvD9W7jFvbPnefRnCHQCEPw7MSNrP/Hj7JJrhZtDDLKdcYm6ucg==}
|
||||||
@@ -10200,9 +10196,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
|
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
wordwrap@1.0.0:
|
|
||||||
resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==}
|
|
||||||
|
|
||||||
workbox-background-sync@7.1.0:
|
workbox-background-sync@7.1.0:
|
||||||
resolution: {integrity: sha512-rMbgrzueVWDFcEq1610YyDW71z0oAXLfdRHRQcKw4SGihkfOK0JUEvqWHFwA6rJ+6TClnMIn7KQI5PNN1XQXwQ==}
|
resolution: {integrity: sha512-rMbgrzueVWDFcEq1610YyDW71z0oAXLfdRHRQcKw4SGihkfOK0JUEvqWHFwA6rJ+6TClnMIn7KQI5PNN1XQXwQ==}
|
||||||
|
|
||||||
@@ -17854,15 +17847,6 @@ snapshots:
|
|||||||
|
|
||||||
handle-thing@2.0.1: {}
|
handle-thing@2.0.1: {}
|
||||||
|
|
||||||
handlebars@4.7.8:
|
|
||||||
dependencies:
|
|
||||||
minimist: 1.2.8
|
|
||||||
neo-async: 2.6.2
|
|
||||||
source-map: 0.6.1
|
|
||||||
wordwrap: 1.0.0
|
|
||||||
optionalDependencies:
|
|
||||||
uglify-js: 3.19.3
|
|
||||||
|
|
||||||
has-ansi@2.0.0:
|
has-ansi@2.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
ansi-regex: 2.1.1
|
ansi-regex: 2.1.1
|
||||||
@@ -21724,9 +21708,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-typedarray: 1.0.0
|
is-typedarray: 1.0.0
|
||||||
|
|
||||||
typedoc-plugin-markdown@3.17.1(typedoc@0.27.7(typescript@5.7.3)):
|
typedoc-plugin-markdown@4.4.2(typedoc@0.27.7(typescript@5.7.3)):
|
||||||
dependencies:
|
dependencies:
|
||||||
handlebars: 4.7.8
|
|
||||||
typedoc: 0.27.7(typescript@5.7.3)
|
typedoc: 0.27.7(typescript@5.7.3)
|
||||||
|
|
||||||
typedoc@0.27.7(typescript@5.7.3):
|
typedoc@0.27.7(typescript@5.7.3):
|
||||||
@@ -22514,8 +22497,6 @@ snapshots:
|
|||||||
|
|
||||||
word-wrap@1.2.5: {}
|
word-wrap@1.2.5: {}
|
||||||
|
|
||||||
wordwrap@1.0.0: {}
|
|
||||||
|
|
||||||
workbox-background-sync@7.1.0:
|
workbox-background-sync@7.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
idb: 7.1.1
|
idb: 7.1.1
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
||||||
|
|
||||||
/* Language and Environment */
|
/* Language and Environment */
|
||||||
"target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
"target": "ES2018" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
||||||
"lib": [
|
"lib": [
|
||||||
"DOM",
|
"DOM",
|
||||||
"ES2022"
|
"ES2022"
|
||||||
|
Reference in New Issue
Block a user