mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-04 19:44:11 +01:00
Configuration example 2
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user