研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >IConnectionChecker>doDragChecks
IConnectionChecker.doDragChecks() 方法
检查是否可以通过拖动建立此关联。
Signature:
doDragChecks(a: RenderedConnection, b: RenderedConnection, distance: number): boolean;
参数
参数 |
类型 |
说明 |
a |
RenderedConnection |
要比较的连接。 |
b |
RenderedConnection |
要进行比较的连接。 |
距离 |
number |
连接之间允许的距离上限。 |
返回:
布尔值
如果在拖动期间允许连接,则为 true。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["The `doDragChecks` method within the `IConnectionChecker` interface determines if a connection is permissible during a drag operation."],["This method accepts two `RenderedConnection` objects (a and b) and a maximum distance value to evaluate the connection's validity."],["A boolean (true/false) is returned, indicating whether the connection is allowed based on the drag checks performed."]]],[]]