mirror of
https://github.com/konvajs/konva.git
synced 2026-01-21 18:51:52 +08:00
Merge pull request #514 from cyrilmesvayn/patch-1
Update konva.d.ts for getRGB
This commit is contained in:
8
konva.d.ts
vendored
8
konva.d.ts
vendored
@@ -86,9 +86,15 @@ declare namespace Konva {
|
|||||||
| '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 = (
|
||||||
|
|||||||
Reference in New Issue
Block a user