From f612c8482ffabd849abac0ef45577091311b7014 Mon Sep 17 00:00:00 2001 From: rgthree Date: Tue, 5 Dec 2023 21:25:56 -0500 Subject: [PATCH] Add proper connection layout to any switch. Fix #68 --- ts/any_switch.ts | 2 +- web/any_switch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/any_switch.ts b/ts/any_switch.ts index 7e8b155..684151f 100644 --- a/ts/any_switch.ts +++ b/ts/any_switch.ts @@ -92,7 +92,7 @@ class AnySwitchforMixin extends RgthreeBaseNode { AnySwitchforMixin.category = (nodeType as any).category; }); applyMixins(nodeType, [RgthreeBaseNode, AnySwitchforMixin]); - addConnectionLayoutSupport(nodeType, app, [["Left"], ["Right"]]); + addConnectionLayoutSupport(nodeType, app, [["Left", "Right"], ["Right", "Left"]]); } } diff --git a/web/any_switch.js b/web/any_switch.js index e54e7b6..0012716 100644 --- a/web/any_switch.js +++ b/web/any_switch.js @@ -54,7 +54,7 @@ class AnySwitchforMixin extends RgthreeBaseNode { AnySwitchforMixin.category = nodeType.category; }); applyMixins(nodeType, [RgthreeBaseNode, AnySwitchforMixin]); - addConnectionLayoutSupport(nodeType, app, [["Left"], ["Right"]]); + addConnectionLayoutSupport(nodeType, app, [["Left", "Right"], ["Right", "Left"]]); } } AnySwitchforMixin.comfyClass = "";