mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-05 03:54:35 +01:00
Fixing build after last batch of changes
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import {
|
||||
getCommonDb as _getCommonDb,
|
||||
parseDirective as _parseDirective,
|
||||
log,
|
||||
} from './mermaidUtils';
|
||||
|
||||
import { parseDirective as _parseDirective } from '../../directiveUtils';
|
||||
import * as commonDb from '../../commonDb';
|
||||
let currentSection = '';
|
||||
let currentTaskId = 0;
|
||||
|
||||
@@ -11,7 +7,7 @@ const sections = [];
|
||||
const tasks = [];
|
||||
const rawTasks = [];
|
||||
|
||||
export const getCommonDb = _getCommonDb;
|
||||
export const getCommonDb = () => commonDb;
|
||||
|
||||
export const parseDirective = (statement, context, type) => {
|
||||
_parseDirective(this, statement, context, type);
|
||||
@@ -22,7 +18,7 @@ export const clear = function () {
|
||||
tasks.length = 0;
|
||||
currentSection = '';
|
||||
rawTasks.length = 0;
|
||||
_getCommonDb().clear();
|
||||
commonDb.clear();
|
||||
};
|
||||
|
||||
export const addSection = function (txt) {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// @ts-nocheck TODO: fix file
|
||||
import { select } from 'd3';
|
||||
import svgDraw from './svgDraw';
|
||||
import { log, getConfig, setupGraphViewbox } from './mermaidUtils';
|
||||
import { log } from '../../logger';
|
||||
import { getConfig } from '../../config';
|
||||
import { setupGraphViewbox } from '../../setupGraphViewbox';
|
||||
|
||||
export const setConf = function (cnf) {
|
||||
const keys = Object.keys(cnf);
|
||||
|
||||
@@ -330,7 +330,6 @@ const registerExternalDiagrams = async (
|
||||
}
|
||||
};
|
||||
|
||||
externalDiagramsRegistered = true;
|
||||
/**
|
||||
* ##contentLoaded Callback function that is called when page is loaded. This functions fetches
|
||||
* configuration for mermaid rendering and calls init for rendering the mermaid diagrams on the
|
||||
|
||||
Reference in New Issue
Block a user