blockly > Design > (Konstruktor)
Theme.(constructor)
Konstruiert eine neue Instanz der Klasse Theme
Unterschrift:
constructor(name: string, opt_blockStyles?: {
[key: string]: Partial<BlockStyle>;
}, opt_categoryStyles?: {
[key: string]: CategoryStyle;
}, opt_componentStyles?: ComponentStyle);
Parameter
Parameter | Typ | Beschreibung |
---|---|---|
name | String | Name des Designs. |
opt_blockStyles | { [key: string]: Partial<BlockStyle>; } | Optional: Eine Zuordnung von Stilnamen (Strings) zu Objekten mit Stilattributen für Blocks. |
opt_categoryStyles | { [key: string]: CategoryStyle; } | Optional: Eine Zuordnung von Stilnamen (Strings) zu Objekten mit Stilattributen für Kategorien. |
opt_componentStyles | ComponentStyle | (Optional) Eine Zuordnung der Namen von Blockly-Komponenten zum Stilwert. |