From b3ce56c7fcab1140d20f7cea2c5f131fc773c2cc Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 9 Jun 2023 17:03:02 +0530 Subject: [PATCH] Cleanup --- packages/mermaid/src/rendering-util/createText.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/mermaid/src/rendering-util/createText.js b/packages/mermaid/src/rendering-util/createText.js index 517097d7a..06fba94c7 100644 --- a/packages/mermaid/src/rendering-util/createText.js +++ b/packages/mermaid/src/rendering-util/createText.js @@ -109,9 +109,6 @@ function createFormattedText(width, g, structuredText, addBackground = false) { const labelGroup = g.append('g'); let bkg = labelGroup.insert('rect').attr('class', 'background'); const textElement = labelGroup.append('text').attr('y', '-10.1'); - // .attr('dominant-baseline', 'middle') - // .attr('text-anchor', 'middle'); - // .attr('text-anchor', 'middle'); let lineIndex = 0; structuredText.forEach((line) => { /** @@ -139,7 +136,6 @@ function createFormattedText(width, g, structuredText, addBackground = false) { .attr('y', -padding) .attr('width', bbox.width + 2 * padding) .attr('height', bbox.height + 2 * padding); - // .style('fill', 'red'); return labelGroup.node(); } else {