shapes updated for drop shadow syling in redux theme

This commit is contained in:
omkarht
2025-01-21 20:01:37 +05:30
parent 7afd7a9729
commit 8bc898ddf1
2 changed files with 8 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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);
}