Home > blockly > Connection > (constructor)
Connection.(constructor)
Constructs a new instance of the Connection class
Signature:
constructor(source: Block, type: number);
Parameters
| Parameter | Type | Description |
|---|---|---|
| source | Block | The block establishing this connection. |
| type | number | The type of the connection. |