تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > RenderedConnection > distanceFrom
طريقة RenderedConnection.distanceFrom()
لعرض المسافة بين هذا الاتصال واتصال آخر في وحدات مساحة العمل.
Signature:
distanceFrom(otherConnection: Connection): number;
المعلمات
المعلمة |
النوع |
الوصف |
otherConnection |
التواصل |
الاتصال الآخر المطلوب قياس المسافة إليه. |
المرتجعات:
الرقم
المسافة بين الاتصالات في وحدات مساحة العمل.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],["The `distanceFrom()` method, part of the `RenderedConnection` class, calculates the distance between two connections. It accepts one parameter, `otherConnection`, of type `Connection`, representing the connection to measure against. The method returns a `number` value, which represents the distance separating the two connections, measured in workspace units. The core action is the calculation of the distance, with the other connection serving as the reference point.\n"]]