Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
блочно > blockRendering > IPathObject > addConnectionHighlight
Метод blockRendering.IPathObject.addConnectionHighlight()
Добавляет указанный путь в качестве подсветки соединения для указанного соединения.
Подпись:
addConnectionHighlight?(connection: RenderedConnection, connectionPath: string, offset: Coordinate, rtl: boolean): SVGElement;
Параметры
Параметр | Тип | Описание |
---|
связь | Оказанное соединение | |
подключениеПуть | нить | |
компенсировать | Координировать | |
ртл | булев | |
Возврат:
SVGElement
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-05-16 UTC.
[[["Прост для понимания","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 UTC."],[[["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"]]