Connection to check compatibility with.
Connection to check compatibility with.
True if the connection is being made by dragging a block.
Optionalopt_distance: numberThe max allowable distance between the connections for drag checks.
Whether the connection is legal.
Checks whether the current connection can connect with the target connection, and return an error code if there are problems.
Connection to check compatibility with.
Connection to check compatibility with.
True if the connection is being made by dragging a block.
Optionalopt_distance: numberThe max allowable distance between the connections for drag checks.
Blockly.Connection.CAN_CONNECT if the connection is legal, an error code otherwise.
Check whether this connection can be made by dragging.
Connection to compare.
Connection to compare against.
The maximum allowable distance between connections.
True if the connection is allowed during a drag.
Check that connecting the given connections is safe, meaning that it would not break any of Blockly's basic assumptions (e.g. no self connections).
The first of the connections to check.
The second of the connections to check.
An enum with the reason this connection is safe or unsafe.
Check whether this connection is compatible with another connection with respect to the value type system. E.g. square_root("Hello") is not compatible.
Connection to compare.
Connection to compare against.
True if the connections share a type.
Helper method that translates a connection error code into a string.
The error code.
One of the two connections being checked.
The second of the two connections being checked.
A developer-readable error string.
Check whether the current connection can connect with the target connection.