Class ProductThemeManager
Constructors
(constructor)(_productHandler, productThemes, _canvas, _eventManager)
Constructs a new instance of the ProductThemeManager class
Declaration
constructor(_productHandler: ProductHandler, productThemes: {
[name: string]: IProductThemeConfig;
}, _canvas: Canvas, _eventManager: EventManager);
Parameters
Properties
currentProductTheme
Declaration
currentProductTheme: IProductThemeConfig;
Property Value
| Type |
Description |
| IFontSettings |
|
productThemes
Declaration
productThemes: {
[name: string]: IProductThemeConfig;
};
Property Value
| Type |
Description |
| {
[name: string]: default;
} |
|
Methods
applyProductTheme(theme, product, commandManager)
Declaration
applyProductTheme(theme: string | IProductThemeConfig, product: Product, commandManager: CommandManager): boolean;
Parameters
Returns
applyToItem(item, theme, themeBinding)
Declaration
applyToItem(item: Item, theme?: IProductThemeConfig, themeBinding?: ThemeBinding): Promise<boolean>;
Parameters
Returns
| Type |
Description |
| Promise<boolean> |
|