Skip to content

Commit

Permalink
chore: Revert unnecessary export
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 28, 2023
1 parent 9c2dae9 commit 89b3923
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/mermaid/src/rendering-util/createText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 89b3923

Please sign in to comment.