@@ -29,12 +29,11 @@ var _draw = require("../common/draw");
2929var _list_ui = require ( "../../constants/list_ui" ) ;
3030var _list_graph = require ( "../../constants/list_graph" ) ;
3131var _peak_group = _interopRequireDefault ( require ( "../cmd_bar/08_peak_group" ) ) ;
32+ var _r03_threshold = _interopRequireDefault ( require ( "../cmd_bar/r03_threshold" ) ) ;
3233/* eslint-disable no-mixed-operators, prefer-object-spread, react/function-component-definition */
3334
34- // import Zoom from '../cmd_bar/02_zoom';
35-
3635const W = Math . round ( window . innerWidth * 0.90 * 9 / 12 ) ; // ROI
37- const H = Math . round ( window . innerHeight * 0.90 * 0.85 / 3 ) ; // ROI
36+ const H = Math . round ( window . innerHeight * 0.90 * 0.8 / 3 ) ; // ROI
3837
3938const styles = ( ) => Object . assign ( { } , _common . commonStyle ) ;
4039const zoomView = ( classes , graphIndex , uiSt , zoomInAct ) => {
@@ -98,7 +97,10 @@ const waveLengthSelect = (classes, hplcMsSt, updateWaveLengthAct) => {
9897 } , d ) ) ) ;
9998 return /*#__PURE__*/ _react . default . createElement ( _material . FormControl , {
10099 className : ( 0 , _classnames . default ) ( classes . fieldDecimal ) ,
101- variant : "outlined"
100+ variant : "outlined" ,
101+ style : {
102+ width : '80px'
103+ }
102104 } , /*#__PURE__*/ _react . default . createElement ( _material . InputLabel , {
103105 id : "select-decimal-label" ,
104106 className : ( 0 , _classnames . default ) ( classes . selectLabel , 'select-sv-bar-label' )
@@ -192,8 +194,6 @@ class ViewerLineRect extends _react.default.Component {
192194 curveSt,
193195 seed,
194196 cLabel,
195- xLabel,
196- yLabel,
197197 feature,
198198 tTrEndPts,
199199 layoutSt,
@@ -237,7 +237,7 @@ class ViewerLineRect extends _react.default.Component {
237237 isUiNoBrushSt : true ,
238238 sweepExtentSt : sweepExtent [ 0 ]
239239 } ) ;
240- ( 0 , _draw . drawLabel ) ( this . rootKlassLine , null , 'M/Z ' , 'Intensity' ) ;
240+ ( 0 , _draw . drawLabel ) ( this . rootKlassLine , null , 'Minutes ' , 'Intensity' ) ;
241241 ( 0 , _draw . drawDisplay ) ( this . rootKlassLine , false ) ;
242242 const filterSeed = seed ;
243243 ( 0 , _draw . drawMain ) ( this . rootKlassMulti , W , H , _list_graph . LIST_BRUSH_SVG_GRAPH . MULTI ) ;
@@ -251,7 +251,7 @@ class ViewerLineRect extends _react.default.Component {
251251 isUiAddIntgSt,
252252 isUiNoBrushSt
253253 } ) ;
254- ( 0 , _draw . drawLabel ) ( this . rootKlassMulti , cLabel , xLabel , yLabel ) ;
254+ ( 0 , _draw . drawLabel ) ( this . rootKlassMulti , cLabel , 'Minutes' , 'Intensity' ) ;
255255 ( 0 , _draw . drawDisplay ) ( this . rootKlassMulti , isHidden ) ;
256256 ( 0 , _draw . drawMain ) ( this . rootKlassRect , W , H , _list_graph . LIST_BRUSH_SVG_GRAPH . RECT ) ;
257257 this . rectFocus . create ( {
@@ -270,14 +270,13 @@ class ViewerLineRect extends _react.default.Component {
270270 curveSt,
271271 seed,
272272 cLabel,
273- xLabel,
274- yLabel,
275273 tTrEndPts,
276274 layoutSt,
277275 isUiAddIntgSt,
278276 isUiNoBrushSt,
279277 isHidden,
280- uiSt
278+ uiSt,
279+ hplcMsSt
281280 } = this . props ;
282281 this . normChange ( prevProps ) ;
283282 const {
@@ -310,7 +309,7 @@ class ViewerLineRect extends _react.default.Component {
310309 isUiNoBrushSt : true ,
311310 sweepExtentSt : sweepExtent [ 0 ]
312311 } ) ;
313- ( 0 , _draw . drawLabel ) ( this . rootKlassLine , null , 'M/Z ' , 'Intensity' ) ;
312+ ( 0 , _draw . drawLabel ) ( this . rootKlassLine , null , 'Minutes ' , 'Intensity' ) ;
314313 ( 0 , _draw . drawDisplay ) ( this . rootKlassLine , false ) ;
315314 }
316315 const filterSeed = seed ;
@@ -324,13 +323,16 @@ class ViewerLineRect extends _react.default.Component {
324323 isUiAddIntgSt,
325324 isUiNoBrushSt
326325 } ) ;
327- ( 0 , _draw . drawLabel ) ( this . rootKlassMulti , cLabel , xLabel , yLabel ) ;
326+ ( 0 , _draw . drawLabel ) ( this . rootKlassMulti , cLabel , 'Minutes' , 'Intensity' ) ;
328327 ( 0 , _draw . drawDisplay ) ( this . rootKlassMulti , isHidden ) ;
329328 const subViewFeature = this . extractSubView ( ) ;
330329 if ( subViewFeature ) {
330+ const {
331+ threshold
332+ } = hplcMsSt ;
333+ const curTrEndPts = ( 0 , _chem . convertThresEndPts ) ( subViewFeature , threshold . value ) ;
331334 const {
332335 data,
333- xUnit,
334336 pageValue
335337 } = subViewFeature ;
336338 const currentData = data [ 0 ] ;
@@ -348,11 +350,11 @@ class ViewerLineRect extends _react.default.Component {
348350 this . rectFocus . update ( {
349351 filterSeed : subSeed ,
350352 filterPeak : [ ] ,
351- tTrEndPts,
353+ tTrEndPts : curTrEndPts ,
352354 isUiNoBrushSt : true ,
353355 sweepExtentSt : sweepExtent [ 2 ]
354356 } ) ;
355- ( 0 , _draw . drawLabel ) ( this . rootKlassRect , `${ pageValue } min` , xUnit , 'Intensity' ) ;
357+ ( 0 , _draw . drawLabel ) ( this . rootKlassRect , `${ pageValue } min` , 'M/Z' , 'Intensity' ) ;
356358 ( 0 , _draw . drawDisplay ) ( this . rootKlassRect , false ) ;
357359 }
358360 }
@@ -432,22 +434,14 @@ class ViewerLineRect extends _react.default.Component {
432434 updateTicAct ( event ) ;
433435 selectCurveAct ( event . target . value ) ;
434436 } ;
435- return /*#__PURE__*/ _react . default . createElement ( "div" , null , zoomView ( _classnames . default , 0 , uiSt , zoomInAct ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
436- style : {
437- textAlign : 'right'
438- }
439- } , waveLengthSelect ( classes , hplcMsSt , selectWavelengthAct ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
437+ return /*#__PURE__*/ _react . default . createElement ( "div" , null , zoomView ( _classnames . default , 0 , uiSt , zoomInAct ) , waveLengthSelect ( classes , hplcMsSt , selectWavelengthAct ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
440438 className : _list_graph . LIST_ROOT_SVG_GRAPH . LINE
441- } ) ) , /*#__PURE__*/ _react . default . createElement ( _peak_group . default , {
439+ } ) , /*#__PURE__*/ _react . default . createElement ( _peak_group . default , {
442440 feature : feature ,
443441 graphIndex : 1
444- } ) , zoomView ( classes , 1 , uiSt , zoomInAct ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
445- style : {
446- textAlign : 'right'
447- }
448- } , ticSelect ( classes , hplcMsSt , handleTicChanged ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
442+ } ) , zoomView ( classes , 1 , uiSt , zoomInAct ) , ticSelect ( classes , hplcMsSt , handleTicChanged ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
449443 className : _list_graph . LIST_ROOT_SVG_GRAPH . MULTI
450- } ) ) , zoomView ( classes , 2 , uiSt , zoomInAct ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
444+ } ) , zoomView ( classes , 2 , uiSt , zoomInAct ) , /*#__PURE__*/ _react . default . createElement ( _r03_threshold . default , null ) , /*#__PURE__*/ _react . default . createElement ( "div" , {
451445 className : _list_graph . LIST_ROOT_SVG_GRAPH . RECT
452446 } ) ) ;
453447 }
@@ -479,8 +473,6 @@ ViewerLineRect.propTypes = {
479473 subEntities : _propTypes . default . array . isRequired ,
480474 seed : _propTypes . default . array . isRequired ,
481475 cLabel : _propTypes . default . string . isRequired ,
482- xLabel : _propTypes . default . string . isRequired ,
483- yLabel : _propTypes . default . string . isRequired ,
484476 layoutSt : _propTypes . default . string . isRequired ,
485477 feature : _propTypes . default . object . isRequired ,
486478 tTrEndPts : _propTypes . default . array . isRequired ,
0 commit comments