blockly > blockRendering > ConstantProvider > shapeFor

blockRendering.ConstantProvider.shapeFor() method

Get an object with connection shape and sizing information based on the type of the connection.

Signature:

shapeFor(connection: RenderedConnection): Shape;

Parameters

Parameter Type Description
connection RenderedConnection The connection to find a shape object for

Returns:

Shape

The shape object for the connection.