You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -206,9 +206,8 @@ export default function AxTree(props) {
206
206
// code relating to each node in tree
207
207
{tree.descendants().map((node,key)=>{
208
208
constwidthFunc=(name): number=>{
209
-
//returns a number that is related to the length of the name. Used for determining the node width.
209
+
//returns a number that is related to the length of the name. Used for determining the node width.
210
210
constnodeLength=name.length;
211
-
//return nodeLength * 7 + 20; //uncomment this line if we want each node to be directly proportional to the name.length (instead of nodes of similar sizes to snap to the same width)
212
211
if(nodeLength<=5)returnnodeLength+60;
213
212
if(nodeLength<=10)returnnodeLength+130;
214
213
returnnodeLength+160;
@@ -337,13 +336,6 @@ export default function AxTree(props) {
0 commit comments