@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.
@@ -66,6 +66,13 @@ const TAU$1 = Math.PI * 2;
66
66
  const norm$1 = (t) => ((t % TAU$1) + TAU$1) % TAU$1;
67
67
 
68
68
  function describeArcSweep(cx, cy, r, a0, a1, sweep /*0=CCW,1=CW*/) {
69
+ console.log("describeArcSweep input:", {
70
+ cx, cy, r,
71
+ a0Deg: (a0 * 180 / Math.PI).toFixed(2),
72
+ a1Deg: (a1 * 180 / Math.PI).toFixed(2),
73
+ sweep
74
+ });
75
+
69
76
  const delta = sweep === 0 ? norm$1(a1 - a0) : norm$1(a0 - a1);
70
77
  if (!(r > 0) || delta < 1e-9) return "";
71
78
  const largeArcFlag = delta > Math.PI ? 1 : 0;
@@ -1495,6 +1502,14 @@ function drawPhylogeny(
1495
1502
  }
1496
1503
 
1497
1504
  if (a) {
1505
+ console.log("Drawing arc:", {
1506
+ childId: cur.thisId,
1507
+ startDeg: (a.start * 180 / Math.PI).toFixed(2),
1508
+ endDeg: (a.end * 180 / Math.PI).toFixed(2),
1509
+ sweep: a.sweep,
1510
+ radius: a.radius
1511
+ });
1512
+
1498
1513
  arcLayer
1499
1514
  .append("path")
1500
1515
  .attr("d", pathFromArcRecord(a))