@@ -683,7 +683,7 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
683683 type : d3 . select ( "#type" ) . node ( ) . value ,
684684 colorOptions :
685685 {
686- colorMode : "none " ,
686+ colorMode : "list " ,
687687 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
688688 highlightColor : d3 . select ( "#highlightColor" ) . node ( ) . value ,
689689 } ,
@@ -759,6 +759,9 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
759759 } ) ;
760760
761761 d3 . select ( "#highlightColor" ) . on ( "input" , function ( ) {
762+ if ( ! d3 . select ( "#highlightLeaves" ) . property ( "checked" ) ) {
763+ d3 . select ( "#highlightLeaves" ) . property ( "checked" , true ) ;
764+ }
762765 tree . setColorOptions ( {
763766 colorMode : d3 . select ( "#highlightLeaves" ) . node ( ) . value ? "list" : "none" ,
764767 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
@@ -768,8 +771,8 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
768771 } ) ;
769772
770773 d3 . select ( "#highlightLeaves" ) . on ( "input" , function ( ) {
771- console . log ( "tree" , tree . getNodeGUIDs ( true ) ) ;
772- if ( this . value ) {
774+ // console.log("tree", tree.getNodeGUIDs(this.value ));
775+ if ( d3 . select ( "#highlightLeaves" ) . property ( "checked" ) ) {
773776 tree . setColorOptions ( {
774777 colorMode : "list" ,
775778 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
@@ -780,7 +783,8 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
780783 tree . setColorOptions ( {
781784 colorMode : "none" ,
782785 defaultColor : d3 . select ( "#defaultColor" ) . node ( ) . value ,
783- highlightColor : d3 . select ( "#highlightColor" ) . node ( ) . value
786+ highlightColor : d3 . select ( "#highlightColor" ) . node ( ) . value ,
787+ nodeList : tree . getNodeGUIDs ( false )
784788 } )
785789 }
786790 } ) ;
0 commit comments