Merge pull request #1198 from GDFaber/bug/add_docs_and_defaults_for_node_spacing

Add docs and default values for node spacing in mermaidAPI
This commit is contained in:
Knut Sveidqvist 2020-01-15 16:48:58 +01:00 committed by GitHub
commit c0e1c90497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -142,6 +142,20 @@ const config = {
*/
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
* * basis