From c2f92e62aa89c01fd2176dd227985b081e2c5082 Mon Sep 17 00:00:00 2001 From: Shan M Date: Mon, 11 May 2020 13:49:59 +0300 Subject: [PATCH] fixes typedef for onDrawBackground and onDrawForeground fixes the issue #131 --- src/litegraph.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/litegraph.d.ts b/src/litegraph.d.ts index ac3218400..a3601dbbf 100644 --- a/src/litegraph.d.ts +++ b/src/litegraph.d.ts @@ -865,12 +865,12 @@ export declare class LGraphNode { // https://github.com/jagenjo/litegraph.js/blob/master/guides/README.md#custom-node-appearance onDrawBackground?( - canvas: HTMLCanvasElement, - ctx: CanvasRenderingContext2D + ctx: CanvasRenderingContext2D, + canvas: HTMLCanvasElement ): void; onDrawForeground?( - canvas: HTMLCanvasElement, - ctx: CanvasRenderingContext2D + ctx: CanvasRenderingContext2D, + canvas: HTMLCanvasElement ): void; // https://github.com/jagenjo/litegraph.js/blob/master/guides/README.md#custom-node-behaviour