iter(g255): 减少动效下归零全站悬停位移

This commit is contained in:
HIsheR
2026-10-26 22:17:19 +08:00
parent 6437132ba3
commit 48efb44a26
8 changed files with 50 additions and 18 deletions
+3 -2
View File
@@ -1712,12 +1712,13 @@ function cmdAuditMotion(args) {
console.error(`audit:motion 失败:${err.message}`);
process.exit(1);
}
const failing = result.gaps.length + result.shift.gaps.length; // 两类缺口都算失败:无限动画 + 悬停/按压位移
if (args.includes('--json')) {
console.log(JSON.stringify({ ok: result.gaps.length === 0, total: result.total, failing: result.gaps.length, entries: result.entries }, null, 2));
console.log(JSON.stringify({ ok: failing === 0, total: result.total, failing, entries: result.entries, shift: result.shift }, null, 2));
} else {
console.log(formatMotionReport(result));
}
process.exit(result.gaps.length === 0 ? 0 : 1);
process.exit(failing === 0 ? 0 : 1);
}
/*** 迭代留痕校验:.ua/iterations.log 每行 JSON 字段与格式必须符合 ITERATION.md 规范 ***/