mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 13:49:48 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user