vuetify
Version:
Vue Material Component Framework
55 lines (54 loc) • 1.57 kB
TypeScript
import type { HSV } from "../../../util/colorUtils.js";
export declare function extractColor(color: HSV, input: any): any;
export declare function hasAlpha(color: any): boolean;
export declare const nullColor: {
h: number;
s: number;
v: number;
a: number;
};
export type ColorPickerMode = {
inputProps: Record<string, unknown>;
inputs: {
[key: string]: any;
getValue: (color: any) => number | string;
getColor: (color: any, v: string) => any;
}[];
from: (color: any) => HSV;
to: (color: HSV) => any;
};
export declare const modes: {
rgb: {
inputs: {
[key: string]: any;
getValue: (color: any) => number | string;
getColor: (color: any, v: string) => any;
}[];
inputProps: Record<string, unknown>;
from: (color: any) => HSV;
to: (color: HSV) => any;
};
rgba: ColorPickerMode;
hsl: {
inputs: {
[key: string]: any;
getValue: (color: any) => number | string;
getColor: (color: any, v: string) => any;
}[];
inputProps: Record<string, unknown>;
from: (color: any) => HSV;
to: (color: HSV) => any;
};
hsla: ColorPickerMode;
hex: {
inputs: {
label: string;
getValue: (c: string) => string;
getColor: (c: string, v: string) => string;
}[];
inputProps: Record<string, unknown>;
from: (color: any) => HSV;
to: (color: HSV) => any;
};
hexa: ColorPickerMode;
};