From 99f7d65f47f28ac24c01812274ac3a87ba132217 Mon Sep 17 00:00:00 2001 From: omkarht Date: Fri, 23 Aug 2024 19:09:35 +0530 Subject: [PATCH] updated shadedProcess shape --- .../rendering-elements/shapes/shadedProcess.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts index b60f1ec75a..507af1ff66 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts @@ -35,8 +35,12 @@ export const shadedProcess = async (parent: SVGAElement, node: Node) => { rect.attr('class', 'basic label-container').attr('style', cssStyles); - if (nodeStyles) { - rect.attr('style', nodeStyles); + if (nodeStyles && node.look !== 'handDrawn') { + rect.selectAll('path').attr('style', nodeStyles); + } + + if (cssStyles && node.look !== 'handDrawn') { + rect.selectAll('path').attr('style', nodeStyles); } updateNodeBounds(node, rect);