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 <huchenlei@proton.me>
This commit is contained in:
Zoltán Dócs
2024-11-08 21:03:21 +01:00
committed by GitHub
parent 0eba49c536
commit 0161a670cf
7 changed files with 24 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ import { ComfyAppMenu } from './ui/menu/index'
import { getStorageValue } from './utils'
import { ComfyWorkflow } from '@/stores/workflowStore'
import {
LGraphGroup,
LGraphCanvas,
LGraph,
LGraphNode,