Skip to main content

Class: Connection

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

The base class to represent a connection and the space that it takes up on the block.

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.

Constructors

Constructor

new Connection(constants, connectionModel): Connection;

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

Parameters

ParameterTypeDescription
constantsConstantProviderThe rendering constants provider.
connectionModelRenderedConnectionThe connection object on the block that this represents.

Returns

Connection

Overrides

Measurable.constructor

Properties

width

width: number = 0;

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

Inherited from

Measurable.width


height

height: number = 0;

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

Inherited from

Measurable.height


type

type: number;

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

Inherited from

Measurable.type


xPos

xPos: number = 0;

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

Inherited from

Measurable.xPos


centerline

centerline: number = 0;

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

Inherited from

Measurable.centerline


notchOffset

notchOffset: number;

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

Inherited from

Measurable.notchOffset


constants_

protected readonly constants_: ConstantProvider;

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

The renderer's constant provider.

Inherited from

Measurable.constants_


shape

shape: Shape;

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


isDynamicShape

isDynamicShape: boolean;

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


highlighted

highlighted: boolean;

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


connectionModel

connectionModel: RenderedConnection;

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

The connection object on the block that this represents.