blockly > blockRendering > Panneau > positionStatementInputConnection_
Positionnez la connexion sur une entrée d'instruction, en tenant compte du RTL et de l'écart entre le bloc parent et le bloc enfant, qui permet de voir le chemin sombre du bloc parent.
Signature :
protected positionStatementInputConnection_(row: Row): void;
Paramètres
Paramètre |
Type |
Description |
ligne |
Ligne |
Ligne sur laquelle se trouve la connexion. |
Renvoie :
vide
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/10/15 (UTC).
[null,null,["Dernière mise à jour le 2024/10/15 (UTC)."],[[["This method positions the connection point on a statement input, adjusting for right-to-left text and visual spacing between blocks."],["It specifically ensures the connection point is placed to allow the parent block's outline to be visible."],["This internal function takes a `Row` object as input, representing the row containing the connection being positioned."]]],["The `positionStatementInputConnection_()` method, part of the `blockRendering.Drawer` class, positions a connection on a statement input. This method considers Right-to-Left (RTL) layouts and a small gap between parent and child blocks, allowing the parent's dark path to be visible. It takes a `Row` object as a parameter, representing the row where the connection is located. The method does not return any value.\n"]]