@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
16 lines (15 loc) • 843 B
TypeScript
import { Color } from "@aurigma/design-atoms-model/Colors";
import { ICmykColorParser, IColorParser, ILabColorParser, INamedColorConverter, IRgbColorParser, ISpotColorParser } from "./IColorParser";
export declare class ColorParser implements IColorParser {
private readonly _defaultColor;
private readonly _namedColorConverter;
private readonly _rgbColorParser;
private readonly _cmykColorParser;
private readonly _labColorParser;
private readonly _spotColorParser;
private readonly _mappedParsers;
constructor(namedColorConverter: INamedColorConverter, rgbColorParser: IRgbColorParser, cmykColorParser: ICmykColorParser, labColorParser: ILabColorParser, spotColorParser: ISpotColorParser);
parse(colorString: string): Color;
private _tryParse;
private _tryParseWithMappedParsers;
}