Updated shaded process

This commit is contained in:
saurabhg772244
2024-09-23 15:02:01 +05:30
parent 1c105154a6
commit 02cadd87ff

View File

@@ -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);