@euphrasiologist/lwphylo 1.2.20 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -639,8 +639,6 @@ function getChildArcsFan(pd) {
639
639
  return child_arcs;
640
640
  }
641
641
 
642
- // src/radial/radialLayout.js
643
-
644
642
  /**
645
643
  * radialLayout(node, opts?)
646
644
  * opts:
@@ -686,7 +684,7 @@ function radialLayout(node, opts = {}) {
686
684
 
687
685
  // per-child arcs for half-arc highlighting if you already use them
688
686
  let child_arcs = [];
689
- if (opts.arcsStyle === "fan") {
687
+ if (arcsStyle === "fan") {
690
688
  child_arcs = getChildArcsFan(pd);
691
689
  } else {
692
690
  child_arcs = getChildArcs(pd);
@@ -1601,7 +1599,10 @@ function drawPhylogeny(
1601
1599
  lineLayer.selectAll("*").remove();
1602
1600
  arcLayer.selectAll("*").remove();
1603
1601
 
1604
- let cur = typeof target === "number" ? byId.get(target) : target;
1602
+ let cur = (typeof target === "number" || typeof target === "string")
1603
+ ? byId.get(target)
1604
+ : target;
1605
+
1605
1606
  if (!cur) return;
1606
1607
 
1607
1608
  let first = true;