mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 18:26:39 +02:00
shapes updated for drop shadow syling in redux theme
This commit is contained in:
@@ -57,6 +57,10 @@ export function filledCircle<T extends SVGGraphicsElement>(
|
||||
|
||||
filledCircle.selectAll('path').attr('style', `fill: ${nodeBorder} !important;`);
|
||||
|
||||
if (node.look !== 'handDrawn') {
|
||||
filledCircle.attr('class', 'outer-path');
|
||||
}
|
||||
|
||||
if (cssStyles && cssStyles.length > 0 && node.look !== 'handDrawn') {
|
||||
filledCircle.selectAll('path').attr('style', cssStyles);
|
||||
}
|
||||
|
@@ -68,6 +68,10 @@ export function stateEnd<T extends SVGGraphicsElement>(
|
||||
const circle = shapeSvg.insert(() => roughNode, ':first-child');
|
||||
circle.insert(() => roughInnerNode);
|
||||
|
||||
if (node.look !== 'handDrawn') {
|
||||
circle.attr('class', 'outer-path');
|
||||
}
|
||||
|
||||
if (cssStyles) {
|
||||
circle.selectAll('path').attr('style', cssStyles);
|
||||
}
|
||||
|
Reference in New Issue
Block a user