blockly > RenderedConnection > distanceFrom
RenderedConnection.distanceFrom() 方法
返回此连接与另一个连接之间的距离(以工作区单位为单位)。
Signature:
distanceFrom(otherConnection: Connection): number;
参数
参数 | 类型 | 说明 |
---|---|---|
otherConnection | 连接 | 测量距离的另一个连接。 |
返回:
number
连接之间的距离,以工作区单位为单位。