diff --git a/src/editor/graph/graphView.ts b/src/editor/graph/graphView.ts index 4ba2818a..7be9f6ea 100644 --- a/src/editor/graph/graphView.ts +++ b/src/editor/graph/graphView.ts @@ -12,7 +12,7 @@ import { ViewTween } from '../viewTween'; /** Spacing of the background grid – and, with snapping on, of the positions a drag can leave. */ export const GRID_STEP = 24; -export const ZOOM_LIMITS = { min: 0.25, max: 2.5 }; +export const ZOOM_LIMITS = { min: 0.125, max: 2.5 }; /** Breathing room around the framed nodes, so they do not touch the edge. */ export const FIT_MARGIN = 24; /** Below this on-screen spacing the grid is noise rather than orientation, so it is dropped. */ diff --git a/tests/editor/plugins.test.ts b/tests/editor/plugins.test.ts index d611122d..07d08600 100644 --- a/tests/editor/plugins.test.ts +++ b/tests/editor/plugins.test.ts @@ -613,6 +613,6 @@ describe('zooming a graph view about a point', () => { it('stops at the zoom limits', () => { expect(zoomedAbout({ pan: { x: 0, y: 0 }, zoom: 2 }, { x: 0, y: 0 }, 10).zoom).toBe(2.5); - expect(zoomedAbout({ pan: { x: 0, y: 0 }, zoom: 0.3 }, { x: 0, y: 0 }, 0.1).zoom).toBe(0.25); + expect(zoomedAbout({ pan: { x: 0, y: 0 }, zoom: 0.3 }, { x: 0, y: 0 }, 0.1).zoom).toBe(0.125); }); }); diff --git a/tools/e2e/06-graph.mjs b/tools/e2e/06-graph.mjs index ff556f30..34bebe79 100644 --- a/tools/e2e/06-graph.mjs +++ b/tools/e2e/06-graph.mjs @@ -569,7 +569,7 @@ export async function graph(t) { // 6o. Fit really fits: proven against a node parked far outside, and against the fact that the // graph is then wider than the canvas – otherwise centring alone would pass this check. - // The distance follows the canvas: a fixed 2500 units needs a zoom below the 0.25 floor once + // The distance follows the canvas: a fixed 2500 units can need a zoom below the floor once // the canvas is short, and then Fit cannot fit anything however correct it is. const park = Math.round(area.w); await evaluate(