@@ -706,7 +706,6 @@ function initFunc() {
706706 data = object2DataPrallel ( sampleS ) ;
707707
708708 // network
709- debugger
710709 graphicopt = { margin : { top : 20 , right : 100 , bottom : 20 , left : 20 } } ;
711710 graphicopt . width = Math . round ( $ ( "#network" ) . width ( ) ) ;
712711 graphicopt . height = d3 . max ( [ document . body . clientHeight - 150 , 300 ] ) ;
@@ -716,6 +715,7 @@ function initFunc() {
716715 . attr ( 'width' , graphicopt . width )
717716 . style ( 'height' , graphicopt . height + 'px' ) . node ( ) . getContext ( '2d' ) ;
718717 linkcanvas . strokeStyle = "rgba(0,100,160,0.1)" ;
718+ linkcanvas . globalCompositeOperation = "destination-over" ;
719719 linkcanvas . lineWidth = 1.7 ;
720720
721721 linkcanvas_highlight = d3 . select ( '#networkconnect_highlight' )
@@ -725,8 +725,6 @@ function initFunc() {
725725 linkcanvas_highlight . strokeStyle = "rgba(0,100,160,0.1)" ;
726726 linkcanvas_highlight . lineWidth = 4 ;
727727
728-
729-
730728 netControl . graphicopt ( graphicopt ) ;
731729 const force = d3 . forceSimulation ( )
732730 . force ( "charge" , d3 . forceManyBody ( ) . strength ( - 20 ) )
@@ -747,12 +745,13 @@ function initFunc() {
747745 d . data . root . forEach ( e =>
748746 unhighlight ( e ) )
749747 net_unhighlight ( )
750- } ) . clickAdd ( 'pp' , function ( d , isFreeze ) {
748+ } ) . clickAdd ( 'pp' , function ( d ) {
751749 debugger
752- if ( userfilter )
750+ if ( userfilter ) {
753751 userfilter = undefined ;
754- else
752+ } else {
755753 userfilter = d . data . root [ 0 ] . USER ;
754+ }
756755 brush ( )
757756 } ) ;
758757 netControl
@@ -934,6 +933,9 @@ function resetRequest() {
934933 . selectAll ( 'tr' )
935934 . filter ( d => d . arr == selectedService ) . select ( 'input[type="radio"]' ) . property ( "checked" , true ) ;
936935 _ . bind ( selecteds . on ( "change" ) , selecteds . node ( ) ) ( ) ;
936+
937+ netControl . data ( data2net ( data ) )
938+ netControl . draw ( ) ;
937939}
938940let coloraxis = { } ;
939941let opaaxis = { } ;
@@ -1751,7 +1753,7 @@ function resetSize() {
17511753// Background canvas
17521754 background . lineWidth = 1.7 ;
17531755
1754- xscale = d3 . scalePoint ( ) . range ( [ 0 , w ] ) . padding ( 0.5 ) . domain ( dimensions ) ;
1756+ xscale = d3 . scalePoint ( ) . range ( [ 0 , w ] ) . padding ( 0 ) . domain ( dimensions ) ;
17551757 dimensions . forEach ( function ( d ) {
17561758 yscale [ d ] . range ( [ h , 0 ] ) ;
17571759 } ) ;
0 commit comments