Animate goto node (#1412)

* Animate goto node

* Update litegraph (animateToNode)
This commit is contained in:
Chenlei Hu
2024-11-03 10:57:17 -05:00
committed by GitHub
parent 27bacc36d4
commit 00df7b428f
3 changed files with 7 additions and 6 deletions

9
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.3.31",
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/litegraph": "^0.8.14",
"@comfyorg/litegraph": "^0.8.15",
"@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0",
"axios": "^1.7.4",
@@ -1911,9 +1911,10 @@
"dev": true
},
"node_modules/@comfyorg/litegraph": {
"version": "0.8.14",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.14.tgz",
"integrity": "sha512-47699IXTu3RSPaAzGAumFJKIydWp84ePLYRIuxMNB4772pjhI2stOD+ex5Eo6kVwkdBzeikLq1scCGgFzxGdsQ=="
"version": "0.8.15",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.15.tgz",
"integrity": "sha512-Wq3QxgBNs93cR7gN8aboKbsvmVoWmj9kIxuI1wm1xZUMEI3PfpwGVhRLjABxk5AMtxFOOMiQIcJvbYTAoW+itQ==",
"license": "MIT"
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",

View File

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

View File

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