28 lines
873 B
TypeScript
Raw Normal View History

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';
// 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';
import mermaid from 'mermaid';
2022-09-23 16:55:30 +02:00
console.log('mindmapDb', mermaid.mermaidAPI.getConfig()); // eslint-disable-line no-console
// 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
// );
// }