Don't show relay caption when collapsed. Fixes #128

This commit is contained in:
rgthree
2024-01-26 22:19:09 -05:00
parent aaa0b2dddd
commit 060e4a320b
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -96,6 +96,9 @@ class NodeModeRelay extends BaseCollectorNode {
}
override onDrawForeground(ctx: CanvasRenderingContext2D, canvas: LGraphCanvas): void {
if (this.flags?.collapsed) {
return;
}
if (
this.properties['on_muted_inputs'] !== 'MUTE' ||
this.properties['on_bypassed_inputs'] !== 'BYPASS' ||
+4
View File
@@ -44,6 +44,10 @@ class NodeModeRelay extends BaseCollectorNode {
this.properties['on_any_active_inputs'] = 'ACTIVE';
}
onDrawForeground(ctx, canvas) {
var _a;
if ((_a = this.flags) === null || _a === void 0 ? void 0 : _a.collapsed) {
return;
}
if (this.properties['on_muted_inputs'] !== 'MUTE' ||
this.properties['on_bypassed_inputs'] !== 'BYPASS' ||
this.properties['on_any_active_inputs'] != 'ACTIVE') {