packages/mermaid/src/rendering-util/createText.ts
Function addHtmlSpan
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addHtmlSpan(element, node, width, classes, addBackground = false) {
const fo = element.append('foreignObject');
const div = fo.append('xhtml:div');
const label = node.label;
Function createFormattedText
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createFormattedText(
width: number,
g: any,
structuredText: MarkdownWord[][],
addBackground = false
Function addHtmlSpan
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function addHtmlSpan(element, node, width, classes, addBackground = false) {