mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-04 19:44:11 +01:00
Updated label padding, and set rx, ry for neo-style class
This commit is contained in:
@@ -11,9 +11,9 @@ export const roundedRect = async (parent: SVGAElement, node: Node) => {
|
||||
labelPaddingX: node.look === 'neo' ? node.padding * 2 : node.padding,
|
||||
labelPaddingY: node.look === 'neo' ? node.padding : node.padding,
|
||||
classes: '',
|
||||
labelPaddingX: (node?.padding || 0) * 1,
|
||||
labelPaddingY: (node?.padding || 0) * 1,
|
||||
} as RectOptions;
|
||||
|
||||
console.log('Perra1, node, options: ', node, options);
|
||||
|
||||
return drawRect(parent, node, options);
|
||||
};
|
||||
|
||||
@@ -76,12 +76,16 @@ const getStyles = (
|
||||
[data-look="neo"].node rect, [data-look="neo"].node circle, [data-look="neo"].node polygon {
|
||||
stroke: none;
|
||||
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
|
||||
rx: 3;
|
||||
ry: 3;
|
||||
}
|
||||
|
||||
[data-look="neo"].statediagram-cluster rect {
|
||||
fill: ${options.compositeTitleBackground};
|
||||
stroke: none;
|
||||
stroke-width: 1px;
|
||||
rx: 3;
|
||||
ry: 3;
|
||||
}
|
||||
|
||||
${userStyles}
|
||||
|
||||
Reference in New Issue
Block a user