From 12f8d33b7873cbaf722ad09c24d9d5b42ab09e34 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 8 Feb 2025 19:30:16 -0500 Subject: [PATCH] [Cleanup] Remove unused param on LGraphCanvas.drawWidgets (#492) --- src/LGraphCanvas.ts | 4 ---- src/draw.ts | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 0fdb3d0d4..8756c4414 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -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] diff --git a/src/draw.ts b/src/draw.ts index e09299775..c2459eb82 100644 --- a/src/draw.ts +++ b/src/draw.ts @@ -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 {