Files
Robot_Arm/.gitignore
T
cbb f713355351 refactor(viewer): app.js 按职责切成 8 个普通脚本(纯切片,零语义改动)
state / harness / camera / pick / ui / sheets / render / urlparams。
经典脚本的顶层 const/let 落在同一个全局词法作用域,所以切片本身不改变任何行为——
这一步先让"文件边界"与"模块语义"两件事分离:翻 ESM 时若出问题,责任清楚在
import/export,而不是切片切错了行。

切片踩到并修掉的:urlparams.js 被切掉了 IIFE 的收尾 })();(我按 len-2 收边界),
node --check 当场报 Unexpected end of input。

截图基线分级也在这一步收敛:工程图/装配向导视图带 feGaussianBlur 发光滤镜,
同一构建两轮就有 ±1 抖动(先前扫描那两轮碰巧逐字节相同,才漏进"稳定"清单,
于是随机假 FAIL)。把 8 张工程图/向导视图连同 3 张线束 x-ray、boss_p07、
p03_mount_loose 一起转像素容差(存参考像素,阈值 mean<=0.02、单像素<=32,
约实测 20x 余量),其余 92 张仍要求逐字节相同。

关卡:92 张逐字节一致 + 13 张在噪声阈内;数据哈希与 IK exact 段一致。
2026-10-15 04:45:56 +08:00

47 lines
1.3 KiB
Plaintext
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.
# Python
__pycache__/
*.pyc
# 构建产物(可用 src/ 下的脚本重新生成)
out/
# 临时调试脚本与截图
scratch/
# 单文件查看器优化前的完整备份(带版本标识,勿随手删)
backups/
# 重构前的源码快照与脚本自动备份(git 历史里已有旧版本,不重复入库)
.bak/
*.bak_*
# 编辑器 / 系统文件
Thumbs.db
Desktop.ini
# 构建产物:由 python -m arm.* 重新生成,体积大(mesh 14MB + 单文件查看器 16MB×3),
# 过去被跟踪导致仓库背着 47MB 生成物;取消跟踪后重建不再脏 git status。
# 旧 web/ 单文件产物目录(已删,源码在 webapp/)
web/
/机器人手臂3D查看器.html
webapp/data/
webapp/generated/
dist/
data/cache/
# 这 6 张在同一份构建下不逐字节复现(抗锯齿/量化噪声),
# 每次跑关卡都会改写它们;参考像素已存进 tests/baselines/flaky/,不再入库。
docs/shots/harness_p04_p05_xray.png
docs/shots/harness_p07_xray.png
docs/shots/harness_xray_internal.png
docs/shots/boss_p07.png
docs/shots/m3_sheet_exploded.png
docs/shots/p03_mount_loose.png
docs/shots/m2_sheet_joint.png
docs/shots/m1_sheet_front.png
docs/shots/m4_sheet_side.png
docs/shots/m5_guide_step1.png
docs/shots/m6_guide_step5.png
docs/shots/m7_sheet_blueprint.png
docs/shots/m8_sheet_dark.png