blockly > geras > ConstantProvider
Klasa geras.ConstantProvider
Obiekt z wartościami stałymi do renderowania bloków w trybie Geras.
Podpis:
export declare class ConstantProvider extends BaseConstantProvider
Rozszerza: BaseConstantProvider
Zespoły
Zespół |
Modyfikatory |
Opis |
(konstruktor)() |
|
Tworzy nową instancję klasy ConstantProvider |
Właściwości
Metody
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-24 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-24 UTC."],[[["The `geras.ConstantProvider` class provides constants for rendering blocks in Geras mode in Blockly, extending the `BaseConstantProvider` class."],["It includes properties like `DARK_PATH_OFFSET`, `FIELD_TEXT_BASELINE_CENTER`, `MAX_BOTTOM_WIDTH`, and `STATEMENT_BOTTOM_SPACER` for defining block appearance."],["A key feature is the `MAX_BOTTOM_WIDTH` property, which sets the maximum width of a bottom row following a statement input with inline inputs."],["The class offers a constructor for creating instances and a `getCSS_` method for potentially retrieving CSS styles related to the block rendering."]]],[]]