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:
15
konva.d.ts
vendored
15
konva.d.ts
vendored
@@ -5,10 +5,10 @@ declare namespace Konva {
|
||||
var isDragReady: () => boolean;
|
||||
var DD: any;
|
||||
|
||||
type HandlerFunc = (
|
||||
type HandlerFunc<E = Event> = (
|
||||
e: {
|
||||
target: Konva.Shape;
|
||||
evt: Event;
|
||||
evt: E;
|
||||
currentTarget: Konva.Node;
|
||||
cancelBubble: boolean;
|
||||
}
|
||||
@@ -1137,12 +1137,13 @@ declare namespace Konva {
|
||||
fontStyle(fontStyle: string): this;
|
||||
}
|
||||
|
||||
class Collection {
|
||||
[i: number]: any;
|
||||
static toCollection(arr: any[]): Collection;
|
||||
each(f: (el: Node) => void): void;
|
||||
toArray(): any[];
|
||||
class Collection<T extends Node = Node> {
|
||||
[i: number]: T;
|
||||
each(f: (el: T) => void): void;
|
||||
toArray(): T[];
|
||||
length: number;
|
||||
|
||||
static toCollection<T extends Node = Node>(arr: T[]): Collection<T>;
|
||||
}
|
||||
|
||||
class Transform {
|
||||
|
Reference in New Issue
Block a user