blockly > blockRendering > InRowSpacer > (constructeur)
blockRendering.InRowSpacer.(constructor)
Construit une instance de la classe InRowSpacer
.
Signature :
constructor(constants: ConstantProvider, width: number);
Paramètres
Paramètre |
Type |
Description |
constants |
ConstantProvider |
Fournisseur de constantes de rendu. |
largeur |
Nombre |
Largeur de l'espaceur. |
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/11/08 (UTC).
[null,null,["Dernière mise à jour le 2024/11/08 (UTC)."],[[["`blockRendering.InRowSpacer` is a class for creating spacers within rows of Blockly blocks."],["The constructor for `blockRendering.InRowSpacer` takes a `ConstantProvider` and a width as arguments, initializing a new spacer instance with the specified width."],["Spacers are used to visually separate elements within a row in the Blockly editor."]]],["The `InRowSpacer` class constructor creates a new spacer instance. It requires two parameters: `constants`, a `ConstantProvider` object that provides rendering constants, and `width`, a number that defines the spacer's width. This constructor's function is to initialize a spacer object for use within block rendering processes, defining its width based on provided constants.\n"]]