From 7e9bbc5f9c1651658682d7efeb8ebea8502c8475 Mon Sep 17 00:00:00 2001 From: Igor Viskov Date: Mon, 1 Feb 2016 09:37:42 +0300 Subject: [PATCH 1/2] Fix TypeScript definition: add "getClientRect()" function to "Container" class. --- resources/konva.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/konva.d.ts b/resources/konva.d.ts index a062bdc5..12bd6989 100644 --- a/resources/konva.d.ts +++ b/resources/konva.d.ts @@ -272,6 +272,7 @@ declare module Konva { constructor(params?: ContainerConfig); add(child : Node): Container; getChildren(filterfunc?: Function) : Collection; + getClientRect(): SizeConfig; clip(): SizeConfig; clip(clip: SizeConfig) : Container; clipHeight(): number; From e74a35ff5cb6bcb677e028ebb6011262bc03a72e Mon Sep 17 00:00:00 2001 From: Igor Viskov Date: Mon, 1 Feb 2016 10:29:26 +0300 Subject: [PATCH 2/2] Fix TypeScript definition: Move "getClientRect()" declaration from Container to Node class. --- resources/konva.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/konva.d.ts b/resources/konva.d.ts index 12bd6989..5ffb49af 100644 --- a/resources/konva.d.ts +++ b/resources/konva.d.ts @@ -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;