From f2b3a2abb59b1bbcd8004cc63fced4c28008a428 Mon Sep 17 00:00:00 2001 From: "flynn.park" Date: Fri, 23 Feb 2018 11:00:11 +0900 Subject: Fix typings for missing semicolon --- svg.js.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index b7b4358..68b5f69 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1010,10 +1010,10 @@ declare namespace svgjs { to(value: number): Animation; after(cb: () => void): Animation; - rotate(degrees: number, cx?: number, cy?: number): Animation - skew(skewX: number, skewY?: number, cx?: number, cy?: number): Animation - scale(scaleX: number, scaleY?: number, cx?: number, cy?: number): Animation - translate(x: number, y: number): Animation + rotate(degrees: number, cx?: number, cy?: number): Animation; + skew(skewX: number, skewY?: number, cx?: number, cy?: number): Animation; + scale(scaleX: number, scaleY?: number, cx?: number, cy?: number): Animation; + translate(x: number, y: number): Animation; // TODO style, etc, bbox... } -- cgit v1.2.3 From 9e1806ae594d77fec9ab24dfc7f45ea2fa55adb2 Mon Sep 17 00:00:00 2001 From: "flynn.park" Date: Fri, 23 Feb 2018 11:12:39 +0900 Subject: Fix typings for replace comma to semicolon --- svg.js.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 68b5f69..8064364 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -283,8 +283,8 @@ declare namespace svgjs { svg(svg: string): this; svg(): string; - writeDataToDom(): this, - setData(data: object): this, + writeDataToDom(): this; + setData(data: object): this; is(cls: any): boolean; } -- cgit v1.2.3 From eb0ca7c8e2ef5f1ed30873db4e2ce899c765586d Mon Sep 17 00:00:00 2001 From: "flynn.park" Date: Sat, 24 Feb 2018 01:10:19 +0900 Subject: Fix typings for missing event.js method event --- svg.js.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/svg.js.d.ts b/svg.js.d.ts index 8064364..5a12594 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -320,6 +320,7 @@ declare namespace svgjs { off(event: string, cb: Function, context?: Object): this; fire(event: string, data?: any): this; fire(event: Event): this; + event(): Event | CustomEvent; click(cb: Function): this; dblclick(cb: Function): this; -- cgit v1.2.3 From 6fb702a7c59021fe0b37a821115234647866e20f Mon Sep 17 00:00:00 2001 From: "flynn.park" Date: Sat, 24 Feb 2018 01:50:07 +0900 Subject: Fix typings for apply optional parameter of off method in event.js --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 5a12594..e5536cc 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -317,7 +317,7 @@ declare namespace svgjs { // event.js interface Element { on(event: string, cb: Function, context?: Object): this; - off(event: string, cb: Function, context?: Object): this; + off(event: string, cb?: Function, context?: Object): this; fire(event: string, data?: any): this; fire(event: Event): this; event(): Event | CustomEvent; -- cgit v1.2.3 From 2d088a4826301e8e0e33a6a2ad2b6cc60b76f202 Mon Sep 17 00:00:00 2001 From: pycraft114 Date: Wed, 9 May 2018 17:15:59 +0900 Subject: Optional second parameter for 'select' method --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index e5536cc..d624e88 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -752,7 +752,7 @@ declare namespace svgjs { // selector.js interface Library { get(id: string): Element; - select(query: string, parent: HTMLElement): Set; + select(query: string, parent?: HTMLElement): Set; } interface Parent { select(query: string): Set; -- cgit v1.2.3 From 6ff0dcfb4b5660f7a767c60d01772b8be6ff0024 Mon Sep 17 00:00:00 2001 From: pycraft114 Date: Wed, 9 May 2018 20:11:29 +0900 Subject: Optional parameter for 'rbox' method --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index d624e88..cd46c0f 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -105,7 +105,7 @@ declare namespace svgjs { } interface Element { bbox(): BBox; - rbox(): RBox; + rbox(container?: Container): RBox; tbox(): TBox; } interface Library { -- cgit v1.2.3 From 6d3262fca31419c1cbad746aa03ed1ec9aaae5a0 Mon Sep 17 00:00:00 2001 From: pycraft114 Date: Wed, 9 May 2018 20:19:24 +0900 Subject: Optional parameter for 'rbox' method --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index cd46c0f..1544c1a 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -105,7 +105,7 @@ declare namespace svgjs { } interface Element { bbox(): BBox; - rbox(container?: Container): RBox; + rbox(comparison: any): RBox; tbox(): TBox; } interface Library { -- cgit v1.2.3 From ebb624d6ed84171389fb6b4c3f5b50af03f41e9b Mon Sep 17 00:00:00 2001 From: pycraft114 Date: Thu, 10 May 2018 10:53:28 +0900 Subject: Type fix --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 1544c1a..7144467 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -105,7 +105,7 @@ declare namespace svgjs { } interface Element { bbox(): BBox; - rbox(comparison: any): RBox; + rbox(comparison?: any): RBox; tbox(): TBox; } interface Library { -- cgit v1.2.3 From 641699afaa97e66e79f089d43d65a532a4c60a67 Mon Sep 17 00:00:00 2001 From: pycraft114 Date: Fri, 11 May 2018 19:08:14 +0900 Subject: Optional paramter for rbox method --- svg.js.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.js.d.ts b/svg.js.d.ts index 7144467..0db7b71 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -105,7 +105,7 @@ declare namespace svgjs { } interface Element { bbox(): BBox; - rbox(comparison?: any): RBox; + rbox(element?: Element): RBox; tbox(): TBox; } interface Library { -- cgit v1.2.3