From a8f4ecb93648cc121ea388fb0c0327c0ca14c3cd Mon Sep 17 00:00:00 2001 From: kashlakov Date: Mon, 26 Oct 2015 11:07:45 +0900 Subject: [PATCH 1/2] Update raphael.d.ts add required parameter 'el: RaphaelElement' to insertAfter() and insertBefore() methods --- raphael/raphael.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raphael/raphael.d.ts b/raphael/raphael.d.ts index 593d5eb61..382082799 100644 --- a/raphael/raphael.d.ts +++ b/raphael/raphael.d.ts @@ -42,8 +42,8 @@ interface RaphaelElement { hide(): RaphaelElement; hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement; id: string; - insertAfter(): RaphaelElement; - insertBefore(): RaphaelElement; + insertAfter(el: RaphaelElement): RaphaelElement; + insertBefore(el: RaphaelElement): RaphaelElement; isPointInside(x: number, y: number): boolean; isVisible(): boolean; matrix: RaphaelMatrix; From b26a3d7ce57bf5a20be04a4515e6194c543cc9f5 Mon Sep 17 00:00:00 2001 From: kashlakov Date: Mon, 26 Oct 2015 11:10:34 +0900 Subject: [PATCH 2/2] Update raphael.d.ts add required parameter 'el: RaphaelElement' to RaphaelSet.insertBefore() and RaphaelSet.insertAfter() --- raphael/raphael.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raphael/raphael.d.ts b/raphael/raphael.d.ts index 382082799..4d174fa71 100644 --- a/raphael/raphael.d.ts +++ b/raphael/raphael.d.ts @@ -129,8 +129,8 @@ interface RaphaelSet { hide(): RaphaelSet; hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelSet; id: string; - insertAfter(): RaphaelSet; - insertBefore(): RaphaelSet; + insertAfter(el: RaphaelElement): RaphaelSet; + insertBefore(el: RaphaelElement): RaphaelSet; isPointInside(x: number, y: number): boolean; isVisible(): boolean; matrix: RaphaelMatrix;