diff --git a/core/block_svg.ts b/core/block_svg.ts index 7bdbd5b79..acead527a 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -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);