From 0161a670cf05d9c03f2330057f3647738d26930d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20D=C3=B3cs?= Date: Fri, 8 Nov 2024 21:03:21 +0100 Subject: [PATCH] Fit view to bounds (#1474) * fit view: - fit view to canvas selection - fit view to whole graph when nothing is selected - add button to graph canvas menu - assign default keybinding '.' * Adjust on changed APIs * Update litegraph --------- Co-authored-by: huchenlei --- package-lock.json | 8 ++++---- package.json | 2 +- src/components/graph/GraphCanvasMenu.vue | 4 ++-- src/i18n.ts | 3 +++ src/scripts/app.ts | 1 + src/stores/commandStore.ts | 6 ++++++ src/stores/coreKeybindings.ts | 7 +++++++ 7 files changed, 24 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 217a85bc0..66e85605c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.3.37", "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.3.1", - "@comfyorg/litegraph": "^0.8.23", + "@comfyorg/litegraph": "^0.8.24", "@primevue/themes": "^4.0.5", "@vueuse/core": "^11.0.0", "axios": "^1.7.4", @@ -1919,9 +1919,9 @@ "license": "GPL-3.0-only" }, "node_modules/@comfyorg/litegraph": { - "version": "0.8.23", - "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.23.tgz", - "integrity": "sha512-XSZxWfAlINOoh2NPVK8wTxkJbwlzb7fW7KyJy4PZQmZCYu5cI4d+UDU6MqvvcXNSFp5lckup65JHlfnvaX6AvQ==", + "version": "0.8.24", + "resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.8.24.tgz", + "integrity": "sha512-jlr0oR0fwtP3r+2nQTo73xq8URyqWnhQrNfmrHsw893pVM1SXEOor8KdzGy9pZ0dxTRLS8afityBQLO0pBDKeg==", "license": "MIT" }, "node_modules/@cspotcode/source-map-support": { diff --git a/package.json b/package.json index ba1dcc4d1..1277c15f9 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ }, "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.3.1", - "@comfyorg/litegraph": "^0.8.23", + "@comfyorg/litegraph": "^0.8.24", "@primevue/themes": "^4.0.5", "@vueuse/core": "^11.0.0", "axios": "^1.7.4", diff --git a/src/components/graph/GraphCanvasMenu.vue b/src/components/graph/GraphCanvasMenu.vue index aea2e27be..fa5627198 100644 --- a/src/components/graph/GraphCanvasMenu.vue +++ b/src/components/graph/GraphCanvasMenu.vue @@ -19,8 +19,8 @@