From f424a511336a0442dc7ae7974db45da38460d1a9 Mon Sep 17 00:00:00 2001 From: omkarht Date: Fri, 23 Aug 2024 13:30:51 +0530 Subject: [PATCH] updated tiltedCylinder shape --- .../rendering-elements/shapes/tiltedCylinder.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts index 2fabcd4827..c37a1f39c9 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts @@ -44,10 +44,10 @@ export const tiltedCylinder = async (parent: SVGAElement, node: Node) => { const cylinderNode = rc.path(cylinderPath, options); const innerPath = createInnerPathD(rx, ry, w, h); - const innerNode = rc.path(innerPath, options); + const innerNode = rc.path(innerPath, { ...options, fill: 'none' }); - let tiltedCylinder = shapeSvg.insert(() => innerNode, ':first-child'); - tiltedCylinder = shapeSvg.insert(() => cylinderNode, ':first-child'); + const tiltedCylinder = shapeSvg.insert(() => innerNode, ':first-child'); + tiltedCylinder.insert(() => cylinderNode, ':first-child'); tiltedCylinder.attr('class', 'basic label-container');