Skip to content

Commit

Permalink
Update multiwaveEdgeRect styles
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhg772244 committed Aug 21, 2024
1 parent 3cfcb2d commit de875c9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ export const multiWaveEdgedRectangle = async (parent: SVGAElement, node: Node) =

shape.attr('class', 'basic label-container');

if (cssStyles) {
shape.attr('style', cssStyles);
if (cssStyles && node.look !== 'handDrawn') {
shape.selectAll('path').attr('style', cssStyles);
}

if (nodeStyles) {
shape.attr('style', nodeStyles);
if (nodeStyles && node.look !== 'handDrawn') {
shape.selectAll('path').attr('style', nodeStyles);
}

shape.attr('transform', `translate(0,${-waveAmplitude / 2})`);
Expand Down

0 comments on commit de875c9

Please sign in to comment.