diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index f480c6d732..0f16910621 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -5174,7 +5174,7 @@ export class LGraphCanvas { } ctx.shadowColor = "transparent" - node.onDrawBackground?.(ctx, this, this.canvas, this.graph_mouse) + node.onDrawBackground?.(ctx) // Title bar background (remember, it is rendered ABOVE the node) if (render_title || title_mode == TitleMode.TRANSPARENT_TITLE) { diff --git a/src/LGraphNode.ts b/src/LGraphNode.ts index 5f7ec0b4e9..9b4149cf2f 100644 --- a/src/LGraphNode.ts +++ b/src/LGraphNode.ts @@ -411,9 +411,6 @@ export class LGraphNode implements Positionable, IPinnable { onDrawBackground?( this: LGraphNode, ctx: CanvasRenderingContext2D, - canvas: LGraphCanvas, - canvasElement: HTMLCanvasElement, - mousePosition: Point, ): void onNodeCreated?(this: LGraphNode): void /**