mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:31:15 +08:00
fixed type definitions for find() and findOne()
This commit is contained in:
parent
7601be03fc
commit
e96889677c
4
konva.d.ts
vendored
4
konva.d.ts
vendored
@ -342,8 +342,8 @@ declare namespace Konva {
|
|||||||
clipFunc(): (ctx: CanvasRenderingContext2D) => void;
|
clipFunc(): (ctx: CanvasRenderingContext2D) => void;
|
||||||
clipFunc(ctx: CanvasRenderingContext2D | undefined | null): void;
|
clipFunc(ctx: CanvasRenderingContext2D | undefined | null): void;
|
||||||
destroyChildren(): void;
|
destroyChildren(): void;
|
||||||
find(selector?: string | ((Node) => boolean)): Collection;
|
find(selector?: string | ((node: Node) => boolean)): Collection;
|
||||||
findOne<T extends Node>(selector: string | ((Node) => boolean)): T;
|
findOne<T extends Node>(selector: string | ((node: Node) => boolean)): T;
|
||||||
getAllIntersections(pos: Vector2d): Shape[];
|
getAllIntersections(pos: Vector2d): Shape[];
|
||||||
hasChildren(): boolean;
|
hasChildren(): boolean;
|
||||||
removeChildren(): void;
|
removeChildren(): void;
|
||||||
|
Loading…
Reference in New Issue
Block a user