Update litegraph (Fix drag + alt copy node) (#253)

* Update litegraph

* Update github action

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-07-28 13:39:45 -04:00
committed by GitHub
parent 7c6bd7ed71
commit 561162fb3e
5 changed files with 18 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ jobs:
- name: Checkout ComfyUI_frontend
uses: actions/checkout@v4
with:
repository: "huchenlei/ComfyUI_frontend"
repository: "Comfy-Org/ComfyUI_frontend"
path: "ComfyUI_frontend"
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3

View File

@@ -53,4 +53,15 @@ test.describe('Copy Paste', () => {
await comfyPage.ctrlV()
await expect(comfyPage.canvas).toHaveScreenshot('no-node-copied.png')
})
test('Copy node by dragging + alt', async ({ comfyPage }) => {
// TextEncodeNode1
await comfyPage.page.mouse.move(618, 191)
await comfyPage.page.keyboard.down('Alt')
await comfyPage.page.mouse.down()
await comfyPage.page.mouse.move(100, 100)
await comfyPage.page.mouse.up()
await comfyPage.page.keyboard.up('Alt')
await expect(comfyPage.canvas).toHaveScreenshot('drag-copy-copied-node.png')
})
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

9
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.2.5",
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.2.1",
"@comfyorg/litegraph": "^0.7.29",
"@comfyorg/litegraph": "^0.7.30",
"@primevue/themes": "^4.0.0-rc.2",
"@vitejs/plugin-vue": "^5.0.5",
"class-transformer": "^0.5.1",
@@ -1830,9 +1830,10 @@
"dev": true
},
"node_modules/@comfyorg/litegraph": {
"version": "0.7.29",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.7.29.tgz",
"integrity": "sha512-lXgqcJseywRJQ/B9ClW+5u6VIbDJWy8SMJJ1nxXDgTsE30UUmOnBhZkLZZ3ffMv3QFUcYoNLq5EJn3EFx3g+zA=="
"version": "0.7.30",
"resolved": "https://registry.npmjs.org/@comfyorg/litegraph/-/litegraph-0.7.30.tgz",
"integrity": "sha512-8MHZQBQ9tCBtA0NapdQFVMihK7m5kpTTfXTPmQHw7hlH7OT693jiTOTDHhPpfq/ATx6+ghV2LkCdEmq3Z2WxJw==",
"license": "MIT"
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",

View File

@@ -47,7 +47,7 @@
},
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.2.1",
"@comfyorg/litegraph": "^0.7.29",
"@comfyorg/litegraph": "^0.7.30",
"@primevue/themes": "^4.0.0-rc.2",
"@vitejs/plugin-vue": "^5.0.5",
"class-transformer": "^0.5.1",