UNPKG

@aurigma/design-atoms-model

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

40 lines (39 loc) 1.65 kB
import { Color } from "../../Colors"; import { IEqualsReady } from "../../Utils"; import { EffectParameters } from "./NDEffectParameters"; import { Collection } from "../../Collection"; import { ColorDictionaryEntry } from "./ColorDictionaryEntry"; import { ImageItem } from "../Items"; export interface IRawRecolorEffectParameters { defaultColorReplacements: ColorDictionaryEntry[]; currentColorReplacements: ColorDictionaryEntry[]; reducedColorImageSource: any; } export declare class RecolorEffectParameters extends EffectParameters implements IEqualsReady { defaultColorReplacements: Map<Color, Color>; currentColorReplacements: Map<Color, Color>; reducedColorImageSource: ImageItem.ImageSource; get defaultColorReplacementValues(): Color[]; get defaultColorReplacementKeys(): Color[]; get currentColorReplacementValues(): Color[]; get currentColorReplacementKeys(): Color[]; setReplacementColor(color: Color, index: number): void; equals(recolorParams: RecolorEffectParameters): boolean; toJSON(): { defaultColorReplacements: Collection<ColorDictionaryEntry>; currentColorReplacements: Collection<ColorDictionaryEntry>; reducedColorImageSource: { id: string; width: number; height: number; isVector: boolean; pageIndex: number; url: string; actualSize: boolean; saveAspectRatio: boolean; origin: ImageItem.ImageSource.Origin; }; }; private _dictionaryToEntriesJSON; clone(): RecolorEffectParameters; }