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

Fixes type definition for renderInfo()
This commit is contained in:
Javi Agenjo
2020-04-15 10:48:59 +02:00
committed by GitHub

2
src/litegraph.d.ts vendored
View File

@@ -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: number): void;
/** draws the back canvas (the one containing the background and the connections) */
drawBackCanvas(): void;
/** draws the given node inside the canvas */