Skip to content

Commit

Permalink
feat: Add blockShadow class
Browse files Browse the repository at this point in the history
  • Loading branch information
devesh-2002 committed Jul 12, 2024
1 parent f8025a1 commit 30f0ce9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/renderers/common/path_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ export class PathObject implements IPathObject {
*/
protected updateShadow_(shadow: boolean) {
if (shadow) {
this.setClass_('blocklyShadow', true);
this.svgPath.setAttribute('stroke', 'none');
this.svgPath.setAttribute('fill', this.style.colourSecondary);
}
else{
this.setClass_('blocklyShadow', false);
}
}

/**
Expand Down

0 comments on commit 30f0ce9

Please sign in to comment.