Improving the logic of the RS Outpaint node

This commit is contained in:
Raykosan
2026-04-17 18:42:01 +03:00
parent 7250bd3bf6
commit 702bcbc382
2 changed files with 2 additions and 11 deletions
+1 -3
View File
@@ -55,7 +55,6 @@ function createState() {
function resetNodeState(st, dom, widgets) {
Object.assign(st, createState());
// 🔑 ПРИНУДИТЕЛЬНАЯ СИНХРОНИЗАЦИЯ ИКОНКИ ЛОКИРОВКИ
st.arLocked = true;
dom.arBtn.textContent = "🔒";
dom.arBtn.style.border = "1px solid #99c0ee";
@@ -451,10 +450,9 @@ app.registerExtension({
const node = this;
const widgets = { cropState: node.widgets?.find(w => w.name === "crop_state") };
// 🔑 ПРОГРАММНОЕ СКРЫТИЕ ВИДЖЕТА
if (widgets.cropState) {
widgets.cropState.hidden = true;
widgets.cropState.computeSize = () => [0, -4]; // Минимальный размер
widgets.cropState.computeSize = () => [0, -4];
}
if (node.inputs) { for (let i = node.inputs.length - 1; i >= 0; i--) { if (node.inputs[i].name === "crop_state") node.removeInput(i); } }