fixes typedef for onDrawBackground and onDrawForeground

fixes the issue #131
This commit is contained in:
Shan M
2020-05-11 13:49:59 +03:00
committed by GitHub
parent 240cee0209
commit c2f92e62aa

8
src/litegraph.d.ts vendored
View File

@@ -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