feat: Add a blocklyShadow class (#8336)

* feat: Add blockShadow class

* formatted the file
This commit is contained in:
Devesh Rahatekar
2024-07-17 22:14:24 +05:30
committed by GitHub
parent bef8d8319d
commit 8cca066bcf

View File

@@ -186,8 +186,11 @@ 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);
}
}