mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Update konva.d.ts
fix Layer FastLayer generic type definition
This commit is contained in:
parent
d76b09e026
commit
d33a79940b
4
konva.d.ts
vendored
4
konva.d.ts
vendored
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user