mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 13:59:54 +02:00
Add docs and default values for node spacing in mermaidAPI
This commit is contained in:
@@ -105,6 +105,18 @@ Flag for setting whether or not a html tag should be used for rendering labels
|
|||||||
on the edges.
|
on the edges.
|
||||||
**Default value true**.
|
**Default value true**.
|
||||||
|
|
||||||
|
### nodeSpacing
|
||||||
|
|
||||||
|
Defines the spacing between nodes on the same level (meaning horizontal spacing for
|
||||||
|
TB or BT graphs, and the vertical spacing for LR as well as RL graphs).
|
||||||
|
**Default value 50**.
|
||||||
|
|
||||||
|
### rankSpacing
|
||||||
|
|
||||||
|
Defines the spacing between nodes on different levels (meaning vertical spacing for
|
||||||
|
TB or BT graphs, and the horizontal spacing for LR as well as RL graphs).
|
||||||
|
**Default value 50**.
|
||||||
|
|
||||||
### curve
|
### curve
|
||||||
|
|
||||||
How mermaid renders curves for flowcharts. Possible values are
|
How mermaid renders curves for flowcharts. Possible values are
|
||||||
|
@@ -142,6 +142,20 @@ const config = {
|
|||||||
*/
|
*/
|
||||||
htmlLabels: true,
|
htmlLabels: true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the spacing between nodes on the same level (meaning horizontal spacing for
|
||||||
|
* TB or BT graphs, and the vertical spacing for LR as well as RL graphs).
|
||||||
|
* **Default value 50**.
|
||||||
|
*/
|
||||||
|
nodeSpacing: 50,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the spacing between nodes on different levels (meaning vertical spacing for
|
||||||
|
* TB or BT graphs, and the horizontal spacing for LR as well as RL graphs).
|
||||||
|
* **Default value 50**.
|
||||||
|
*/
|
||||||
|
rankSpacing: 50,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* How mermaid renders curves for flowcharts. Possible values are
|
* How mermaid renders curves for flowcharts. Possible values are
|
||||||
* * basis
|
* * basis
|
||||||
|
Reference in New Issue
Block a user