fix: 统一针孔幕布转场收尾 — 注释与参考实现逐字节对齐 + 文档同步

- 转场修复主体(LoadingCurtain 全屏 wrapper + pointerEvents、
  RouteTransitionOverlay 统一针孔幕布状态机 + 常驻 canvas、
  LoadingOverlay 精简为就绪 hooks、(site)/layout 移除 LoadingOverlay
  渲染)已随 bededec 一并入库(并行会话 git add -A 卷入);本提交
  补齐 RouteTransitionOverlay 与 vhsys-official-ui cf908fe 终态的
  逐字节对齐(注释措辞 + 空行)
- docs:README 架构图与 03 §5 更新为针孔幕布编排描述(替换旧的 CSS
  擦入层说明),记录 R3F 内联样式覆盖与常驻 canvas 两个关键点
- 验证:npx tsc --noEmit 通过;npx next build 通过;生产环境 CDP
  实测:点击导航 → cover 收拢(0.93 幕布占比)→ 全遮 1.0(URL 才
  切换)→ reveal 张开(0.34)→ 详情页归零;entry 起步全遮后揭开;
  幕布 canvas 全屏 1440x900、pointer-events none、视口中心无 CANVAS、
  0 console 错误(对标 vhsys-official-ui 27467b7 + cf908fe)
This commit is contained in:
2026-09-02 19:33:52 +08:00
parent bededec29c
commit 0ed0fcea4d
3 changed files with 31 additions and 12 deletions
+3 -2
View File
@@ -13,8 +13,8 @@
* the TARGET page's routeLoading gate (only "/" has one:
* readyToLoadHeavy && fontsReady).
* → phase "reveal" : curtain OPENS (0.8s); on complete →
* idle, navigation cleared. Scramble lines re-enabled 100ms into
* the reveal.
* idle, navigation cleared, canvas unmounted. Scramble lines
* re-enabled 100ms into the reveal.
*
* The linear-DOM-wipe overlay this replaces did NOT match the original —
* the original never wipes; it pinholes through the masked-dots curtain.
@@ -264,6 +264,7 @@ export default function RouteTransitionOverlay() {
return () => window.clearTimeout(t);
}, [mode, phase, setAllowScrambleLines]);
// open prop (original O): idle → menuOpen; else closed until reveal.
const open = mode === "idle" ? menuOpen : phase !== "reveal";
// initialProgress (original B): only entry:wait starts fully closed.