blockly > Flyout > addBlockListeners_

Flyout.addBlockListeners_() method

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

Signature:

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

Parameters

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.

Returns:

void