@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/drawPhylogeny.cjs +5 -4
- package/dist/drawPhylogeny.cjs.map +1 -1
- package/dist/drawPhylogeny.esm.js +5 -4
- package/dist/drawPhylogeny.esm.js.map +1 -1
- package/dist/drawPhylogeny.umd.js +1 -1
- package/dist/drawPhylogeny.umd.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 (
|
|
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"
|
|
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;
|