diff --git a/inst/htmlwidgets/lib/.DS_Store b/inst/htmlwidgets/lib/.DS_Store index 70221a5a51b6c73ca90688054bbb5f939a4fc80d..cc5ee5fae8b2cc4a0313a737442233777c3e2b59 100644 Binary files a/inst/htmlwidgets/lib/.DS_Store and b/inst/htmlwidgets/lib/.DS_Store differ diff --git a/inst/htmlwidgets/lib/treeWeightD3-0.9/treeWeight.js b/inst/htmlwidgets/lib/treeWeightD3-0.9/treeWeight.js index d447048bb4e758e18a8c76489c2b998849382d64..d68621f3bf37d22986bc3b12ae56616d54258f2f 100644 --- a/inst/htmlwidgets/lib/treeWeightD3-0.9/treeWeight.js +++ b/inst/htmlwidgets/lib/treeWeightD3-0.9/treeWeight.js @@ -169,9 +169,18 @@ function main(datas,conditions,levels,nodeFind,width,height) { // Initialize the display to show a node if (nodeFind !=null){ - console.log("nodeFind "+nodeFind); - //[root].forEach(collapse); - find (root, nodeFind); + + + console.log(typeof (nodeFind)); + if (typeof(nodeFind) != "object" ){ + find (root, nodeFind); + } + else{ + for (var i = 0; i < nodeFind.length; i++) { + console.log("nodeFind !!!"+nodeFind[i]); + find (root, nodeFind[i]); + } + } } // Initialize the display to show a few nodes. else{ @@ -619,7 +628,9 @@ function main(datas,conditions,levels,nodeFind,width,height) { //if(d.parent != root){ d = d.parent; if (d!= root){ - click(d);//if found open its parent + //click(d);//if found open its parent + toggleNodes(d); + } //} }