Merge branch 'master' of github.com:mermaid-js/mermaid

# Conflicts:
#	docs/classDiagram.md
This commit is contained in:
Knut Sveidqvist
2020-01-11 09:47:51 +01:00
2 changed files with 17 additions and 25 deletions

View File

@@ -118,6 +118,7 @@ There are two ways to define the members of a class, and regardless of whichever
BankAccount : +deposit(amount)
BankAccount : +withdrawl(amount)
```
``` mermaid
classDiagram
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 : +deposit(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:
```
@@ -137,7 +138,7 @@ class BankAccount{
}
```
```mermaid
classDiagram
classDiagram
class BankAccount{
+String owner
+BigDecimal balance

View File

@@ -27,6 +27,7 @@ mermaid.initialize({
**Example 2:**
<pre>
<script>
var config = {
startOnLoad:true,
flowchart:{
@@ -38,6 +39,8 @@ mermaid.initialize({
securityLevel:'loose',
};
mermaid.initialize(config);
</script>
</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.
@@ -102,18 +105,6 @@ Flag for setting whether or not a html tag should be used for rendering labels
on the edges.
**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
How mermaid renders curves for flowcharts. Possible values are