Back to Website
Show / Hide Table of Contents

Class ProductThemeManager

Package: @aurigma/design-atoms

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
Type Name Description
ProductHandler _productHandler
{ [name: string]: default; } productThemes
Canvas _canvas
EventManager _eventManager

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
Type Name Description
string | default theme
Product product
CommandManager commandManager
Returns
Type Description
boolean

applyToItem(item, theme, themeBinding)

Declaration
applyToItem(item: Item, theme?: IProductThemeConfig, themeBinding?: ThemeBinding): Promise<boolean>;
Parameters
Type Name Description
Item item
IFontSettings theme
ThemeBinding themeBinding
Returns
Type Description
Promise<boolean>
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback