@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
21 lines (20 loc) • 1.04 kB
TypeScript
import { Product } from "@aurigma/design-atoms-model/Product";
import { IProductThemeConfig } from "@aurigma/design-atoms-model/Product/Interfaces";
import { ThemeBinding, Item } from "@aurigma/design-atoms-model/Product/Items";
import { IColorPreviewService } from "../../Services/IColorPreviewService";
import { IColorParser } from "../../Serialization/Color";
export declare class ProductThemeApplier {
private _colorPreviewService;
private _colorParser;
constructor(_colorPreviewService: IColorPreviewService, _colorParser: IColorParser);
apply(product: Product, theme?: IProductThemeConfig, themeBinding?: ThemeBinding): Promise<boolean>;
applyToItem<T extends Item>(item: T, theme?: IProductThemeConfig, themeBinding?: ThemeBinding): Promise<boolean>;
private _getItemDataByItemType;
private _applyToPlaceholder;
private _getMergedItemData;
private _applyStyle;
private _applyTHBMColor;
private _applySettings;
private _getThemeItemData;
private _getTHMBColor;
}