封鎖 >blockRendering >「導覽匣」>(建構函式)
blockRendering.Drawer.(constructor)
建構 Drawer
類別的新例項
Signature:
constructor(block: BlockSvg, info: RenderInfo);
參數
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間:2024-10-15 (世界標準時間)。"],[[["The `blockRendering.Drawer` class is responsible for visually rendering a Blockly block using the provided block and rendering information."],["It is instantiated with a `BlockSvg` instance representing the block to be rendered and a `RenderInfo` object containing the necessary rendering details."],["The constructor initializes a new `Drawer` object for rendering the specific block."]]],["The `Drawer` class constructor takes two parameters: `block` and `info`. The `block` parameter, of type `BlockSvg`, represents the block that needs to be rendered. The `info` parameter, of type `RenderInfo`, provides all the necessary information for rendering the specified block. This constructor creates a new instance of the `Drawer` class to manage the rendering process using the block and rendering information.\n"]]