Pannello visione: nominale e tolleranze nella tabella quote

Refs #117

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 16:57:27 +01:00
parent 4a11d2595f
commit 88b3f202b1
4 changed files with 59 additions and 5 deletions
@@ -266,6 +266,8 @@ function visionExecute() {
value: m.value,
unit: st.unit || 'mm',
status: m.pass_fail,
// #117: nominale e tolleranze della quota (come la schermata dei calibri); null se mancano
nominal: st.nominal, ltl: st.ltl, lwl: st.lwl, uwl: st.uwl, utl: st.utl,
};
});
},
@@ -379,6 +381,9 @@ function visionExecute() {
},
zPanEnd() { this._zPan = null; this.zPanning = false; },
// #117: tolleranza a 3 decimali, trattino se manca (come x-text="...?.toFixed(3) || '—'" dei calibri, ma 0 resta 0.000)
fmtTol(v) { return v == null ? '\u2014' : Number(v).toFixed(3); },
statusClass(s) {
// Same palette as the measurement markers of the manual flow.
if (s === 'pass') return 'bg-measure-pass/20 text-measure-pass border border-measure-pass/40';