Fix TypeScript definition: Move "getClientRect()" declaration from Container to Node class.

This commit is contained in:
Igor Viskov 2016-02-01 10:29:26 +03:00
parent 7e9bbc5f9c
commit e74a35ff5c

View File

@ -151,6 +151,7 @@ declare module Konva {
// CHECK
getCanvas() : Canvas;
getClassName() : string;
getClientRect(): SizeConfig;
getContext() : Context;
getDepth() : number;
getHeight() : number;
@ -272,7 +273,6 @@ declare module Konva {
constructor(params?: ContainerConfig);
add(child : Node): Container;
getChildren(filterfunc?: Function) : Collection;
getClientRect(): SizeConfig;
clip(): SizeConfig;
clip(clip: SizeConfig) : Container;
clipHeight(): number;