Home > blockly > RenderedConnection > distanceFrom
RenderedConnection.distanceFrom() method
Returns the distance between this connection and another connection in workspace units.
Signature:
distanceFrom(otherConnection: Connection): number;
Parameters
| Parameter | Type | Description |
|---|---|---|
| otherConnection | Connection | The other connection to measure the distance to. |
Returns:
number
The distance between connections, in workspace units.