Skip to content

Commit 2019c1d

Browse files
authored
Align reset_view param on json file load (#3823)
1 parent 2425e32 commit 2019c1d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

browser_tests/assets/default_input.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
"config": {},
4343
"extra": {
4444
"ds": {
45-
"scale": 2.1600300525920346,
45+
"scale": 1,
4646
"offset": [
47-
63.071794466403446,
48-
75.18055335968394
47+
0,
48+
0
4949
]
5050
}
5151
},
5252
"version": 0.4
53-
}
53+
}

browser_tests/assets/execution/partial_execution.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"extra": {
7878
"frontendVersion": "1.19.1",
7979
"ds": {
80-
"offset": [400, 400],
80+
"offset": [0, 0],
8181
"scale": 1
8282
}
8383
},

browser_tests/assets/string_node_id.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,10 @@
368368
"ds": {
369369
"scale": 1,
370370
"offset": [
371-
149.9747408641311,
372-
383.8593224280729
371+
0,
372+
0
373373
]
374374
}
375375
},
376376
"version": 0.4
377-
}
377+
}

src/scripts/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ export class ComfyApp {
13641364
await this.loadGraphData(
13651365
JSON.parse(readerResult),
13661366
true,
1367-
false,
1367+
true,
13681368
fileName
13691369
)
13701370
}

0 commit comments

Comments
 (0)