Skip to content

Commit d057bbb

Browse files
committed
pass actual nodeList in playground when color options change
1 parent 0f4091d commit d057bbb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
752752
colorMode: d3.select("#highlightLeaves").node().value ? "list" : "none",
753753
defaultColor: this.value,
754754
highlightColor: d3.select("#highlightColor").node().value,
755-
nodeList: []
755+
nodeList: tree.getNodeGUIDs(true)
756756
});
757757
});
758758

@@ -761,17 +761,18 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
761761
colorMode: d3.select("#highlightLeaves").node().value ? "list" : "none",
762762
defaultColor: d3.select("#defaultColor").node().value,
763763
highlightColor: this.value,
764-
nodeList: []
764+
nodeList: tree.getNodeGUIDs(true)
765765
});
766766
});
767767

768768
d3.select("#highlightLeaves").on("input", function() {
769+
console.log("tree", tree.getNodeGUIDs(true));
769770
if (this.value) {
770771
tree.setColorOptions({
771772
colorMode: "list",
772773
defaultColor: d3.select("#defaultColor").node().value,
773774
highlightColor: d3.select("#highlightColor").node().value,
774-
nodeList: []
775+
nodeList: tree.getNodeGUIDs(true)
775776
})
776777
} else {
777778
tree.setColorOptions({

0 commit comments

Comments
 (0)