Merge pull request #139 from sha-N/patch-4

fixes typedef for onDrawBackground and onDrawForeground
This commit is contained in:
Javi Agenjo
2020-05-11 12:54:01 +02:00
committed by GitHub

8
src/litegraph.d.ts vendored
View File

@@ -870,12 +870,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