@euphrasiologist/lwphylo 1.2.9 → 1.2.10
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 -2
- package/dist/drawPhylogeny.cjs.map +1 -1
- package/dist/drawPhylogeny.esm.js +5 -2
- 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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1100,7 +1100,7 @@ function drawPhylogeny(
|
|
|
1100
1100
|
const byId = new Map(horizontal.map((d) => [d.thisId, d]));
|
|
1101
1101
|
const tipById = new Map(tips.map((d) => [d.thisId, d]));
|
|
1102
1102
|
const tipByLabel = new Map(tips.map((d) => [d.thisLabel, d]));
|
|
1103
|
-
const rootToTip = makeRootToTipGetter(byId, { prefer: "x1" });
|
|
1103
|
+
const rootToTip = makeRootToTipGetter(byId, { prefer: "x1" });
|
|
1104
1104
|
|
|
1105
1105
|
const maxY = d3.max(horizontal, (d) => d.y1);
|
|
1106
1106
|
const minY = d3.min(horizontal, (d) => d.y1);
|
|
@@ -1262,7 +1262,10 @@ function drawPhylogeny(
|
|
|
1262
1262
|
return svg.node();
|
|
1263
1263
|
} else if (layout === "radial") {
|
|
1264
1264
|
const parsedTree = readTree(treeText);
|
|
1265
|
-
const rad = radialLayout(parsedTree
|
|
1265
|
+
const rad = radialLayout(parsedTree, {
|
|
1266
|
+
angleStrategy: "fan",
|
|
1267
|
+
arcsStyle: "fan"
|
|
1268
|
+
});
|
|
1266
1269
|
|
|
1267
1270
|
// ===== MODE =====
|
|
1268
1271
|
const TIP_MODE = radialMode; // "phylo" (shorten to original tips) or "outer" (project to one circle)
|