fix: remove border for mindmap rounded rect shape

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-08-18 13:16:35 +05:30
parent 180dc7bdff
commit 7e9577dffd

View File

@@ -103,13 +103,12 @@ export async function roundedRect<T extends SVGGraphicsElement>(
const { cssStyles } = node;
// @ts-expect-error -- Passing a D3.Selection seems to work for some reason
const rc = rough.svg(shapeSvg);
const options = {
...userNodeOverrides(node, {}),
stroke: 'none',
};
const options = userNodeOverrides(node, {});
if (node.look !== 'handDrawn') {
options.roughness = 0;
options.fillStyle = 'solid';
options.stroke = 'none';
}
const points = [