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
console.log('ax tree, radial x y',radialX,radialY);
337
-
console.log('ax tree node.x, node.y:',node.x,node.y);
338
319
top=radialY;
339
320
left=radialX;
340
321
}elseif(orientation==='vertical'){
@@ -346,14 +327,14 @@ export default function AxTree(props) {
346
327
}
347
328
348
329
//setup a nodeCoords Object that will have keys of unique y coordinates and value arrays of all the left and right x coordinates of the nodes on that level
349
-
count<dataArray.length
330
+
count<nodeAxArr.length
350
331
? !nodeCoords[top]
351
332
? (nodeCoords[top]=[left-width/2,left+width/2])
352
333
: nodeCoords[top].push(left-width/2,left+width/2)
353
334
: null;
354
335
count++;
355
336
356
-
if(count===dataArray.length){
337
+
if(count===nodeAxArr.length){
357
338
//check if there is still a tier of the node tree to collision check
358
339
while(Object.values(nodeCoords)[nodeCoordTier]){
359
340
//check if there are atleast two nodes on the current tier
@@ -415,10 +396,16 @@ export default function AxTree(props) {
0 commit comments