mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Simplify LGraphNode.onDrawBackground signature (#463)
This commit is contained in:
@@ -5174,7 +5174,7 @@ export class LGraphCanvas {
|
|||||||
}
|
}
|
||||||
ctx.shadowColor = "transparent"
|
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)
|
// Title bar background (remember, it is rendered ABOVE the node)
|
||||||
if (render_title || title_mode == TitleMode.TRANSPARENT_TITLE) {
|
if (render_title || title_mode == TitleMode.TRANSPARENT_TITLE) {
|
||||||
|
|||||||
@@ -411,9 +411,6 @@ export class LGraphNode implements Positionable, IPinnable {
|
|||||||
onDrawBackground?(
|
onDrawBackground?(
|
||||||
this: LGraphNode,
|
this: LGraphNode,
|
||||||
ctx: CanvasRenderingContext2D,
|
ctx: CanvasRenderingContext2D,
|
||||||
canvas: LGraphCanvas,
|
|
||||||
canvasElement: HTMLCanvasElement,
|
|
||||||
mousePosition: Point,
|
|
||||||
): void
|
): void
|
||||||
onNodeCreated?(this: LGraphNode): void
|
onNodeCreated?(this: LGraphNode): void
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user