blockly > geras > Drawer

geras.Drawer 類別

根據指定算繪資訊繪製區塊的物件,專為 Gera 轉譯器進行自訂。

Signature:

export declare class Drawer extends BaseDrawer 

擴充項目: BaseDrawer

建構函式

建構函式 修飾符 說明
(建構函式)(區塊, 資訊) 建構 Drawer 類別的新執行個體

屬性

屬性 修飾符 類型 說明
constants_ ConstantProvider
highlighter_ 螢光筆

方法

方法 修飾符 說明
draw()
drawBottom_()
drawInlineInput_(input)
drawJaggedEdge_(row)
drawLeft_() protected 新增區塊左側的步驟,其中可能包含輸出連線
drawRightSideRow_(row)
drawStatementInput_(row)
drawTop_()
drawValueInput_(row)
positionExternalValueConnection_(row)
positionInlineInputConnection_(input)
positionNextConnection_()
positionStatementInputConnection_(row)