blockly > Flyout > moveRectToBlock_

Flyout.moveRectToBlock_() method

Move a rectangle to sit exactly behind a block, taking into account tabs, hats, and any other protrusions we invent.

Signature:

protected moveRectToBlock_(rect: SVGElement, block: BlockSvg): void;

Parameters

Parameter Type Description
rect SVGElement The rectangle to move directly behind the block.
block BlockSvg The block the rectangle should be behind.

Returns:

void