@@ -74,7 +74,7 @@ const column3 = {
74
74
} ;
75
75
const column3_r2 = { width : 80 , paddingRight : 1 , textAlign : 'right' , color : 'DarkGray' , display : 'inline-block' } ;
76
76
77
- const column4 = { width : 88 , paddingLeft :4 , display : 'inline-block' , textOverflow : 'ellipsis' , overflow :'hidden' } ;
77
+ const column4 = { width : 105 , paddingLeft :4 , display : 'inline-block' , textOverflow : 'ellipsis' , overflow :'hidden' } ;
78
78
const column5 = {
79
79
width : 74 ,
80
80
paddingRight : 1 ,
@@ -199,7 +199,10 @@ export function getFluxInfo(sndReadout){
199
199
200
200
for ( let i = 0 ; i < fluxObj . length ; i ++ ) {
201
201
if ( ! isNaN ( fluxObj [ i ] . value ) ) {
202
- fluxValue = ( fluxObj [ i ] . value < 1000 ) ? `${ myFormat ( fluxObj [ i ] . value , fluxObj [ i ] . precision ) } ` : fluxObj [ i ] . value . toExponential ( 6 ) . replace ( 'e+' , 'E' ) ;
202
+ //IRSA-737
203
+ const min = Number ( '0.' + '0' . repeat ( fluxObj [ i ] . precision - 1 ) + '1' ) ;
204
+ fluxValue = ( Math . abs ( fluxObj [ i ] . value ) < 1000 && Math . abs ( fluxObj [ i ] . value ) > min ) ? `${ myFormat ( fluxObj [ i ] . value , fluxObj [ i ] . precision ) } ` : fluxObj [ i ] . value . toExponential ( 6 ) . replace ( 'e+' , 'E' ) ;
205
+
203
206
if ( fluxObj [ i ] . unit && ! isNaN ( fluxObj [ i ] . value ) ) fluxValue += ` ${ fluxObj [ i ] . unit } ` ;
204
207
fluxValueArrays . push ( fluxValue ) ;
205
208
}
@@ -215,6 +218,7 @@ export function getFluxInfo(sndReadout){
215
218
return { fluxLabels :fluxLabelArrays , 'fluxValues' :fluxValueArrays } ;
216
219
217
220
}
221
+
218
222
/**
219
223
* Get the mouse readouts from the standard readout and convert to the values based on the toCoordinaeName
220
224
* @param readoutItems
0 commit comments