blockly > RenderedConnection > targetBlock

RenderedConnection.targetBlock() method

Returns the block that this connection connects to.

Signature:

targetBlock(): BlockSvg | null;

Returns:

BlockSvg | null

The connected block or null if none is connected.