Repository navigation
StageFlow v1.1.2 — Responsive & FOV-Normalized 3D Billboard Labels
StageFlow v1.1.2 is a focused visual ergonomics and optical LOD patch on top of v1.1.1. It resolves inconsistent 3D billboard badge sizing across desktop camera distances and prevents badges from appearing oversized on mobile and narrow split-pane viewports, while keeping all label and sublabel text intact.
What's Fixed in v1.1.2
🏷️ Responsive & FOV-Normalized 3D Billboard Label Sizing (#16)
- Tighter Perspective Scale Bounds (
src/stage/labelLodMath.ts): TightenedMAX_PERSPECTIVE_SCALEfrom1.55to1.08and raisedMIN_PERSPECTIVE_SCALEfrom0.72to0.75to eliminate close-range badge bloat on desktop and mobile while retaining subtle depth cueing. - Horizontal-FOV Distance Normalization (
computeEffectiveLodDistanceM): Normalized LOD scaling and pill-to-dot collapse distances against horizontal angular coverage (aspectRatio * tan(fovY / 2)) anchored to StageFlow's35mmfull-frame baseline (REF_HALF_HORIZ_TAN), keeping telephoto (85mm) pills readable beyond28m, collapsing wide-angle (24mm) clutter earlier, and keeping adaptive narrow-pane FOV widening (computeAdaptiveDioramaFovDeg) LOD-invariant—while preserving physical proximity culling (< 1.2m) on raw Euclidean distance. - Unified-Breakpoint CSS Sizing & Zero-Churn 60fps Sync (
src/stage/StageBillboardLabel.tsx): AlignedgetBillboardSizeTier()(COMPACT_CANVAS_WIDTH_PX = 768) withisNarrowDiorama(CompactDioramaHeader) so React re-renders only when crossing768px, switching cleanly betweenstandard(px-3 py-1,13px/11px) andcompact(px-2 py-0.5,11px/10px) pill typography while passing livePerspectiveCamera.fovand canvas aspect ratio insideuseLayoutEffectanduseFrame.
Quality & Verification
- Unit Test Suite:
265deterministic tests passing across22Vitest suites (including19tests intests/unit/billboardLabelLod.test.tscovering[0.75, 1.08]bounds,< 768pxtier switching,85mm/24mmFOV normalization, adaptive narrow-pane invariance, and physical proximity culling). - Static Checks:
oxlint(0warnings /0errors), strict TypeScripttsc -b, and Vite production build clean.
Upgrade & Usage Notes
- Backward Compatibility: All
v1.1.1,v1.1.0, andv1.0.0YAML choreography scores remain 100% compatible without changes.
Full Changelog & Documentation
- 📜 CHANGELOG.md (
[1.1.2]) — Granular file-by-file technical breakdown. - 📖 YAML Authoring Guide — Complete DSL syntax and production recipes.
- 📐 StageFlow Script Specification — Optical math, kinematics, and normalized AST contracts.
What's Changed
Full Changelog: v1.1.1...v1.1.2