mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-05 12:04:45 +01:00
fix: remove border for mindmap rounded rect shape
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -103,13 +103,12 @@ export async function roundedRect<T extends SVGGraphicsElement>(
|
|||||||
const { cssStyles } = node;
|
const { cssStyles } = node;
|
||||||
// @ts-expect-error -- Passing a D3.Selection seems to work for some reason
|
// @ts-expect-error -- Passing a D3.Selection seems to work for some reason
|
||||||
const rc = rough.svg(shapeSvg);
|
const rc = rough.svg(shapeSvg);
|
||||||
const options = {
|
const options = userNodeOverrides(node, {});
|
||||||
...userNodeOverrides(node, {}),
|
|
||||||
stroke: 'none',
|
|
||||||
};
|
|
||||||
if (node.look !== 'handDrawn') {
|
if (node.look !== 'handDrawn') {
|
||||||
options.roughness = 0;
|
options.roughness = 0;
|
||||||
options.fillStyle = 'solid';
|
options.fillStyle = 'solid';
|
||||||
|
options.stroke = 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
const points = [
|
const points = [
|
||||||
|
|||||||
Reference in New Issue
Block a user