mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +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
|
||||
|
||||
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({
|
||||
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 , the CSS style sheet
|
||||
|
Loading…
x
Reference in New Issue
Block a user