From b39c82145d1431f8ed11d6b36c97ca3e5d4d01fb Mon Sep 17 00:00:00 2001 From: Troels Leth Jensen Date: Thu, 30 Apr 2015 13:04:49 +0200 Subject: [PATCH] 'this' in context of a RaphaelSet is a RaphaelSet. --- raphael/raphael.d.ts | 104 +++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/raphael/raphael.d.ts b/raphael/raphael.d.ts index bef33d99c..593d5eb61 100644 --- a/raphael/raphael.d.ts +++ b/raphael/raphael.d.ts @@ -104,79 +104,79 @@ interface RaphaelSet { exclude(element: RaphaelElement): boolean; forEach(callback: Function, thisArg?: any): RaphaelSet; pop(): RaphaelElement; - push(...RaphaelElement: any[]): RaphaelElement; + push(...RaphaelElement: any[]): RaphaelSet; splice(index: number, count: number): RaphaelSet; splice(index: number, count: number, ...insertion: RaphaelElement[]): RaphaelSet; length: number; [key: number]: RaphaelElement; - animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement; - animate(animation: RaphaelAnimation): RaphaelElement; - animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement; - animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement; - attr(attrName: string, value: any): RaphaelElement; - attr(params: { [key: string]: any; }): RaphaelElement; + animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelSet; + animate(animation: RaphaelAnimation): RaphaelSet; + animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelSet; + animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelSet; + attr(attrName: string, value: any): RaphaelSet; + attr(params: { [key: string]: any; }): RaphaelSet; attr(attrName: string): any; attr(attrNames: string[]): any[]; - click(handler: Function): RaphaelElement; - clone(): RaphaelElement; + click(handler: Function): RaphaelSet; + clone(): RaphaelSet; data(key: string): any; - data(key: string, value: any): RaphaelElement; - dblclick(handler: Function): RaphaelElement; - drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) =>{ }, onstart: (x: number, y: number, event: DragEvent) =>{ }, onend: (DragEvent: any) =>{ }, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement; + data(key: string, value: any): RaphaelSet; + dblclick(handler: Function): RaphaelSet; + drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) =>{ }, onstart: (x: number, y: number, event: DragEvent) =>{ }, onend: (DragEvent: any) =>{ }, mcontext?: any, scontext?: any, econtext?: any): RaphaelSet; getBBox(isWithoutTransform?: boolean): BoundingBox; glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet; - hide(): RaphaelElement; - hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement; + hide(): RaphaelSet; + hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelSet; id: string; - insertAfter(): RaphaelElement; - insertBefore(): RaphaelElement; + insertAfter(): RaphaelSet; + insertBefore(): RaphaelSet; isPointInside(x: number, y: number): boolean; isVisible(): boolean; matrix: RaphaelMatrix; - mousedown(handler: Function): RaphaelElement; - mousemove(handler: Function): RaphaelElement; - mouseout(handler: Function): RaphaelElement; - mouseover(handler: Function): RaphaelElement; - mouseup(handler: Function): RaphaelElement; - next: RaphaelElement; - onDragOver(f: Function): RaphaelElement; + mousedown(handler: Function): RaphaelSet; + mousemove(handler: Function): RaphaelSet; + mouseout(handler: Function): RaphaelSet; + mouseover(handler: Function): RaphaelSet; + mouseup(handler: Function): RaphaelSet; + next: RaphaelSet; + onDragOver(f: Function): RaphaelSet; paper: RaphaelPaper; - pause(anim?: RaphaelAnimation): RaphaelElement; - prev: RaphaelElement; + pause(anim?: RaphaelAnimation): RaphaelSet; + prev: RaphaelSet; raphael: RaphaelStatic; remove(): void; - removeData(key?: string): RaphaelElement; - resume(anim?: RaphaelAnimation): RaphaelElement; + removeData(key?: string): RaphaelSet; + resume(anim?: RaphaelAnimation): RaphaelSet; setTime(anim: RaphaelAnimation): void; - setTime(anim: RaphaelAnimation, value: number): RaphaelElement; - show(): RaphaelElement; + setTime(anim: RaphaelAnimation, value: number): RaphaelSet; + show(): RaphaelSet; status(): { anim: RaphaelAnimation; status: number; }[]; status(anim: RaphaelAnimation): number; - status(anim: RaphaelAnimation, value: number): RaphaelElement; - stop(anim?: RaphaelAnimation): RaphaelElement; - toBack(): RaphaelElement; - toFront(): RaphaelElement; - touchcancel(handler: Function): RaphaelElement; - touchend(handler: Function): RaphaelElement; - touchmove(handler: Function): RaphaelElement; - touchstart(handler: Function): RaphaelElement; + status(anim: RaphaelAnimation, value: number): RaphaelSet; + stop(anim?: RaphaelAnimation): RaphaelSet; + toBack(): RaphaelSet; + toFront(): RaphaelSet; + touchcancel(handler: Function): RaphaelSet; + touchend(handler: Function): RaphaelSet; + touchmove(handler: Function): RaphaelSet; + touchstart(handler: Function): RaphaelSet; transform(): string; - transform(tstr: string): RaphaelElement; - unclick(handler: Function): RaphaelElement; - undblclick(handler: Function): RaphaelElement; - undrag(): RaphaelElement; - unhover(): RaphaelElement; - unhover(f_in: Function, f_out: Function): RaphaelElement; - unmousedown(handler: Function): RaphaelElement; - unmousemove(handler: Function): RaphaelElement; - unmouseout(handler: Function): RaphaelElement; - unmouseover(handler: Function): RaphaelElement; - unmouseup(handler: Function): RaphaelElement; - untouchcancel(handler: Function): RaphaelElement; - untouchend(handler: Function): RaphaelElement; - untouchmove(handler: Function): RaphaelElement; - untouchstart(handler: Function): RaphaelElement; + transform(tstr: string): RaphaelSet; + unclick(handler: Function): RaphaelSet; + undblclick(handler: Function): RaphaelSet; + undrag(): RaphaelSet; + unhover(): RaphaelSet; + unhover(f_in: Function, f_out: Function): RaphaelSet; + unmousedown(handler: Function): RaphaelSet; + unmousemove(handler: Function): RaphaelSet; + unmouseout(handler: Function): RaphaelSet; + unmouseover(handler: Function): RaphaelSet; + unmouseup(handler: Function): RaphaelSet; + untouchcancel(handler: Function): RaphaelSet; + untouchend(handler: Function): RaphaelSet; + untouchmove(handler: Function): RaphaelSet; + untouchstart(handler: Function): RaphaelSet; } interface RaphaelMatrix {