Theme.(constructor)
Theme
クラスの新しいインスタンスを作成します。
署名:
constructor(name: string, opt_blockStyles?: {
[key: string]: Partial<BlockStyle>;
}, opt_categoryStyles?: {
[key: string]: CategoryStyle;
}, opt_componentStyles?: ComponentStyle);
パラメータ
パラメータ | 種類 | 説明 |
---|---|---|
name | string | テーマ名。 |
opt_blockStyles | { [key: string]: Partial<BlockStyle>; } | (省略可)スタイル名(文字列)から、ブロックのスタイル属性を持つオブジェクトへのマップ。 |
opt_categoryStyles | { [key: string]: CategoryStyle; } | (省略可)スタイル名(文字列)から、カテゴリのスタイル属性を持つオブジェクトのマップ。 |
opt_componentStyles | ComponentStyle | (省略可)Blockly コンポーネント名とスタイル値のマップ。 |