blockly > blockRendering > Mechanizm renderowania > init
Metoda blockRendering.Renderer.init()
Zainicjuj mechanizm renderowania.
Podpis:
init(theme: Theme, opt_rendererOverrides?: {
[rendererConstant: string]: any;
}): void;
Parametry
Parametr |
Typ |
Opis |
motyw |
Motyw |
Obiekt motywu obszaru roboczego. |
opt_rendererOverrides |
{ [rendererConstant: string]: any; |
(Opcjonalnie) Renderowanie stałych zastąpień. |
Zwroty:
nieważne
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.init()` method initializes the renderer with a specified theme and optional rendering constant overrides."],["It accepts a `Theme` object to style the workspace and an optional object to override default rendering constants."],["Calling this method prepares the renderer for generating and displaying blocks within the Blockly workspace."]]],[]]