Skip to content

Commit

Permalink
Animate goto node (#1412)
Browse files Browse the repository at this point in the history
* Animate goto node

* Update litegraph (animateToNode)
  • Loading branch information
huchenlei authored Nov 3, 2024
1 parent 27bacc3 commit 00df7b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 00df7b4

Please sign in to comment.