@@ -580,13 +580,23 @@ function joinHeapMap(data) {
580
580
;
581
581
582
582
583
- var heatMap = svg . selectAll ( ".heatmap" )
583
+ function stopEvent ( ) {
584
+ d3 . event . preventDefault ( ) ;
585
+ d3 . event . sourceEvent . stopPropagation ( ) ;
586
+ d3 . event . preventDefault ( ) ;
587
+ d3 . event . stopPropagation ( ) ;
588
+ d3 . event . stopImmediatePropagation ( ) ;
589
+ }
590
+
591
+ var heatMap = svg
592
+ . append ( "g" )
593
+ . attr ( "class" , "cell_heat_map g3" )
594
+ . selectAll ( ".heatmap" )
584
595
. data ( data . values , function ( d ) {
585
596
var row = d . row ;
586
597
if ( d . value != - 10 ) {
587
598
numLabel [ row - 1 ] += 1 ;
588
599
}
589
- if ( d . value == - 10 ) return null ;
590
600
return d . row + ':' + d . col ;
591
601
} )
592
602
. enter ( )
@@ -597,6 +607,8 @@ function joinHeapMap(data) {
597
607
. attr ( "width" , function ( d ) { return cellSize ; } )
598
608
. attr ( "height" , function ( d ) { return cellSize ; } )
599
609
. style ( "fill" , function ( d ) { return colorScale ( d . value ) ; } )
610
+ . on ( "mousedown" , stopEvent )
611
+ . on ( "click" , stopEvent )
600
612
. on ( "mouseover" , function ( d ) {
601
613
//highlight text
602
614
d3 . select ( this ) . classed ( "cell-hover" , true ) ;
@@ -656,6 +668,21 @@ function joinHeapMap(data) {
656
668
. attr ( "class" , function ( d , i ) { return "numLabel mono r" + i ; } )
657
669
;
658
670
671
+ var sa = d3 . select ( ".g3" )
672
+ . on ( "mousedown" , function ( ) {
673
+ return null ;
674
+ } )
675
+ . on ( "mousemove" , function ( ) {
676
+ return null ;
677
+ } )
678
+ . on ( "mouseup" , function ( ) {
679
+ return null ;
680
+ } )
681
+ . on ( "mouseout" , function ( ) {
682
+ return null ;
683
+ } )
684
+ ;
685
+
659
686
function cdrTransform ( cdr ) {
660
687
var cdr3aa = cdr . cdr3aa ,
661
688
//cdr3nt = cdr.cdr3nt,
0 commit comments