-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
41 lines (41 loc) · 1.39 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export declare class LchColorWheel {
readonly options: Readonly<Partial<typeof LchColorWheel.defaultOptions> & {
appendTo: HTMLElement;
}>;
static defaultOptions: {
wheelDiameter: number;
wheelThickness: number;
handleDiameter: number;
drawsRgbValidityBoundary: boolean;
maxChroma: number;
onChange: (lchColorWheel: LchColorWheel) => unknown;
};
wheelDiameter: number;
wheelThickness: number;
handleDiameter: number;
drawsRgbValidityBoundary: boolean;
readonly maxChroma: number;
onChange: (lchColorWheel: LchColorWheel) => unknown;
readonly rootElement: HTMLDivElement;
readonly hueWheelElement: HTMLCanvasElement;
readonly hueHandleElement: HTMLDivElement;
readonly lcSpaceElement: HTMLCanvasElement;
readonly lcHandleElement: HTMLDivElement;
private _rgb;
private _lch;
get lch(): [number, number, number];
set lch(lch: [number, number, number]);
get rgb(): [number, number, number];
set rgb(rgb: [number, number, number]);
constructor(options: Readonly<Partial<typeof LchColorWheel.defaultOptions> & {
appendTo: HTMLElement;
}>);
private _setLch;
redraw(): void;
private _redrawHueWheel;
private _redrawHueHandle;
private _redrawLcSpace;
private _redrawLcHandle;
private _requestRedrawLcSpace_;
private _requestRedrawLcSpace;
}