From 2f2fc1b4f11fc5c4d46ac9380a4c417c380be6f2 Mon Sep 17 00:00:00 2001 From: saurabhg772244 Date: Mon, 23 Sep 2024 15:48:46 +0530 Subject: [PATCH] updated window pane for new look --- .../rendering-util/rendering-elements/shapes/windowPane.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts index 59aa208ef..def369736 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts @@ -27,8 +27,8 @@ export const windowPane = async (parent: SVGAElement, node: Node) => { ]; const path = `M${x - rectOffset},${y - rectOffset} L${x + w},${y - rectOffset} L${x + w},${y + h} L${x - rectOffset},${y + h} L${x - rectOffset},${y - rectOffset} - M${x - rectOffset},${y} L${x + w},${y} - M${x},${y - rectOffset} L${x},${y + h}`; + M${x - rectOffset},${y} L${x + w},${y} L${x + w},${y + h} L${x - rectOffset},${y + h} L${x - rectOffset},${y} + M${x},${y - rectOffset} L${x + w},${y - rectOffset} L${x + w},${y + h} L${x},${y + h} L${x},${y - rectOffset}`; if (node.look !== 'handDrawn') { options.roughness = 0;