mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Configuration example 2
This commit is contained in:
parent
f0b039ad10
commit
bab75625cb
@ -11,7 +11,8 @@ somewhere in the page or something completely different.
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
These are the default options which can be overridden with the initialization call as in the example below:
|
These are the default options which can be overridden with the initialization call as shown below:
|
||||||
|
*Example 1:*
|
||||||
|
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
flowchart:{
|
flowchart:{
|
||||||
@ -19,6 +20,23 @@ These are the default options which can be overridden with the initialization ca
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
*Example 2:*
|
||||||
|
```
|
||||||
|
<script>
|
||||||
|
var config = {
|
||||||
|
startOnLoad:true,
|
||||||
|
flowchart:{
|
||||||
|
useMaxWidth:true,
|
||||||
|
htmlLabels:true,
|
||||||
|
curve:'cardinal',
|
||||||
|
},
|
||||||
|
|
||||||
|
securityLevel:'loose',
|
||||||
|
};
|
||||||
|
mermaid.initialize(config);
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
## theme
|
## theme
|
||||||
|
|
||||||
theme , the CSS style sheet
|
theme , the CSS style sheet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user