קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > IConnectionChecker > doDragChecks
שיטת IConnectionChecker.doDragChecks()
כדאי לבדוק אם ניתן לבצע את החיבור הזה באמצעות גרירה.
Signature:
doDragChecks(a: RenderedConnection, b: RenderedConnection, distance: number): boolean;
פרמטרים
| פרמטר |
סוג |
תיאור |
| a |
RenderedConnection |
חיבור להשוואה. |
| b |
RenderedConnection |
חיבור שאפשר להשוות אליו. |
| מרחק |
number |
המרחק המקסימלי המותר בין חיבורים. |
החזרות:
בוליאני
הערך הוא True אם החיבור מותר במהלך גרירה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],["The `doDragChecks` method, part of the `IConnectionChecker` interface, determines if a connection can be made during a drag operation. It takes two `RenderedConnection` objects, `a` and `b`, to compare, alongside a `distance` parameter indicating the maximum allowable separation. The method returns `true` if connecting the two is allowed within the specified distance; otherwise, it implies that no connection is allowed.\n"]]