Fix circle shape neo look for flowchart

This commit is contained in:
Ashish Jain
2024-06-18 14:16:28 +02:00
parent 41a5f2dacd
commit 2007cab5ee
2 changed files with 9 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ import rough from 'roughjs';
export const circle = async (parent: SVGAElement, node: Node): Promise<SVGAElement> => {
const { shapeSvg, bbox, halfPadding } = await labelHelper(parent, node, getNodeClasses(node));
const radius = bbox.width / 2 + halfPadding;
const labelPadding = node.look === 'neo' ? halfPadding * 2 : halfPadding;
const radius = bbox.width / 2 + labelPadding;
let circleElem;
const { cssStyles } = node;

View File

@@ -93,11 +93,17 @@ const getStyles = (
stroke: $(options.nodeBorder);
stroke: ${options.useGradient ? 'url(#gradient)' : options.nodeBorder};
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
fill: #000000;
//fill: #000000;
// rx: 3;
// ry: 3;
}
[data-look="neo"].node circle .state-start{
fill: #000000;
}
[data-look="neo"].statediagram-cluster rect {
fill: ${options.compositeTitleBackground};
stroke: ${options.useGradient ? 'url(#gradient)' : options.nodeBorder};