mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
refactor: more cleanup
This commit is contained in:
@@ -21,8 +21,6 @@ function useVueNodeLifecycleIndividual() {
|
||||
|
||||
const { startSync } = useLayoutSync()
|
||||
|
||||
// const { fixOverlaps } = useFixVueNodeOverlap()
|
||||
|
||||
const initializeNodeManager = () => {
|
||||
// Use canvas graph if available (handles subgraph contexts), fallback to app graph
|
||||
const activeGraph = comfyApp.canvas?.graph
|
||||
|
||||
@@ -64,7 +64,7 @@ export function useFixVueNodeOverlap() {
|
||||
|
||||
if (scaledLgBounds)
|
||||
canvas.ds.fitToBounds(scaledLgBounds, {
|
||||
zoom: 0.6
|
||||
zoom: 0.6 //Makes it so the fit to view is slightly zoomed out and not edge to edge.
|
||||
})
|
||||
|
||||
function scalePosFromCenter(pos: Point): {
|
||||
|
||||
Reference in New Issue
Block a user