Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > blockRendering > Mechanizm renderowania > makeDrawer_
Metoda blockRendering.Renderer.makeDrawer_()
Utwórz nowe wystąpienie panelu mechanizmu renderowania.
Podpis:
protected makeDrawer_(block: BlockSvg, info: RenderInfo): Drawer;
Parametry
Parametr |
Typ |
Opis |
blok |
BlockSvg |
Blok do renderowania. |
informacje |
RenderInfo |
Obiekt zawierający wszystkie informacje potrzebne do renderowania tego bloku. |
Zwroty:
Panel
Panel.
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 `makeDrawer_()` method within the `blockRendering.Renderer` class creates a new drawer instance. It accepts two parameters: a `BlockSvg` object, representing the block to be rendered, and a `RenderInfo` object, containing necessary rendering information. The method's core function is to generate and return a `Drawer` instance, which is subsequently used for rendering the provided block.\n"],null,[]]