mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-07 09:36:41 +02:00
Merge branch 'master' of github.com:mermaid-js/mermaid
# Conflicts: # docs/classDiagram.md
This commit is contained in:
@@ -118,6 +118,7 @@ There are two ways to define the members of a class, and regardless of whichever
|
|||||||
BankAccount : +deposit(amount)
|
BankAccount : +deposit(amount)
|
||||||
BankAccount : +withdrawl(amount)
|
BankAccount : +withdrawl(amount)
|
||||||
```
|
```
|
||||||
|
|
||||||
``` mermaid
|
``` mermaid
|
||||||
classDiagram
|
classDiagram
|
||||||
class BankAccount
|
class BankAccount
|
||||||
@@ -125,7 +126,7 @@ There are two ways to define the members of a class, and regardless of whichever
|
|||||||
BankAccount : +BigDecimal balance
|
BankAccount : +BigDecimal balance
|
||||||
BankAccount : +deposit(amount)
|
BankAccount : +deposit(amount)
|
||||||
BankAccount : +withdrawl(amount)
|
BankAccount : +withdrawl(amount)
|
||||||
```
|
```
|
||||||
|
|
||||||
- Associate members of a class using **{}** brackets, where members are grouped within curly brackets. Suitable for defining multiple members at once. For example:
|
- Associate members of a class using **{}** brackets, where members are grouped within curly brackets. Suitable for defining multiple members at once. For example:
|
||||||
```
|
```
|
||||||
|
@@ -27,6 +27,7 @@ mermaid.initialize({
|
|||||||
**Example 2:**
|
**Example 2:**
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
<script>
|
||||||
var config = {
|
var config = {
|
||||||
startOnLoad:true,
|
startOnLoad:true,
|
||||||
flowchart:{
|
flowchart:{
|
||||||
@@ -38,6 +39,8 @@ mermaid.initialize({
|
|||||||
securityLevel:'loose',
|
securityLevel:'loose',
|
||||||
};
|
};
|
||||||
mermaid.initialize(config);
|
mermaid.initialize(config);
|
||||||
|
</script>
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#mermaidapi-configuration-defaults). A description of each option follows below.
|
A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#mermaidapi-configuration-defaults). A description of each option follows below.
|
||||||
|
|
||||||
@@ -102,18 +105,6 @@ 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
|
||||||
|
Reference in New Issue
Block a user