Skip to content

Commit

Permalink
🚧 adjust number of tips used in spaceBetweenSubtrees based on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 17, 2024
1 parent 39d8716 commit 512b530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tree/phyloTree/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const setDisplayOrder = ({nodes, focus}) => {
timerStart("setDisplayOrder");

const numSubtrees = nodes[0].n.children.filter((n) => n.fullTipCount!==0).length;
const numTips = nodes[0].n.fullTipCount;
const numTips = focus ? nodes[0].n.tipCount : nodes[0].n.fullTipCount;
const spaceBetweenSubtrees = _getSpaceBetweenSubtrees(numSubtrees, numTips);

// No focus: 1 unit per node
Expand Down

0 comments on commit 512b530

Please sign in to comment.