This commit introduces the "Style String Injector" node, which takes an input string (typically a prompt) and generates an output string by injecting the selected style into the input text. Additionally, it refactors and generalizes the front-end extension code used for dynamic category-based style selection, making it reusable across multiple nodes without duplicating code.
140 lines
2.4 KiB
JSON
140 lines
2.4 KiB
JSON
{
|
|
"id": "9a14adb3-81b3-426c-822c-735347a473ff",
|
|
"revision": 0,
|
|
"last_node_id": 15,
|
|
"last_link_id": 8,
|
|
"nodes": [
|
|
{
|
|
"id": 6,
|
|
"type": "PreviewAny",
|
|
"pos": [
|
|
1010.3333333333334,
|
|
281.3333333333333
|
|
],
|
|
"size": [
|
|
450,
|
|
380
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "source",
|
|
"type": "*",
|
|
"link": 8
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "PreviewAny"
|
|
},
|
|
"widgets_values": [
|
|
null,
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "PrimitiveStringMultiline",
|
|
"pos": [
|
|
130.33333333333334,
|
|
281.3333333333333
|
|
],
|
|
"size": [
|
|
450,
|
|
360
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "STRING",
|
|
"type": "STRING",
|
|
"links": [
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "PrimitiveStringMultiline"
|
|
},
|
|
"widgets_values": [
|
|
"Worn-down computer control panels surrounding an adult woman in dirty clothes sitting in a starship, creating a hyperpunk scene."
|
|
]
|
|
},
|
|
{
|
|
"id": 10,
|
|
"type": "StyleStringInjector //ZImagePowerNodes",
|
|
"pos": [
|
|
630,
|
|
280
|
|
],
|
|
"size": [
|
|
330,
|
|
90
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "string",
|
|
"type": "STRING",
|
|
"link": 7
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "STRING",
|
|
"type": "STRING",
|
|
"links": [
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "StyleStringInjector //ZImagePowerNodes"
|
|
},
|
|
"widgets_values": [
|
|
"illustration",
|
|
"\"Anime\""
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
7,
|
|
2,
|
|
0,
|
|
10,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
8,
|
|
10,
|
|
0,
|
|
6,
|
|
0,
|
|
"STRING"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 1,
|
|
"offset": [
|
|
44.32291666666666,
|
|
18.861979166666615
|
|
]
|
|
},
|
|
"workflowRendererVersion": "LG",
|
|
"frontendVersion": "1.35.9"
|
|
},
|
|
"version": 0.4
|
|
} |