From 824d088bfc3d308c285c4c6bc9678cc0d5e18d0e Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Tue, 27 Feb 2024 23:17:32 -0500 Subject: [PATCH 1/2] Add a circle to a leaf node that is the pinning node. --- src/components/phylogeny/Phylotree.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/phylogeny/Phylotree.vue b/src/components/phylogeny/Phylotree.vue index c5111e37..d4faf73a 100644 --- a/src/components/phylogeny/Phylotree.vue +++ b/src/components/phylogeny/Phylotree.vue @@ -293,8 +293,13 @@ export default { // Mark this node as the pinning node. element.classed("pinning-node", true); - // Make the pinning node circle larger (twice its usual size of 3). - element.select("circle").attr("r", 6); + // If there is no circle, add one. + if (element.select("circle").empty()) { + element.append("circle").attr("cx", -3).attr("r", 6); + } else { + // Make the pinning node circle larger (twice its usual size of 3). + element.select("circle").attr("r", 6); + } // Set its id to 'current_pinning_node_phylogeny{{phylogenyIndex}}' element.attr( From 6c66b034de62b1bf1e05f11c9c12e5f539f26174 Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Tue, 27 Feb 2024 23:27:13 -0500 Subject: [PATCH 2/2] Increased the size of pinning node leaf text. --- src/components/phylogeny/Phylotree.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/phylogeny/Phylotree.vue b/src/components/phylogeny/Phylotree.vue index d4faf73a..86c4f77d 100644 --- a/src/components/phylogeny/Phylotree.vue +++ b/src/components/phylogeny/Phylotree.vue @@ -475,6 +475,7 @@ export default { .pinning-node text { fill: black !important; font-weight: bolder; + font-size: 16pt !important; } /*