2026-05-29 19:54:56 +08:00

22 lines
1006 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# UI Baseline
本目录保存白鹭旧版和 Godot 重构版的登录页截图、元数据和 diff 图。
当前固定浏览器参数:
- viewport`640 x 960`
- `deviceScaleFactor: 1`
- 白鹭旧版 URL`http://127.0.0.1:8791/index.html`
- Godot H5 URL`http://127.0.0.1:8792/index.html`
- 白鹭实际游戏 canvas最后一个 `canvas`,当前实测 `480 x 960`
- Godot 实际游戏 canvas`480 x 960` CSS 显示,内部 buffer `640 x 960`
当前对比命令:
```sh
NODE_PATH=/tmp/farm3-playwright/node_modules node tools/compare_ui_baseline.mjs docs/ui-baseline/egret-login-page.png docs/ui-baseline/godot-login-page.png docs/ui-baseline/login-page-diff.png
NODE_PATH=/tmp/farm3-playwright/node_modules node tools/compare_ui_baseline.mjs docs/ui-baseline/egret-login-canvas.png docs/ui-baseline/godot-login-canvas.png docs/ui-baseline/login-canvas-diff.png
```
登录页还没有达到“完全一致”验收标准。当前差异主要集中在字体渲染和贴图采样边缘。