From 512b530980b89dcf37749adcedbd1ae2548d789a Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:46:43 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20adjust=20number=20of=20tips=20us?= =?UTF-8?q?ed=20in=20spaceBetweenSubtrees=20based=20on=20focus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tree/phyloTree/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tree/phyloTree/helpers.js b/src/components/tree/phyloTree/helpers.js index 0f1b5fa90..0a038fa19 100644 --- a/src/components/tree/phyloTree/helpers.js +++ b/src/components/tree/phyloTree/helpers.js @@ -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