Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update litegraph (Global snap to grid setting) #1629

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update litegraph (Global snap to grid setting)
huchenlei committed Nov 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a79b0b1bcb5532e635fd15a10832f282742a4400
8 changes: 4 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
@@ -73,7 +73,7 @@
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-electron-types": "^0.3.6",
"@comfyorg/litegraph": "^0.8.31",
"@comfyorg/litegraph": "^0.8.32",
"@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0",
"@xterm/addon-fit": "^0.10.0",
5 changes: 1 addition & 4 deletions src/components/graph/GraphCanvas.vue
Original file line number Diff line number Diff line change
@@ -182,10 +182,7 @@ watchEffect(() => {
})

watchEffect(() => {
const alwaysSnapToGrid = settingStore.get('pysssss.SnapToGrid')
if (comfyApp.graph?.config) {
comfyApp.graph.config.alwaysSnapToGrid = alwaysSnapToGrid
}
LiteGraph.alwaysSnapToGrid = settingStore.get('pysssss.SnapToGrid')
})

watchEffect(() => {