@euphrasiologist/lwphylo 1.2.21 → 1.2.22
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 +15 -0
- package/dist/drawPhylogeny.cjs.map +1 -1
- package/dist/drawPhylogeny.esm.js +15 -0
- 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 +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -158,6 +158,13 @@ const TAU$1 = Math.PI * 2;
|
|
|
158
158
|
const norm$1 = (t) => ((t % TAU$1) + TAU$1) % TAU$1;
|
|
159
159
|
|
|
160
160
|
function describeArcSweep(cx, cy, r, a0, a1, sweep /*0=CCW,1=CW*/) {
|
|
161
|
+
console.log("describeArcSweep input:", {
|
|
162
|
+
cx, cy, r,
|
|
163
|
+
a0Deg: (a0 * 180 / Math.PI).toFixed(2),
|
|
164
|
+
a1Deg: (a1 * 180 / Math.PI).toFixed(2),
|
|
165
|
+
sweep
|
|
166
|
+
});
|
|
167
|
+
|
|
161
168
|
const delta = sweep === 0 ? norm$1(a1 - a0) : norm$1(a0 - a1);
|
|
162
169
|
if (!(r > 0) || delta < 1e-9) return "";
|
|
163
170
|
const largeArcFlag = delta > Math.PI ? 1 : 0;
|
|
@@ -1641,6 +1648,14 @@ function drawPhylogeny(
|
|
|
1641
1648
|
}
|
|
1642
1649
|
|
|
1643
1650
|
if (a) {
|
|
1651
|
+
console.log("Drawing arc:", {
|
|
1652
|
+
childId: cur.thisId,
|
|
1653
|
+
startDeg: (a.start * 180 / Math.PI).toFixed(2),
|
|
1654
|
+
endDeg: (a.end * 180 / Math.PI).toFixed(2),
|
|
1655
|
+
sweep: a.sweep,
|
|
1656
|
+
radius: a.radius
|
|
1657
|
+
});
|
|
1658
|
+
|
|
1644
1659
|
arcLayer
|
|
1645
1660
|
.append("path")
|
|
1646
1661
|
.attr("d", pathFromArcRecord(a))
|