diff --git a/packages/mermaid/src/rendering-util/createText.ts b/packages/mermaid/src/rendering-util/createText.ts index 06697bc7d7..2b48cf5f3a 100644 --- a/packages/mermaid/src/rendering-util/createText.ts +++ b/packages/mermaid/src/rendering-util/createText.ts @@ -69,11 +69,7 @@ function createTspan(textElement: any, lineIndex: number, lineHeight: number) { .attr('dy', lineHeight + 'em'); } -export function computeWidthOfText( - parentNode: any, - lineHeight: number, - line: MarkdownLine -): number { +function computeWidthOfText(parentNode: any, lineHeight: number, line: MarkdownLine): number { const testElement = parentNode.append('text'); const testSpan = createTspan(testElement, 1, lineHeight); updateTextContentAndStyles(testSpan, line);