[Refactor] Split node slot code out to base class (#994)

Foundational work for subgraph.
This commit is contained in:
filtered
2025-05-02 08:26:25 +10:00
committed by GitHub
parent 2e0267105e
commit 388a3d64cc
6 changed files with 56 additions and 37 deletions

View File

@@ -3521,7 +3521,7 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
isValidTarget ||
!slot.isWidgetInputSlot ||
this.#isMouseOverWidget(this.getWidgetFromSlot(slot)) ||
slot.isConnected()
slot.isConnected
) {
ctx.globalAlpha = isValid ? editorAlpha : 0.4 * editorAlpha
slot.draw(ctx, {