@@ -690,7 +690,7 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
690690 type : d3 . select ( "#type" ) . node ( ) . value ,
691691 colorOptions :
692692 {
693- colorMode : "none " ,
693+ colorMode : "list " ,
694694 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
695695 highlightColor : d3 . select ( "#highlightColor" ) . node ( ) . value ,
696696 } ,
@@ -766,6 +766,9 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
766766 } ) ;
767767
768768 d3 . select ( "#highlightColor" ) . on ( "input" , function ( ) {
769+ if ( ! d3 . select ( "#highlightLeaves" ) . property ( "checked" ) ) {
770+ d3 . select ( "#highlightLeaves" ) . property ( "checked" , true ) ;
771+ }
769772 tree . setColorOptions ( {
770773 colorMode : d3 . select ( "#highlightLeaves" ) . node ( ) . value ? "list" : "none" ,
771774 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
@@ -775,8 +778,8 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
775778 } ) ;
776779
777780 d3 . select ( "#highlightLeaves" ) . on ( "input" , function ( ) {
778- console . log ( "tree" , tree . getNodeGUIDs ( true ) ) ;
779- if ( this . value ) {
781+ // console.log("tree", tree.getNodeGUIDs(this.value ));
782+ if ( d3 . select ( "#highlightLeaves" ) . property ( "checked" ) ) {
780783 tree . setColorOptions ( {
781784 colorMode : "list" ,
782785 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
@@ -787,7 +790,8 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
787790 tree . setColorOptions ( {
788791 colorMode : "none" ,
789792 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
790- highlightColor : d3 . select ( "#highlightColor" ) . node ( ) . value
793+ highlightColor : d3 . select ( "#highlightColor" ) . node ( ) . value ,
794+ nodeList : tree . getNodeGUIDs ( false )
791795 } )
792796 }
793797 } ) ;
0 commit comments