mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Merge pull request #514 from cyrilmesvayn/patch-1
Update konva.d.ts for getRGB
This commit is contained in:
commit
ed3321e6a8
10
konva.d.ts
vendored
10
konva.d.ts
vendored
@ -11,7 +11,7 @@ declare namespace Konva {
|
|||||||
currentTarget: Konva.Node;
|
currentTarget: Konva.Node;
|
||||||
cancelBubble: boolean;
|
cancelBubble: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
type HandlerFunc<E = Event> = (e: KonvaEventObject<E>) => void;
|
type HandlerFunc<E = Event> = (e: KonvaEventObject<E>) => void;
|
||||||
|
|
||||||
enum KonvaNodeEvent {
|
enum KonvaNodeEvent {
|
||||||
@ -85,10 +85,16 @@ declare namespace Konva {
|
|||||||
| 'saturation'
|
| 'saturation'
|
||||||
| 'color'
|
| 'color'
|
||||||
| 'luminosity';
|
| 'luminosity';
|
||||||
|
|
||||||
|
export interface RGB {
|
||||||
|
r: number;
|
||||||
|
g: number;
|
||||||
|
b: number;
|
||||||
|
}
|
||||||
|
|
||||||
export class Util {
|
export class Util {
|
||||||
static getRandomColor(): string;
|
static getRandomColor(): string;
|
||||||
static getRGB(color: string): string;
|
static getRGB(color: string): RGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
type EasingFn = (
|
type EasingFn = (
|
||||||
|
Loading…
Reference in New Issue
Block a user