From 89b392327afc87caa0360f310b77f23b4bdf92b5 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 28 Nov 2023 11:34:58 +0530 Subject: [PATCH] chore: Revert unnecessary export --- packages/mermaid/src/rendering-util/createText.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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);