mirror of
https://github.com/dtomlinson91/anno-production-chain-renderer.git
synced 2025-12-22 14:25:45 +00:00
add latest
This commit is contained in:
14
src/composables/mermaid.ts
Normal file
14
src/composables/mermaid.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { onMounted } from 'vue';
|
||||
import mermaid from 'mermaid';
|
||||
|
||||
export function initialiseMermaid() {
|
||||
onMounted(() => {
|
||||
mermaid.initialize({
|
||||
startOnLoad: false,
|
||||
logLevel: 'fatal',
|
||||
securityLevel: 'loose',
|
||||
theme: 'neutral',
|
||||
flowchart: { htmlLabels: true }
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user