[Cleanup] Remove unused param on LGraphCanvas.drawWidgets (#492)

This commit is contained in:
Chenlei Hu
2025-02-08 19:30:16 -05:00
committed by GitHub
parent 4d36369cd8
commit 12f8d33b78
2 changed files with 2 additions and 6 deletions

View File

@@ -4803,9 +4803,6 @@ export class LGraphCanvas implements ConnectionColorContext {
node,
widgets_y,
ctx,
this.node_widget && this.node_widget[0] == node
? this.node_widget[1]
: null,
)
}
} else if (this.render_collapsed_slots) {
@@ -5722,7 +5719,6 @@ export class LGraphCanvas implements ConnectionColorContext {
node: LGraphNode,
posY: number,
ctx: CanvasRenderingContext2D,
active_widget: IWidget,
) {
if (!node.widgets || !node.widgets.length) return 0
const width = node.size[0]

View File

@@ -1,5 +1,5 @@
import { LiteGraph, type Vector2 } from "./litegraph"
import type { CanvasColour, INodeSlot, Rect } from "./interfaces"
import { LiteGraph } from "./litegraph"
import type { CanvasColour, Rect } from "./interfaces"
import { LinkDirection, RenderShape, TitleMode } from "./types/globalEnums"
export enum SlotType {