@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.cjs
CHANGED
|
@@ -660,8 +660,6 @@ function getChildArcsFan(pd) {
|
|
|
660
660
|
return child_arcs;
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
// src/radial/radialLayout.js
|
|
664
|
-
|
|
665
663
|
/**
|
|
666
664
|
* radialLayout(node, opts?)
|
|
667
665
|
* opts:
|
|
@@ -707,7 +705,7 @@ function radialLayout(node, opts = {}) {
|
|
|
707
705
|
|
|
708
706
|
// per-child arcs for half-arc highlighting if you already use them
|
|
709
707
|
let child_arcs = [];
|
|
710
|
-
if (
|
|
708
|
+
if (arcsStyle === "fan") {
|
|
711
709
|
child_arcs = getChildArcsFan(pd);
|
|
712
710
|
} else {
|
|
713
711
|
child_arcs = getChildArcs(pd);
|
|
@@ -1622,7 +1620,10 @@ function drawPhylogeny(
|
|
|
1622
1620
|
lineLayer.selectAll("*").remove();
|
|
1623
1621
|
arcLayer.selectAll("*").remove();
|
|
1624
1622
|
|
|
1625
|
-
let cur = typeof target === "number"
|
|
1623
|
+
let cur = (typeof target === "number" || typeof target === "string")
|
|
1624
|
+
? byId.get(target)
|
|
1625
|
+
: target;
|
|
1626
|
+
|
|
1626
1627
|
if (!cur) return;
|
|
1627
1628
|
|
|
1628
1629
|
let first = true;
|