mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user