mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-10 01:29:49 +02:00
change infoDb db export
This commit is contained in:
@@ -16,10 +16,8 @@ const clear = (): void => {
|
|||||||
info = DEFAULT_INFO_DB.info;
|
info = DEFAULT_INFO_DB.info;
|
||||||
};
|
};
|
||||||
|
|
||||||
const db: InfoDB = {
|
export const db: InfoDB = {
|
||||||
clear,
|
clear,
|
||||||
setInfo,
|
setInfo,
|
||||||
getInfo,
|
getInfo,
|
||||||
};
|
};
|
||||||
|
|
||||||
export { db };
|
|
||||||
|
@@ -10,7 +10,7 @@ import type { DrawDefinition, HTML, SVG } from '../../diagram-api/types.js';
|
|||||||
* @param id - The id of the diagram which will be used as a DOM element id.
|
* @param id - The id of the diagram which will be used as a DOM element id.
|
||||||
* @param version - MermaidJS version.
|
* @param version - MermaidJS version.
|
||||||
*/
|
*/
|
||||||
export const draw: DrawDefinition = (text, id, version) => {
|
const draw: DrawDefinition = (text, id, version) => {
|
||||||
try {
|
try {
|
||||||
log.debug('rendering info diagram\n' + text);
|
log.debug('rendering info diagram\n' + text);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user