blockly > blockRendering > RenderInfo > getSpacerRowWidth_
Méthode blockRendering.RenderInfo.getSpacerRowWidth_()
Calculez la largeur d'une ligne d'espace vide.
Signature :
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
Paramètres
Paramètre |
Type |
Description |
_prev |
Ligne |
La ligne avant l'espace vide. |
_next |
Ligne |
Ligne après l'espace vide. |
Renvoie :
Nombre
Largeur souhaitée de la ligne d'espace entre ces deux lignes.
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/08/21 (UTC).
[null,null,["Dernière mise à jour le 2024/08/21 (UTC)."],[[["The `getSpacerRowWidth_` method calculates the width needed for a spacer row between two other rows in a Blockly block."],["This method is used internally by the Blockly rendering engine and takes the preceding and succeeding rows as input to determine the appropriate spacer width."],["The calculated width ensures proper spacing and alignment of elements within the rendered block."]]],[]]