mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 09:45:13 +00:00
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:
@@ -19,8 +19,8 @@
|
||||
<Button
|
||||
severity="secondary"
|
||||
icon="pi pi-expand"
|
||||
v-tooltip.left="t('graphCanvasMenu.resetView')"
|
||||
@click="() => commandStore.execute('Comfy.Canvas.ResetView')"
|
||||
v-tooltip.left="t('graphCanvasMenu.fitView')"
|
||||
@click="() => commandStore.execute('Comfy.Canvas.FitView')"
|
||||
/>
|
||||
<Button
|
||||
severity="secondary"
|
||||
|
||||
Reference in New Issue
Block a user