enzostvs HF Staff commited on
Commit
2677922
·
1 Parent(s): 7c95122

nvm allow dezoom

Browse files
src/lib/components/flow/FitViewOnResize.svelte CHANGED
@@ -70,7 +70,7 @@
70
  const shouldAnimate = opts?.forceAnimate || (opts?.animate !== false && !isFirstLayout);
71
  fitView({
72
  maxZoom: breakpointsState.isMobile ? 1 : 1.15,
73
- minZoom: breakpointsState.isMobile ? 1 : 0.7,
74
  padding: 0.15,
75
  ...(shouldAnimate ? { interpolate: 'smooth' as const, duration: 250 } : {}),
76
  nodes: nodes.map((n) => ({ id: n.id }))
 
70
  const shouldAnimate = opts?.forceAnimate || (opts?.animate !== false && !isFirstLayout);
71
  fitView({
72
  maxZoom: breakpointsState.isMobile ? 1 : 1.15,
73
+ minZoom: 0.7,
74
  padding: 0.15,
75
  ...(shouldAnimate ? { interpolate: 'smooth' as const, duration: 250 } : {}),
76
  nodes: nodes.map((n) => ({ id: n.id }))
src/routes/+page.svelte CHANGED
@@ -99,7 +99,6 @@
99
  {nodeTypes}
100
  fitView
101
  maxZoom={breakpointsState.isMobile ? 1 : 1.2}
102
- minZoom={breakpointsState.isMobile ? 1 : 0.1}
103
  zoomOnScroll={false}
104
  panOnScroll={true}
105
  panOnScrollSpeed={0.8}
 
99
  {nodeTypes}
100
  fitView
101
  maxZoom={breakpointsState.isMobile ? 1 : 1.2}
 
102
  zoomOnScroll={false}
103
  panOnScroll={true}
104
  panOnScrollSpeed={0.8}