mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-01 22:56:51 +02:00
updated tiltedCylinder shape
This commit is contained in:
@@ -44,10 +44,10 @@ export const tiltedCylinder = async (parent: SVGAElement, node: Node) => {
|
|||||||
const cylinderNode = rc.path(cylinderPath, options);
|
const cylinderNode = rc.path(cylinderPath, options);
|
||||||
|
|
||||||
const innerPath = createInnerPathD(rx, ry, w, h);
|
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');
|
const tiltedCylinder = shapeSvg.insert(() => innerNode, ':first-child');
|
||||||
tiltedCylinder = shapeSvg.insert(() => cylinderNode, ':first-child');
|
tiltedCylinder.insert(() => cylinderNode, ':first-child');
|
||||||
|
|
||||||
tiltedCylinder.attr('class', 'basic label-container');
|
tiltedCylinder.attr('class', 'basic label-container');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user