Skip to content

Commit

Permalink
Remove 'true' being passed in as the shapeSvg for labelHelper()
Browse files Browse the repository at this point in the history
  • Loading branch information
yari-dewalt committed Nov 6, 2024
1 parent ece3b25 commit 616f8eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/mermaid-layout-elk/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 616f8eb

Please sign in to comment.