mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
quick fix for typings removing default export
This commit is contained in:
parent
6455045fd4
commit
d3267105d9
20
konva.d.ts
vendored
20
konva.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
declare module Konva {
|
declare module "Konva" {
|
||||||
|
|
||||||
var pixelRatio : number;
|
var pixelRatio : number;
|
||||||
var dragDistance: number;
|
var dragDistance: number;
|
||||||
@ -53,14 +53,14 @@ declare module Konva {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Animation {
|
export class Animation {
|
||||||
constructor(func: Function, layers?: Konva.Layer[]);
|
constructor(func: Function, layers?: Layer[]);
|
||||||
constructor(func: Function, layer?: Konva.Layer);
|
constructor(func: Function, layer?: Layer);
|
||||||
|
|
||||||
addLayer(layer: Konva.Layer) : boolean;
|
addLayer(layer: Layer) : boolean;
|
||||||
getLayers() : Konva.Layer[];
|
getLayers() : Layer[];
|
||||||
isRunning() : boolean;
|
isRunning() : boolean;
|
||||||
setLayers(layers : Konva.Layer[]) : Animation;
|
setLayers(layers : Layer[]) : Animation;
|
||||||
setLayers(layer : Konva.Layer) : Animation;
|
setLayers(layer : Layer) : Animation;
|
||||||
start() : Animation;
|
start() : Animation;
|
||||||
stop() : Animation;
|
stop() : Animation;
|
||||||
}
|
}
|
||||||
@ -511,7 +511,7 @@ declare module Konva {
|
|||||||
clearTrace(): void;
|
clearTrace(): void;
|
||||||
fillShape(shape: Shape): void;
|
fillShape(shape: Shape): void;
|
||||||
fillStrokeShape(shape: Shape): void;
|
fillStrokeShape(shape: Shape): void;
|
||||||
getCanvas() : Konva.Canvas;
|
getCanvas() : Canvas;
|
||||||
getTrace(relaxed: boolean): string;
|
getTrace(relaxed: boolean): string;
|
||||||
reset(): void;
|
reset(): void;
|
||||||
moveTo(x : number, y : number) : void;
|
moveTo(x : number, y : number) : void;
|
||||||
@ -802,7 +802,7 @@ declare module Konva {
|
|||||||
class Collection {
|
class Collection {
|
||||||
[i : number] : any;
|
[i : number] : any;
|
||||||
static toCollection(arr: any[]): Collection;
|
static toCollection(arr: any[]): Collection;
|
||||||
each(f: (el : Konva.Node) => void): void;
|
each(f: (el : Node) => void): void;
|
||||||
toArray() : any[];
|
toArray() : any[];
|
||||||
length: number;
|
length: number;
|
||||||
}
|
}
|
||||||
@ -826,5 +826,3 @@ declare module Konva {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Konva;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user