blockly > RenderedConnection > (constructor)
RenderedConnection.(constructor)
Constructs a new instance of the RenderedConnection
class
Signature:
constructor(source: BlockSvg, type: number);
Parameters
Parameter |
Type |
Description |
source |
BlockSvg |
The block establishing this connection. |
type |
number |
The type of the connection. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["Initializes a new `RenderedConnection` object, linking it to a specific block and connection type."],["`RenderedConnection` requires a `BlockSvg` instance as its source and a numerical value representing the connection type upon creation."],["This constructor is fundamental for establishing visual connections between blocks in Blockly."]]],[]]