mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 14:09:59 +00:00
Simplify LGraphNode.onDrawBackground signature (#463)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user