diff --git a/web/scripts/capture-galaxy.mjs b/web/scripts/capture-galaxy.mjs
new file mode 100644
index 0000000..76304d0
--- /dev/null
+++ b/web/scripts/capture-galaxy.mjs
@@ -0,0 +1,21 @@
+import { chromium } from "playwright";
+
+const base = process.env.TESSERA_URL ?? "http://127.0.0.1:8787/";
+const outFlow =
+ process.env.FLOW_SHOT ?? "/cursor/stores/self/media/tessera-galaxy-flow-polish.png";
+const outLock =
+ process.env.LOCK_SHOT ?? "/cursor/stores/self/media/tessera-galaxy-locked-polish.png";
+
+const browser = await chromium.launch({ headless: true });
+const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
+await page.goto(base, { waitUntil: "networkidle", timeout: 30_000 });
+await page.waitForTimeout(2500);
+await page.screenshot({ path: outFlow, fullPage: false });
+const svg = page.locator('[aria-label="Galaxy vault viewport"]');
+const box = await svg.boundingBox();
+if (!box) throw new Error("galaxy svg not found");
+await page.mouse.click(box.x + box.width / 2, box.y + box.height / 2);
+await page.waitForTimeout(1400);
+await page.screenshot({ path: outLock, fullPage: false });
+await browser.close();
+console.log("saved", outFlow, outLock);
diff --git a/web/src/components/scene/BlackholeGalaxy.tsx b/web/src/components/scene/BlackholeGalaxy.tsx
index f321f97..02f729e 100644
--- a/web/src/components/scene/BlackholeGalaxy.tsx
+++ b/web/src/components/scene/BlackholeGalaxy.tsx
@@ -7,11 +7,15 @@ import {
moonPositions,
positionOnEllipse,
} from "../../lib/galaxyLayout";
+import {
+ layoutLockLabels,
+ shortenOrbitName,
+} from "../../lib/galaxyLabelLayout";
import { easeOutCubic, useGalaxyTime } from "../../hooks/useGalaxyMotion";
const MAX_STARS = 20;
const MAX_MOONS = 6;
-const STAR_R_FLOW = 7.5;
+const STAR_R_FLOW = 8;
const STAR_R_LOCK = 12;
const HIT_R_LOCK = 20;
const MOON_HIT_LOCK = 14;
@@ -76,13 +80,19 @@ export function BlackholeGalaxy({
return () => cancelAnimationFrame(raf);
}, [flowing]);
- const starOrbits = useMemo(
- () => orbits.slice(0, MAX_STARS),
- [orbits],
- );
-
+ const starOrbits = useMemo(() => orbits.slice(0, MAX_STARS), [orbits]);
const snapsByOrbit = useMemo(() => groupSnaps(snapshots), [snapshots]);
+ const lockLabels = useMemo(() => {
+ const positions = starOrbits.map((_, i) =>
+ lockedSlot(i, starOrbits.length),
+ );
+ const names = starOrbits.map((o) => o.name);
+ return layoutLockLabels(positions, names, STAR_R_LOCK);
+ }, [starOrbits]);
+
+ const showLabels = !flowing || blend < 0.35;
+
return (