mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
feat: Add a blocklyShadow class (#8336)
* feat: Add blockShadow class * formatted the file
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user