Has this connection been disposed of?
Connection this connection connects to. Null if not connected.
Horizontal location of this connection.
Vertical location of this connection.
Checks whether the current connection can connect with the target connection.
Connection to check compatibility with.
Blockly.Connection.CAN_CONNECT if the connection is legal, an error code otherwise.
Checks whether the current connection and target connection are compatible and throws an exception if they are not.
The connection to check compatibility with.
Is this connection compatible with another connection with respect to the value type system. E.g. square_root("Hello") is not compatible.
Connection to compare against.
True if the connections share a type.
Connect this connection to another connection.
Connection to connect to.
Disconnect this connection.
Get a connection's compatibility.
List of compatible value types. Null if all types are compatible.
Get the workspace's connection type checker object.
The connection type checker for the source block's workspace.
Get the parent input of a connection.
The input that the connection belongs to or null if no parent exists.
Returns the xml representation of the connection's shadow block.
OptionalreturnCurrent: booleanIf true, and the shadow block is currently attached to this connection, this serializes the state of that block and returns it (so that field values are correct). Otherwise the saved shadowDom is just returned.
Shadow DOM representation of a block or null.
Is the connection connected?
True if connection is connected to another connection.
Check if the two connections can be dragged to connect to each other.
A nearby connection to check.
True if the connection is allowed, false otherwise.
Does the connection belong to a superior block (higher in the source stack)?
True if connection faces down or right.
Find all nearby compatible connections to this connection. Type checking does not apply, since this function is used for bumping.
Headless configurations (the default) do not have neighboring connection, and always return an empty list (the default). Blockly.RenderedConnection overrides this behavior with a list computed from the rendered positioning.
The maximum radius to another connection.
List of connections.
Called when an attempted connection fails. NOP by default (i.e. for headless workspaces).
Connection that this connection failed to connect to.
Change a connection's compatibility.
Compatible value type or list of value types. Null if all types are compatible.
The connection being modified (to allow chaining).
Changes the connection's shadow block.
DOM representation of a block or null.
This method returns a string describing this Connection in developer terms (English only). Intended to on be used in console logs and errors.
The description.
Fake class which should be extended to avoid inheriting static properties