Skip to main content

Home > 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

ParameterTypeDescription
connectionRenderedConnectionThe connection to find a shape object for

Returns:

Shape

The shape object for the connection.