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 {