Claude: Aufräumen
This commit is contained in:
@@ -805,8 +805,8 @@ function rebuild() {
|
||||
? Math.sqrt(opos.reduce((s,v,i) => s+(v-mpos[i])**2, 0))
|
||||
: null;
|
||||
const col = errMm == null ? 0x888888
|
||||
: errMm < 5 ? 0x3ecf6b
|
||||
: errMm < 15 ? 0xf59e0b
|
||||
: errMm < 2 ? 0x3ecf6b
|
||||
: errMm < 5 ? 0xf59e0b
|
||||
: 0xff4f4f;
|
||||
|
||||
gObserved.add(makeSphere(op, 0.006, col));
|
||||
@@ -852,7 +852,7 @@ function updateStats(errArr, nObs, nModel) {
|
||||
const p90 = sorted[Math.floor(sorted.length*0.9)];
|
||||
const max = sorted[sorted.length-1];
|
||||
|
||||
const cls = v => v < 5 ? 'stat-ok' : v < 15 ? 'stat-warn' : 'stat-err';
|
||||
const cls = v => v < 2 ? 'stat-ok' : v < 5 ? 'stat-warn' : 'stat-err';
|
||||
|
||||
el.innerHTML = `
|
||||
<div class="stat-line"><span>Observed:</span><span class="stat-val">${nObs}</span></div>
|
||||
@@ -863,7 +863,7 @@ function updateStats(errArr, nObs, nModel) {
|
||||
<div class="stat-line"><span>p90:</span><span class="${cls(p90)}">${p90.toFixed(1)} mm</span></div>
|
||||
<div class="stat-line"><span>Max:</span><span class="${cls(max)}">${max.toFixed(1)} mm</span></div>
|
||||
<div style="margin-top:6px;font-size:10px;color:var(--muted)">
|
||||
🟢 <5mm 🟡 5–15mm 🔴 >15mm</div>`;
|
||||
🟢 <2mm 🟡 2–5mm 🔴 >5mm</div>`;
|
||||
}
|
||||
|
||||
function setStatus(msg) {
|
||||
|
||||
Reference in New Issue
Block a user