From 616f8eb8b2c8019d366078d922c5447bac69ef02 Mon Sep 17 00:00:00 2001 From: yari-dewalt Date: Wed, 6 Nov 2024 10:21:11 -0800 Subject: [PATCH] Remove 'true' being passed in as the shapeSvg for labelHelper() --- packages/mermaid-layout-elk/src/render.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mermaid-layout-elk/src/render.ts b/packages/mermaid-layout-elk/src/render.ts index 60cdff8d62..3ff6725851 100644 --- a/packages/mermaid-layout-elk/src/render.ts +++ b/packages/mermaid-layout-elk/src/render.ts @@ -73,8 +73,7 @@ export const render = async ( await addVertices(nodeEl, nodeArr, child, node.id); if (node.label) { - // @ts-ignore TODO: fix this - const { shapeSvg, bbox } = await labelHelper(nodeEl, node, undefined, true); + const { shapeSvg, bbox } = await labelHelper(nodeEl, node, undefined); labelData.width = bbox.width; labelData.wrappingWidth = config.flowchart!.wrappingWidth; // Give some padding for elk