mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-02 07:06:43 +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;`);
|
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') {
|
if (cssStyles && cssStyles.length > 0 && node.look !== 'handDrawn') {
|
||||||
filledCircle.selectAll('path').attr('style', cssStyles);
|
filledCircle.selectAll('path').attr('style', cssStyles);
|
||||||
}
|
}
|
||||||
|
@@ -68,6 +68,10 @@ export function stateEnd<T extends SVGGraphicsElement>(
|
|||||||
const circle = shapeSvg.insert(() => roughNode, ':first-child');
|
const circle = shapeSvg.insert(() => roughNode, ':first-child');
|
||||||
circle.insert(() => roughInnerNode);
|
circle.insert(() => roughInnerNode);
|
||||||
|
|
||||||
|
if (node.look !== 'handDrawn') {
|
||||||
|
circle.attr('class', 'outer-path');
|
||||||
|
}
|
||||||
|
|
||||||
if (cssStyles) {
|
if (cssStyles) {
|
||||||
circle.selectAll('path').attr('style', cssStyles);
|
circle.selectAll('path').attr('style', cssStyles);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user