blockly > blockRendering > Mechanizm renderowania > getConstants
Metoda blockRendering.Renderer.getConstants()
Pobierz stałego dostawcę bieżącego mechanizmu renderowania. Zakładamy, że wywoływanie tej funkcji oznacza, że mechanizm renderowania został już zainicjowany.
Podpis:
getConstants(): ConstantProvider;
Zwroty:
ConstantProvider
Dostawca stały.
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-21 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-21 UTC."],[[["The `blockRendering.Renderer.getConstants()` method retrieves the constant provider associated with the current renderer."],["This method assumes the renderer is already initialized and provides access to constants used for rendering blocks."],["It returns a `ConstantProvider` object containing the necessary constants."]]],[]]