@n-uf/placement 26.12.3 → 26.12.5

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/tiling.js CHANGED
@@ -1638,7 +1638,7 @@ function tilingHitConformance(trees, options, hitOptions = {}, limit = 20) {
1638
1638
  const path = [];
1639
1639
  for (let i = 0; i < 20 && path.length < 10; i++) {
1640
1640
  const z = { x: a.x + (rnd() - 0.5) * box.width * 0.5, y: a.y + (rnd() - 0.5) * box.height * 0.5 };
1641
- if (zoneOf(z) !== want || e.box && !inside2(e.box, z)) continue;
1641
+ if (zoneOf(z) !== want || !inside2(e.box, z)) continue;
1642
1642
  const ang = rnd() * Math.PI * 2;
1643
1643
  const len = Math.sqrt(rnd()) * 0.9;
1644
1644
  path.push({ x: z.x + Math.cos(ang) * ex * len, y: z.y + Math.sin(ang) * ey * len });