mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
Updated shaded process
This commit is contained in:
@@ -24,11 +24,22 @@ export const shadedProcess = async (parent: SVGAElement, node: Node) => {
|
|||||||
options.fillStyle = 'solid';
|
options.fillStyle = 'solid';
|
||||||
}
|
}
|
||||||
|
|
||||||
const roughNode = rc.rectangle(x - 8, y, w + 16, h, options);
|
const points = [
|
||||||
const l1 = rc.line(x, y, x, y + h, options);
|
{ x, y },
|
||||||
|
{ x: x + w + 8, y },
|
||||||
|
{ x: x + w + 8, y: y + h },
|
||||||
|
{ x: x - 8, y: y + h },
|
||||||
|
{ x: x - 8, y: y },
|
||||||
|
{ x, y },
|
||||||
|
{ x, y: y + h },
|
||||||
|
];
|
||||||
|
|
||||||
const rect = shapeSvg.insert(() => l1, ':first-child');
|
const roughNode = rc.polygon(
|
||||||
rect.insert(() => roughNode, ':first-child');
|
points.map((p) => [p.x, p.y]),
|
||||||
|
options
|
||||||
|
);
|
||||||
|
|
||||||
|
const rect = shapeSvg.insert(() => roughNode, ':first-child');
|
||||||
|
|
||||||
rect.attr('class', 'basic label-container').attr('style', cssStyles);
|
rect.attr('class', 'basic label-container').attr('style', cssStyles);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user