Stay organized with collections Save and categorize content based on your preferences.

blockly > Flyout > addBlockListeners_

Flyout.addBlockListeners_() method

Add listeners to a block that has been added to the flyout.


protected addBlockListeners_(root: SVGElement, block: BlockSvg, rect: SVGElement): void;


Parameter Type Description
root SVGElement The root node of the SVG group the block is in.
block BlockSvg The block to add listeners for.
rect SVGElement The invisible rectangle under the block that acts as a mat for that block.