Add direction_in optional input for chaining direction outputs; clean up unused code

This commit is contained in:
2026-04-22 14:25:52 -07:00
parent cdc5979e3f
commit 490a220902
2 changed files with 26 additions and 62 deletions

View File

@@ -1,13 +1,5 @@
import { app } from "../../../scripts/app.js";
function getAllNodesOfType(type) {
const nodes = [];
for (const node of app.graph._nodes) {
if (node.type === type) nodes.push(node);
}
return nodes;
}
function filterChildDirs(allDirs, parentPrefix) {
const prefixNorm = parentPrefix.replace(/\/$/, "").toLowerCase();
const results = [];
@@ -191,6 +183,17 @@ app.registerExtension({
origOnRemoved();
listEl.remove();
};
const imageWidget = this.widgets?.find((w) => w.name === "image");
if (imageWidget) {
const origCallback = imageWidget.callback ? imageWidget.callback.bind(imageWidget) : () => {};
imageWidget.callback = (value) => {
origCallback(value);
if (imageWidget.element) {
imageWidget.element.style.opacity = "1";
}
};
}
};
},