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
@@ -346,6 +310,7 @@ export default function AxTree(props) {
346
310
key={i}
347
311
data={link}
348
312
percent={stepPercent}
313
+
stroke="rgb(254,110,158,0.6)"
349
314
strokeWidth="1"
350
315
fill="none"
351
316
/>
@@ -357,9 +322,9 @@ export default function AxTree(props) {
357
322
//returns a number that is related to the length of the name. Used for determining the node width.
358
323
constnodeLength=name.length;
359
324
//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)
360
-
if(nodeLength<=5)returnnodeLength+50;
361
-
if(nodeLength<=10)returnnodeLength+120;
362
-
returnnodeLength+180;
325
+
if(nodeLength<=5)returnnodeLength+60;
326
+
if(nodeLength<=10)returnnodeLength+130;
327
+
returnnodeLength+160;
363
328
};
364
329
365
330
constwidth: number=widthFunc(node.data.name.value);// the width is determined by the length of the node.name
0 commit comments