Configuration example 2

This commit is contained in:
erelling 2019-08-28 21:13:38 +02:00 committed by GitHub
parent f0b039ad10
commit bab75625cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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