UNPKG

729 BTypeScriptView Raw
1import { Color } from '../utils/color-sets';
2import { StringOrNumberOrDate } from '../models/chart-data.model';
3import { ScaleType } from './types/scale-type.enum';
4import { Gradient } from './types/gradient.interface';
5export declare class ColorHelper {
6 scale: any;
7 scaleType: ScaleType;
8 colorDomain: string[];
9 domain: number[] | string[];
10 customColors: any;
11 constructor(scheme: string | Color, type: ScaleType, domain: number[] | string[], customColors?: any);
12 generateColorScheme(scheme: string | Color, type: ScaleType, domain: number[] | string[]): any;
13 getColor(value: StringOrNumberOrDate): string;
14 getLinearGradientStops(value: number | string, start?: number | string): Gradient[];
15}