docs(docs): adjust default zoom to 1.6× for improved label readability

This commit is contained in:
Prad Nukala committed 2026-09-22 15:10:30 -04:00
1 parent 0009075138
commit 7960dee431
1 file changed
+2 -2
+2 -2
View File
@@ -176,8 +176,8 @@ const topicRoutes = (nav: unknown): Record<string, string> => {
// ── component ────────────────────────────────────────────────────
interface ViewBox { x: number; y: number; w: number; h: number }
/** The resting view — 2× on the centre so node labels read at the content width; 1× stays reachable by zooming out. */
const HOME_ZOOM = 2;
/** The resting view — 1.6× on the centre so node labels read at the content width; 1× stays reachable by zooming out. */
const HOME_ZOOM = 1.6;
const HOME: ViewBox = { x: (W - W / HOME_ZOOM) / 2, y: (H - H / HOME_ZOOM) / 2, w: W / HOME_ZOOM, h: H / HOME_ZOOM };
const clamp = (v: number, lo: number, hi: number) => Math.min(Math.max(v, lo), hi);