feat: add the block's type as a CSS class to the block's root SVG (#8428)

* feat: Added the block's type as a CSS class to the block's root SVG https://github.com/google/blockly/issues/8268

* fix: Added the block type as a CSS class to the blocks root SVG https://github.com/google/blockly/issues/8268
This commit is contained in:
Tejas Ghatule
2024-07-31 06:42:48 +05:30
committed by GitHub
parent 9c88970d46
commit 203e422977

View File

@@ -184,6 +184,9 @@ export class BlockSvg
this.workspace = workspace;
this.svgGroup_ = dom.createSvgElement(Svg.G, {});
if (prototypeName) {
dom.addClass(this.svgGroup_, prototypeName);
}
/** A block style object. */
this.style = workspace.getRenderer().getConstants().getBlockStyle(null);