From 9b6ff21e0022a8b6b7e0a5ddb25c556446a6d0a0 Mon Sep 17 00:00:00 2001 From: Shan M Date: Wed, 15 Apr 2020 11:41:43 +0300 Subject: [PATCH 1/2] Fixes type definition for renderInfo() --- src/litegraph.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.d.ts b/src/litegraph.d.ts index 551601a11..fecd6e201 100644 --- a/src/litegraph.d.ts +++ b/src/litegraph.d.ts @@ -1239,7 +1239,7 @@ export declare class LGraphCanvas { /** draws the front canvas (the one containing all the nodes) */ drawFrontCanvas(): void; /** draws some useful stats in the corner of the canvas */ - renderInfo(): void; + renderInfo(ctx: CanvasRenderingContext2D, x: number, y: nymber): void; /** draws the back canvas (the one containing the background and the connections) */ drawBackCanvas(): void; /** draws the given node inside the canvas */ From 6607593471265e50b004662c4187c9b6c401b576 Mon Sep 17 00:00:00 2001 From: Shan M Date: Wed, 15 Apr 2020 11:45:25 +0300 Subject: [PATCH 2/2] fix typo --- src/litegraph.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.d.ts b/src/litegraph.d.ts index fecd6e201..70fd06e0a 100644 --- a/src/litegraph.d.ts +++ b/src/litegraph.d.ts @@ -1239,7 +1239,7 @@ export declare class LGraphCanvas { /** draws the front canvas (the one containing all the nodes) */ drawFrontCanvas(): void; /** draws some useful stats in the corner of the canvas */ - renderInfo(ctx: CanvasRenderingContext2D, x: number, y: nymber): void; + renderInfo(ctx: CanvasRenderingContext2D, x: number, y: number): void; /** draws the back canvas (the one containing the background and the connections) */ drawBackCanvas(): void; /** draws the given node inside the canvas */