2022-09-21 11:03:33 +02:00
|
|
|
// @ts-ignore: TODO Fix ts errors
|
2022-09-23 16:55:30 +02:00
|
|
|
// import mindmapParser from './parser/mindmap';
|
2022-09-21 12:35:25 +02:00
|
|
|
// import * as mindmapDb from './mindmapDb';
|
2022-09-21 11:03:33 +02:00
|
|
|
import { mindmapDetector } from './mindmapDetector';
|
2022-09-23 16:55:30 +02:00
|
|
|
// import mindmapRenderer from './mindmapRenderer';
|
|
|
|
// import mindmapStyles from './styles';
|
2022-09-21 12:35:25 +02:00
|
|
|
|
|
|
|
import mermaid from 'mermaid';
|
|
|
|
|
2022-09-23 16:55:30 +02:00
|
|
|
console.log('mindmapDb', mermaid.mermaidAPI.getConfig()); // eslint-disable-line no-console
|
2022-09-21 12:35:25 +02:00
|
|
|
// registerDiagram()
|
2022-09-23 16:55:30 +02:00
|
|
|
|
|
|
|
// if (typeof document !== 'undefined') {
|
|
|
|
// /*!
|
|
|
|
// * Wait for document loaded before starting the execution
|
|
|
|
// */
|
|
|
|
// window.addEventListener(
|
|
|
|
// 'load',
|
|
|
|
// () => {
|
|
|
|
// if (window.mermaid && typeof window.mermaid.detectors === 'object') {
|
|
|
|
// window.mermaid.detectors.push(mindmapDetector);
|
|
|
|
// console.log(window.mermaid.detectors); // eslint-disable-line no-console
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// false
|
|
|
|
// );
|
|
|
|
// }
|