Skip to content

Commit 8a3c2e1

Browse files
committed
use diffusion-chain to make sd call
1 parent 7a7699d commit 8a3c2e1

File tree

4 files changed

+115
-291
lines changed

4 files changed

+115
-291
lines changed

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
"author": "Adobe Inc",
66
"license": "Apache-2.0",
77
"dependencies": {
8-
"@types/photoshop": "^24.5.1",
9-
"@types/react": "^18.2.6",
10-
"@types/react-dom": "^18.2.4",
118
"changedpi": "^1.0.4",
9+
"diffusion-chain": "^1.0.4",
1210
"fastify": "^4.10.2",
1311
"jimp": "^0.16.2",
1412
"madge": "^6.0.0",
@@ -24,12 +22,17 @@
2422
"test": "test"
2523
},
2624
"devDependencies": {
25+
"@types/mkdirp": "^2.0.0",
26+
"@types/photoshop": "^24.5.1",
27+
"@types/react": "^18.2.6",
28+
"@types/react-dom": "^18.2.4",
2729
"@babel/core": "^7.21.8",
2830
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
2931
"@babel/plugin-syntax-class-properties": "^7.12.13",
3032
"@babel/plugin-transform-react-jsx": "^7.21.5",
3133
"@svgr/webpack": "^8.0.1",
3234
"babel-loader": "^9.1.2",
35+
"chalk": "^5.3.0",
3336
"clean-webpack-plugin": "^4.0.0",
3437
"commander": "^11.0.0",
3538
"copy-webpack-plugin": "^11.0.0",
@@ -45,7 +48,6 @@
4548
"url-loader": "^4.1.1",
4649
"webpack": "^5.82.1",
4750
"webpack-cli": "^5.1.1",
48-
"chalk": "^5.3.0",
4951
"yazl": "^2.5.1"
5052
},
5153
"scripts": {
@@ -64,4 +66,4 @@
6466
"url": "https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/issues"
6567
},
6668
"homepage": "https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin#readme"
67-
}
69+
}

typescripts/controlnet/entry.ts

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ function getEnableControlNet(index: number) {
118118
)
119119
else return store.controlNetUnitData[index || 0].enabled
120120
}
121+
function getControlNetDatas() {
122+
return store.controlNetUnitData;
123+
}
121124
function mapPluginSettingsToControlNet(plugin_settings: any) {
122125
const ps = plugin_settings // for shortness
123126
let controlnet_units: any[] = []
@@ -291,5 +294,6 @@ export {
291294
setControlInputImageSrc,
292295
isControlNetModeEnable,
293296
getModuleDetail,
297+
getControlNetDatas,
294298
store,
295299
}

0 commit comments

Comments
 (0)