Skip to main content

Class: StatementInput

Defined in: packages/blockly/core/renderers/measurables/statement_input.ts:18

An object containing information about the space a statement input takes up during rendering

Extends​

Extended by​

Properties index​

PropertyDescription
width-
height-
type-
xPos-
centerline-
notchOffset-
constants_The renderer's constant provider.
shape-
isDynamicShape-
highlighted-
connectionModelThe connection object on the block that this represents.
align-
connectedBlock-
connectedBlockWidth-
connectedBlockHeight-
connectionOffsetX-
connectionOffsetY-
inputThe input to measure and store information for.

Constructors​

Constructor​

new StatementInput(constants, input): StatementInput;

Defined in: packages/blockly/core/renderers/measurables/statement_input.ts:31

Parameters​

ParameterTypeDescription
constantsConstantProviderThe rendering constants provider.
inputInputThe statement input to measure and store information for.

Returns​

StatementInput

Overrides​

InputConnection.constructor

Properties​

width​

width: number = 0;

Defined in: packages/blockly/core/renderers/measurables/base.ts:18

Inherited from​

InputConnection.width


height​

height: number = 0;

Defined in: packages/blockly/core/renderers/measurables/base.ts:20

Inherited from​

InputConnection.height


type​

type: number;

Defined in: packages/blockly/core/renderers/measurables/base.ts:21

Inherited from​

InputConnection.type


xPos​

xPos: number = 0;

Defined in: packages/blockly/core/renderers/measurables/base.ts:22

Inherited from​

InputConnection.xPos


centerline​

centerline: number = 0;

Defined in: packages/blockly/core/renderers/measurables/base.ts:24

Inherited from​

InputConnection.centerline


notchOffset​

notchOffset: number;

Defined in: packages/blockly/core/renderers/measurables/base.ts:25

Inherited from​

InputConnection.notchOffset


constants_​

protected readonly constants_: ConstantProvider;

Defined in: packages/blockly/core/renderers/measurables/base.ts:28

The renderer's constant provider.

Inherited from​

InputConnection.constants_


shape​

shape: Shape;

Defined in: packages/blockly/core/renderers/measurables/connection.ts:19

Inherited from​

InputConnection.shape


isDynamicShape​

isDynamicShape: boolean;

Defined in: packages/blockly/core/renderers/measurables/connection.ts:20

Inherited from​

InputConnection.isDynamicShape


highlighted​

highlighted: boolean;

Defined in: packages/blockly/core/renderers/measurables/connection.ts:21

Inherited from​

InputConnection.highlighted


connectionModel​

connectionModel: RenderedConnection;

Defined in: packages/blockly/core/renderers/measurables/connection.ts:30

The connection object on the block that this represents.

Inherited from​

InputConnection.connectionModel


align​

align: number;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:21

Inherited from​

InputConnection.align


connectedBlock​

connectedBlock: BlockSvg | null;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:22

Inherited from​

InputConnection.connectedBlock


connectedBlockWidth​

connectedBlockWidth: number;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:23

Inherited from​

InputConnection.connectedBlockWidth


connectedBlockHeight​

connectedBlockHeight: number;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:24

Inherited from​

InputConnection.connectedBlockHeight


connectionOffsetX​

connectionOffsetX: number = 0;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:25

Inherited from​

InputConnection.connectionOffsetX


connectionOffsetY​

connectionOffsetY: number = 0;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:26

Inherited from​

InputConnection.connectionOffsetY


input​

input: Input;

Defined in: packages/blockly/core/renderers/measurables/input_connection.ts:34

The input to measure and store information for.

Inherited from​

InputConnection.input