Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `geras.ConstantProvider` class, extending `BaseConstantProvider`, supplies constants for rendering blocks in Geras mode. It has a constructor and defines properties such as `DARK_PATH_OFFSET`, `FIELD_TEXT_BASELINE_CENTER`, `MAX_BOTTOM_WIDTH` (specifying the maximum width of a bottom row with inline inputs), and `STATEMENT_BOTTOM_SPACER`. Additionally, it includes a `getCSS_` method. This class manages visual aspects of block rendering in the Geras rendering mode.\n"],null,[]]