This commit is contained in:
zombieyang
2025-10-11 08:36:12 +08:00
parent 7425efc33e
commit 427505e2b3
9 changed files with 5153 additions and 5140 deletions
+9
View File
@@ -1,3 +1,12 @@
## [1.9.11] - 2025-09-25
* fix: if current layer is group and curlayer is actived in image widget, many strange behaviour.
* fix: cannot send image if the prefix is setted in `SaveImage` node
* fix: empty custom api's input will cause white screen.
* fix: not sending to correct position when sending back to canvas.
* fix: the image limit size would always set to 2048.
* feature: autosend
* optimize: optimize the once image syncing logic
## [1.9.10] - 2025-09-25
* The release candidate of 2.0.
* Update the image selection again, now is more easier.
+5136 -5108
View File
File diff suppressed because one or more lines are too long
+5 -29
View File
@@ -279,16 +279,10 @@ export default function (sdppp, version = 1) {
sdppp.widgetable.add('LoadImage', {
formatter: (node) => {
if (version == 2) {
const [subfolder, ...rest] = node.widgets[0].value.split('/')
return {
title: getTitle(node),
widgets: [{
value: {
url: node.widgets[0].value,
source: node.properties.source || 'remote',
auto: node.properties.auto || false,
thumbnail: location.protocol + '//' + location.host + '/api/view?type=input&filename=' + rest.join('/') + '&subfolder=' + subfolder
},
value: node.widgets[0].value,
outputType: "images",
options: node.widgets[0].options
}]
@@ -307,13 +301,7 @@ export default function (sdppp, version = 1) {
}
},
setter: (node, widgetIndex, value) => {
if (version == 1) return false;
if (version == 2) {
node.widgets[widgetIndex].value = value.url;
node.setProperty('source', value.source);
node.setProperty('auto', value.auto);
return true;
}
return false;
}
})
/**
@@ -324,16 +312,10 @@ export default function (sdppp, version = 1) {
sdppp.widgetable.add('LoadImageMask', {
formatter: (node) => {
if (version == 2) {
const [subfolder, ...rest] = node.widgets[0].value.split('/')
return {
title: getTitle(node),
widgets: [{
value: {
url: node.widgets[0].value,
source: node.properties.source || 'remote',
auto: node.properties.auto || false,
thumbnail: location.protocol + '//' + location.host + '/api/view?type=input&filename=' + rest.join('/') + '&subfolder=' + subfolder
},
value: node.widgets[0].value,
outputType: "masks",
options: node.widgets[0].options
}]
@@ -352,13 +334,7 @@ export default function (sdppp, version = 1) {
}
},
setter: (node, widgetIndex, value) => {
if (version == 1) return false;
if (version == 2) {
node.widgets[widgetIndex].value = value.url;
node.setProperty('source', value.source);
node.setProperty('auto', value.auto);
return true;
}
return false;
}
})
@@ -563,4 +539,4 @@ function nameByConnectedOutputOrTitle(node) {
*/
function getTitle(node) {
return sdpppX.getNodeTitle(node);
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sdppp",
"version": "1.9.10",
"version": "1.9.11",
"type": "module",
"scripts": {
"watch": "nodemon -w typescripts -e mjs,js,jsx,mts,ts,tsx,json,css,html -x node typescripts/src/build/index.build.ts",
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "sd-ppp"
description = "getting/sending picture from/to Photoshop with a simple connection. Make Photoshop become the workspace of your ComfyUI."
version = "1.9.10"
version = "1.9.11"
license = { file = "LICENSE" }
[project.urls]
+1 -1
View File
@@ -1 +1 @@
509
510
Binary file not shown.
Binary file not shown.
Binary file not shown.