Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > blockRendering > IPathObject > addConnectionHighlight
blockRendering.IPathObject.addConnectionHighlight()-Methode
Fügt den angegebenen Pfad als Verbindungshervorhebung für die angegebene Verbindung hinzu.
Unterschrift:
addConnectionHighlight?(connection: RenderedConnection, connectionPath: string, offset: Coordinate, rtl: boolean): void;
Parameters
Parameter |
Typ |
Beschreibung |
Verbindung |
RenderedConnection |
|
connectionPath |
String |
|
kompensiert |
Koordinaten |
|
rtl |
boolean |
|
Gibt zurück:
void
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-02-16 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]