[auto] move score to corner, change 'out of bounds' to 'outside the camera view'

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
main
name 2026-04-11 17:43:29 -07:00
parent b18cf3ce16
commit 6e9aae6335
2 changed files with 10 additions and 12 deletions

View File

@ -9,18 +9,16 @@
/* Score */ /* Score */
.ag-score { .ag-score {
position: absolute; position: absolute;
top: 50%; top: 16px;
left: 50%; left: 16px;
transform: translate(-50%, -50%);
z-index: 2; z-index: 2;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; gap: 4px;
gap: 8px;
font-family: system-ui, sans-serif; font-family: system-ui, sans-serif;
font-size: 48px; font-size: 18px;
font-weight: 900; font-weight: 700;
text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6); text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
} }
.ag-score-perfect { color: #ffdd44; } .ag-score-perfect { color: #ffdd44; }
@ -28,8 +26,8 @@
.ag-score-miss { color: #ff4466; } .ag-score-miss { color: #ff4466; }
.ag-combo { .ag-combo {
color: #ff44aa; color: #ff44aa;
font-size: 56px; font-size: 22px;
margin-top: 8px; margin-top: 4px;
} }
/* Judgment flash */ /* Judgment flash */

View File

@ -128,7 +128,7 @@ export class CalibrationMachine {
log(`[calibration] in frame — noseY=${noseY.toFixed(3)} toeY=${toeMaxY.toFixed(3)}`) log(`[calibration] in frame — noseY=${noseY.toFixed(3)} toeY=${toeMaxY.toFixed(3)}`)
} else { } else {
if (!topOk) this._framingHint = 'head not visible' if (!topOk) this._framingHint = 'head not visible'
else if (!bottomOk || !anklesVis) this._framingHint = 'feet are out of bounds' else if (!bottomOk || !anklesVis) this._framingHint = 'feet are outside the camera view'
else this._framingHint = null else this._framingHint = null
} }
} }
@ -151,7 +151,7 @@ export class CalibrationMachine {
// Engine will detect this transition and fire arms-out callback // Engine will detect this transition and fire arms-out callback
} else if (!inBounds) { } else if (!inBounds) {
if (!noseVis || noseY <= 0) this._framingHint = 'head not visible' if (!noseVis || noseY <= 0) this._framingHint = 'head not visible'
else this._framingHint = 'feet are out of bounds' else this._framingHint = 'feet are outside the camera view'
} else { } else {
this._framingHint = null this._framingHint = null
} }