Merge pull request #503 from iceafish/patch-5

Update konva.d.ts
This commit is contained in:
Anton Lavrenov
2018-11-28 08:21:30 -05:00
committed by GitHub

4
konva.d.ts vendored
View File

@@ -667,14 +667,14 @@ declare namespace Konva {
hitGraphEnabled?: boolean; hitGraphEnabled?: boolean;
} }
class FastLayer extends Container { class FastLayer<T extends Node = Node> extends Container<T> {
constructor(config?: LayerConfig); constructor(config?: LayerConfig);
drawScene(): void; drawScene(): void;
hitGraphEnabled(val: boolean): this; hitGraphEnabled(val: boolean): this;
batchDraw(): void; batchDraw(): void;
} }
class Layer extends Container { class Layer<T extends Node = Node> extends Container<T> {
constructor(config?: LayerConfig); constructor(config?: LayerConfig);
getIntersection(pos: Vector2d, selector?: string): Shape; getIntersection(pos: Vector2d, selector?: string): Shape;
enableHitGraph(): this; enableHitGraph(): this;