تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > blockRendering > IPathObject > addConnectionHighlight
طريقة blockRendering.IPathObject.addConnectionHighlight()
تُضيف هذه الدالة المسار المحدَّد كتمييز اتصال للاتصال المحدَّد.
Signature:
addConnectionHighlight?(connection: RenderedConnection, connectionPath: string, offset: Coordinate, rtl: boolean): SVGElement;
المعلمات
المَعلمة |
النوع |
الوصف |
الاتصال |
RenderedConnection |
|
connectionPath |
سلسلة |
|
offset |
الإحداثيات |
|
rtl |
قيمة منطقية |
|
المرتجعات:
SVGElement
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-05-16 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-05-16 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `addConnectionHighlight` method visually highlights a connection on a rendered block using a specified path."],["This method requires the connection to highlight, the path to use for highlighting, an offset for positioning, and an RTL (right-to-left) flag."],["The method belongs to the `IPathObject` interface within Blockly's block rendering namespace."],["The highlight is applied by adding the specified path to the connection."],["Its return type is `void`, indicating that it does not return any value upon execution."]]],["The `addConnectionHighlight()` method, part of the `IPathObject` interface, adds a connection highlight. It takes a `RenderedConnection`, a `connectionPath` (string), a `Coordinate` offset, and a boolean `rtl` (right-to-left) parameter. This method visually highlights a connection by adding the provided `connectionPath`, positioned according to the given offset, for a specific `RenderedConnection`. The `rtl` parameter manages the highlight direction, and the method does not return a value.\n"]]