mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Expose block ID in SVG. (#1698)
This commit is contained in:
@@ -99,6 +99,9 @@ Blockly.BlockSvg = function(workspace, prototypeName, opt_id) {
|
||||
Blockly.Tooltip.bindMouseEvents(this.svgPath_);
|
||||
Blockly.BlockSvg.superClass_.constructor.call(this,
|
||||
workspace, prototypeName, opt_id);
|
||||
|
||||
// Expose this block's ID on its top-level SVG group.
|
||||
this.svgGroup_.id = this.id;
|
||||
};
|
||||
goog.inherits(Blockly.BlockSvg, Blockly.Block);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user