Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > blockRendering > IPathObject > addConnectionHighlight
Método blockRendering.IPathObject.addConnectionHighlight()
Agrega la ruta de acceso determinada como un destacado de conexión para la conexión determinada.
Signature:
addConnectionHighlight?(connection: RenderedConnection, connectionPath: string, offset: Coordinate, rtl: boolean): void;
Parámetros
Parámetro |
Tipo |
Descripción |
connection |
RenderedConnection |
|
connectionPath |
cadena |
|
offset |
Coordinación |
|
rtl |
boolean |
|
Devuelve:
void
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-02-16 (UTC)
[null,null,["Última actualización: 2024-02-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"]]