@@ -2605,7 +2605,13 @@ SpectrumChartD3.prototype.handleVisMouseUp = function () {
2605
2605
self . mouseDownRoi = null ;
2606
2606
}
2607
2607
2608
- self . WtEmit ( self . chart . id , { name : 'doubleclicked' } , energy , count ) ;
2608
+ let ref_line = "" ;
2609
+ if ( self . mousedOverRefLine && self . mousedOverRefLine . __data__ && self . mousedOverRefLine . __data__ . parent )
2610
+ {
2611
+ ref_line = self . mousedOverRefLine . __data__ . parent . parent ;
2612
+ console . log ( "self.mousedOverRefLine:" , self . mousedOverRefLine , ", data:" , self . mousedOverRefLine . __data__ , ", parent:" , self . mousedOverRefLine . __data__ . parent ) ;
2613
+ }
2614
+ self . WtEmit ( self . chart . id , { name : 'doubleclicked' } , energy , count , ref_line ) ;
2609
2615
} else {
2610
2616
// This is the first click - maybe there will be another click, maybe not
2611
2617
if ( ! modKeyPressed )
@@ -3449,10 +3455,6 @@ SpectrumChartD3.prototype.mousemove = function () {
3449
3455
return function ( ) {
3450
3456
/*This function is called whenever a mouse movement occurs */
3451
3457
var p = d3 . mouse ( self . vis [ 0 ] [ 0 ] ) ;
3452
- //var t = d3.event.changedTouches;
3453
-
3454
- var energy = self . xScale . invert ( p [ 0 ] ) ,
3455
- mousey = self . yScale . invert ( p [ 1 ] ) ;
3456
3458
3457
3459
self . updateFeatureMarkers ( - 1 ) ;
3458
3460
self . updateMouseCoordText ( ) ;
@@ -3482,8 +3484,6 @@ SpectrumChartD3.prototype.mousemove = function () {
3482
3484
3483
3485
if ( self . dragged ) {
3484
3486
/*We make it here if a data point is dragged (which is not allowed) */
3485
-
3486
- /*self.dragged.y = self.yScale.invert(Math.max(0, Math.min(self.size.height, p[1]))); */
3487
3487
self . update ( false ) ; /* boolean set to false to indicate no animation needed */
3488
3488
} ;
3489
3489
@@ -4016,7 +4016,7 @@ SpectrumChartD3.prototype.drawRefGammaLines = function() {
4016
4016
var bisector = d3 . bisector ( function ( d ) { return d . e ; } ) ;
4017
4017
var lindex = bisector . left ( lines , xrange [ 0 ] ) ;
4018
4018
var rindex = bisector . right ( lines , xrange [ 1 ] ) ;
4019
- return lines . slice ( lindex , rindex ) . filter ( function ( d ) { return d . h > 1E-16 ; } ) ;
4019
+ return lines . slice ( lindex , rindex ) . filter ( function ( d ) { return d . h > 1E-32 ; } ) ;
4020
4020
}
4021
4021
4022
4022
let reflines = [ ] ;
@@ -4211,8 +4211,8 @@ SpectrumChartD3.prototype.handleUpdateKineticRefLineUpdate = function(){
4211
4211
if ( bestRefLine !== this . currentKineticRefLine ) {
4212
4212
this . currentKineticRefLine = bestRefLine ;
4213
4213
this . drawRefGammaLines ( ) ;
4214
+ this . updateMouseCoordText ( ) ;
4214
4215
}
4215
-
4216
4216
} //SpectrumChartD3.prototype.handleUpdateKineticRefLineUpdate
4217
4217
4218
4218
/**
0 commit comments