Skip to main content

Class: InputConnection

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

The base class to represent an input that takes up space on a block 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 InputConnection(constants, input): InputConnection;

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

Parameters

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

Returns

InputConnection

Overrides

Connection.constructor

Properties

width

width: number = 0;

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

Inherited from

Connection.width


height

height: number = 0;

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

Inherited from

Connection.height


type

type: number;

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

Inherited from

Connection.type


xPos

xPos: number = 0;

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

Inherited from

Connection.xPos


centerline

centerline: number = 0;

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

Inherited from

Connection.centerline


notchOffset

notchOffset: number;

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

Inherited from

Connection.notchOffset


constants_

protected readonly constants_: ConstantProvider;

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

The renderer's constant provider.

Inherited from

Connection.constants_


shape

shape: Shape;

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

Inherited from

Connection.shape


isDynamicShape

isDynamicShape: boolean;

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

Inherited from

Connection.isDynamicShape


highlighted

highlighted: boolean;

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

Inherited from

Connection.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

Connection.connectionModel


align

align: number;

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


connectedBlock

connectedBlock: BlockSvg | null;

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


connectedBlockWidth

connectedBlockWidth: number;

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


connectedBlockHeight

connectedBlockHeight: number;

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


connectionOffsetX

connectionOffsetX: number = 0;

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


connectionOffsetY

connectionOffsetY: number = 0;

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


input

input: Input;

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

The input to measure and store information for.