@willcgage/module-schematic 0.49.0 → 0.49.1

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/index.cjs CHANGED
@@ -1364,10 +1364,12 @@ function returnLoop(shape, opts) {
1364
1364
  const xBot = C.x - Math.sqrt(Math.max(0, rr * rr - (-hw - C.y) ** 2));
1365
1365
  const tTop = Math.atan2(hw - C.y, xTop - C.x);
1366
1366
  const tBot = Math.atan2(-hw - C.y, xBot - C.x);
1367
+ let end = tBot;
1368
+ while (end >= tTop) end -= 2 * Math.PI;
1367
1369
  return [
1368
1370
  { x: 0, y: hw },
1369
1371
  { x: xTop, y: hw },
1370
- ...arc(C.x, C.y, rr, tTop, tBot - 2 * Math.PI, 48).slice(1, -1),
1372
+ ...arc(C.x, C.y, rr, tTop, end, 48).slice(1, -1),
1371
1373
  { x: xBot, y: -hw },
1372
1374
  { x: 0, y: -hw }
1373
1375
  ];