Merge branch 'eslint-fix' of https://github.com/mmorel-35/mermaid into mmorel-35-eslint-fix

This commit is contained in:
Knut Sveidqvist
2021-11-18 18:05:15 +01:00
61 changed files with 4465 additions and 3079 deletions

View File

@@ -20,7 +20,9 @@ let nodeDb = {};
/**
* Returns the all the styles from classDef statements in the graph definition.
* @returns {object} classDef styles
*
* @param {any} text
* @returns {object} ClassDef styles
*/
export const getClasses = function (text) {
log.trace('Extracting classes');
@@ -227,8 +229,9 @@ const getDir = (nodes, defaultDir) => {
};
/**
* Draws a flowchart in the tag with id: id based on the graph definition in text.
* @param text
* @param id
*
* @param {any} text
* @param {any} id
*/
export const draw = function (text, id) {
log.info('Drawing state diagram (v2)', id);