mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
Merge branch 'master' of github.com:konvajs/konva
This commit is contained in:
14
konva.d.ts
vendored
14
konva.d.ts
vendored
@@ -11,7 +11,7 @@ declare namespace Konva {
|
||||
currentTarget: Konva.Node;
|
||||
cancelBubble: boolean;
|
||||
}
|
||||
|
||||
|
||||
type HandlerFunc<E = Event> = (e: KonvaEventObject<E>) => void;
|
||||
|
||||
enum KonvaNodeEvent {
|
||||
@@ -85,10 +85,16 @@ declare namespace Konva {
|
||||
| 'saturation'
|
||||
| 'color'
|
||||
| 'luminosity';
|
||||
|
||||
export interface RGB {
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
}
|
||||
|
||||
export class Util {
|
||||
static getRandomColor(): string;
|
||||
static getRGB(color: string): string;
|
||||
static getRGB(color: string): RGB;
|
||||
}
|
||||
|
||||
type EasingFn = (
|
||||
@@ -667,14 +673,14 @@ declare namespace Konva {
|
||||
hitGraphEnabled?: boolean;
|
||||
}
|
||||
|
||||
class FastLayer extends Container {
|
||||
class FastLayer<T extends Node = Node> extends Container<T> {
|
||||
constructor(config?: LayerConfig);
|
||||
drawScene(): void;
|
||||
hitGraphEnabled(val: boolean): this;
|
||||
batchDraw(): void;
|
||||
}
|
||||
|
||||
class Layer extends Container {
|
||||
class Layer<T extends Node = Node> extends Container<T> {
|
||||
constructor(config?: LayerConfig);
|
||||
getIntersection(pos: Vector2d, selector?: string): Shape;
|
||||
enableHitGraph(): this;
|
||||
|
Reference in New Issue
Block a user