Fixing build after last batch of changes

This commit is contained in:
Knut Sveidqvist
2023-02-08 13:16:33 +01:00
parent 7f254e37e9
commit ce037a84ca
5 changed files with 27 additions and 30 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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