mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-16 08:14:32 +08:00
fix
This commit is contained in:
parent
2fb0ee4934
commit
83095a51ba
@ -80,9 +80,9 @@ app.registerExtension({
|
|||||||
const onGetMaskSizeConnectInput = nodeType.prototype.onConnectInput;
|
const onGetMaskSizeConnectInput = nodeType.prototype.onConnectInput;
|
||||||
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
||||||
const v = onGetMaskSizeConnectInput?.(this, arguments);
|
const v = onGetMaskSizeConnectInput?.(this, arguments);
|
||||||
targetSlot.outputs[1]["name"] = "width"
|
this.outputs[1]["name"] = "width"
|
||||||
targetSlot.outputs[2]["name"] = "height"
|
this.outputs[2]["name"] = "height"
|
||||||
targetSlot.outputs[3]["name"] = "count"
|
this.outputs[3]["name"] = "count"
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
const onGetMaskSizeExecuted = nodeType.prototype.onExecuted;
|
const onGetMaskSizeExecuted = nodeType.prototype.onExecuted;
|
||||||
@ -100,9 +100,9 @@ app.registerExtension({
|
|||||||
const onGetImageSizeConnectInput = nodeType.prototype.onConnectInput;
|
const onGetImageSizeConnectInput = nodeType.prototype.onConnectInput;
|
||||||
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
||||||
const v = onGetImageSizeConnectInput?.(this, arguments);
|
const v = onGetImageSizeConnectInput?.(this, arguments);
|
||||||
targetSlot.outputs[1]["name"] = "width"
|
this.outputs[1]["name"] = "width"
|
||||||
targetSlot.outputs[2]["name"] = "height"
|
this.outputs[2]["name"] = "height"
|
||||||
targetSlot.outputs[3]["name"] = "count"
|
this.outputs[3]["name"] = "count"
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
const onGetImageSizeExecuted = nodeType.prototype.onExecuted;
|
const onGetImageSizeExecuted = nodeType.prototype.onExecuted;
|
||||||
@ -120,7 +120,7 @@ app.registerExtension({
|
|||||||
const onPreviewAnimationConnectInput = nodeType.prototype.onConnectInput;
|
const onPreviewAnimationConnectInput = nodeType.prototype.onConnectInput;
|
||||||
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
||||||
const v = onPreviewAnimationConnectInput?.(this, arguments);
|
const v = onPreviewAnimationConnectInput?.(this, arguments);
|
||||||
targetSlot.title = "Preview Animation"
|
this.title = "Preview Animation"
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
const onPreviewAnimationExecuted = nodeType.prototype.onExecuted;
|
const onPreviewAnimationExecuted = nodeType.prototype.onExecuted;
|
||||||
@ -136,8 +136,8 @@ app.registerExtension({
|
|||||||
const onVRAM_DebugConnectInput = nodeType.prototype.onConnectInput;
|
const onVRAM_DebugConnectInput = nodeType.prototype.onConnectInput;
|
||||||
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) {
|
||||||
const v = onVRAM_DebugConnectInput?.(this, arguments);
|
const v = onVRAM_DebugConnectInput?.(this, arguments);
|
||||||
targetSlot.outputs[3]["name"] = "freemem_before"
|
this.outputs[3]["name"] = "freemem_before"
|
||||||
targetSlot.outputs[4]["name"] = "freemem_after"
|
this.outputs[4]["name"] = "freemem_after"
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
const onVRAM_DebugExecuted = nodeType.prototype.onExecuted;
|
const onVRAM_DebugExecuted = nodeType.prototype.onExecuted;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user