ngx-input-color
Version:
Angular color input component and color picker (with HSL, HSV, RGB, CMYK, HEX, alpha, eye-dropper, etc)
11 lines (10 loc) • 460 B
TypeScript
import { GradientStop, GradientType } from '../models/GradientStop';
export declare function buildGradientFromStops(stops: GradientStop[], type?: GradientType, rotation?: number): string;
export declare function generateRandomColor(): string;
export declare function isValidGradient(value: string): boolean;
export declare function parseGradient(value: string): {
type: GradientType;
rotation: number;
stops: GradientStop[];
valid: boolean;
};