mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-05 20:14:14 +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,
|
labelPaddingX: node.look === 'neo' ? node.padding * 2 : node.padding,
|
||||||
labelPaddingY: node.look === 'neo' ? node.padding : node.padding,
|
labelPaddingY: node.look === 'neo' ? node.padding : node.padding,
|
||||||
classes: '',
|
classes: '',
|
||||||
labelPaddingX: (node?.padding || 0) * 1,
|
|
||||||
labelPaddingY: (node?.padding || 0) * 1,
|
|
||||||
} as RectOptions;
|
} as RectOptions;
|
||||||
|
|
||||||
|
console.log('Perra1, node, options: ', node, options);
|
||||||
|
|
||||||
return drawRect(parent, 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 {
|
[data-look="neo"].node rect, [data-look="neo"].node circle, [data-look="neo"].node polygon {
|
||||||
stroke: none;
|
stroke: none;
|
||||||
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
|
filter: drop-shadow( 1px 2px 2px rgba(185,185,185,1.0) );
|
||||||
|
rx: 3;
|
||||||
|
ry: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-look="neo"].statediagram-cluster rect {
|
[data-look="neo"].statediagram-cluster rect {
|
||||||
fill: ${options.compositeTitleBackground};
|
fill: ${options.compositeTitleBackground};
|
||||||
stroke: none;
|
stroke: none;
|
||||||
stroke-width: 1px;
|
stroke-width: 1px;
|
||||||
|
rx: 3;
|
||||||
|
ry: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
${userStyles}
|
${userStyles}
|
||||||
|
|||||||
Reference in New Issue
Block a user