Theme.(constructor)
建構 Theme
類別的新執行個體
Signature:
constructor(name: string, opt_blockStyles?: {
[key: string]: Partial<BlockStyle>;
}, opt_categoryStyles?: {
[key: string]: CategoryStyle;
}, opt_componentStyles?: ComponentStyle);
參數
參數 | 類型 | 說明 |
---|---|---|
名稱 | 字串 | 主題名稱。 |
opt_blockStyles | { [key: string]: Partial<BlockStyle>; } | (選用) 從樣式名稱 (字串) 到具有區塊樣式屬性的物件的對應。 |
opt_categoryStyles | { [key: string]: CategoryStyle; } | (選用) 從樣式名稱 (字串) 到具有類別樣式屬性的物件的對應。 |
opt_componentStyles | ComponentStyle | (選用) 將 Blockly 元件名稱對應到樣式值的對應。 |