Update litegraph (Animate to bounds) (#1475)

This commit is contained in:
Chenlei Hu
2024-11-08 14:12:58 -05:00
committed by GitHub
parent 1d9c3f00b7
commit 0eba49c536
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.3.37", "version": "1.3.37",
"dependencies": { "dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1", "@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/litegraph": "^0.8.22", "@comfyorg/litegraph": "^0.8.23",
"@primevue/themes": "^4.0.5", "@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0", "@vueuse/core": "^11.0.0",
"axios": "^1.7.4", "axios": "^1.7.4",
@@ -1919,9 +1919,9 @@
"license": "GPL-3.0-only" "license": "GPL-3.0-only"
}, },
"node_modules/@comfyorg/litegraph": { "node_modules/@comfyorg/litegraph": {
"version": "0.8.22", "version": "0.8.23",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.22.tgz", "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.23.tgz",
"integrity": "sha512-21W6yeG1EO2mG3qaKWUiEFW9yWwBRooRuQEYojyOBE90OI/J2UnPTfjWo43TfEQsLzHVVJTakoF+iG50pgGosQ==", "integrity": "sha512-XSZxWfAlINOoh2NPVK8wTxkJbwlzb7fW7KyJy4PZQmZCYu5cI4d+UDU6MqvvcXNSFp5lckup65JHlfnvaX6AvQ==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@cspotcode/source-map-support": { "node_modules/@cspotcode/source-map-support": {

View File

@@ -71,7 +71,7 @@
}, },
"dependencies": { "dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1", "@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/litegraph": "^0.8.22", "@comfyorg/litegraph": "^0.8.23",
"@primevue/themes": "^4.0.5", "@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0", "@vueuse/core": "^11.0.0",
"axios": "^1.7.4", "axios": "^1.7.4",

View File

@@ -2964,7 +2964,7 @@ export class ComfyApp {
public goToNode(nodeId: NodeId) { public goToNode(nodeId: NodeId) {
const graphNode = this.graph.getNodeById(nodeId) const graphNode = this.graph.getNodeById(nodeId)
if (!graphNode) return if (!graphNode) return
this.canvas.animateToNode(graphNode) this.canvas.animateToBounds(graphNode.boundingRect)
} }
} }