mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Fix circle shape neo look for flowchart
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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};
|
||||
|
Reference in New Issue
Block a user