mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
18 lines
373 B
TypeScript
18 lines
373 B
TypeScript
|
// @ts-ignore: TODO Fix ts errors
|
||
|
import parser from './parser/exampleDiagram';
|
||
|
import * as db from './exampleDiagramDb';
|
||
|
import renderer from './exampleDiagramRenderer';
|
||
|
import styles from './styles';
|
||
|
import { injectUtils } from './mermaidUtils';
|
||
|
|
||
|
window.mermaid.connectDiagram(
|
||
|
'example-diagram',
|
||
|
{
|
||
|
db,
|
||
|
renderer,
|
||
|
parser,
|
||
|
styles,
|
||
|
},
|
||
|
injectUtils
|
||
|
);
|