Package 

Class MeasurementSnapshot


  • 
    public final class MeasurementSnapshot
    
                        

    The canonical persist + delegate-payload derivation. Given an (unrounded) base and the current display unit, produces:

    • the inputValues patch: { fieldId: snapped+clamped BASE, _unit: base id, _display_unit: display id, _display_value: snapped display }

    • the onElementInteraction payload: { value: base, display_value, unit: display id } The persisted scalar is UNIT-STABLE — flipping the toggle holds the base constant so the scalar does not change; only the display keys / payload change.