Fixes type definition for renderInfo()

This commit is contained in:
Shan M
2020-04-15 11:41:43 +03:00
committed by GitHub
parent e2fce11afc
commit 9b6ff21e00

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