@garagem-ai/site-sdk 0.9.0 → 0.9.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/react.mjs CHANGED
@@ -1512,15 +1512,15 @@ function usablePin(pin) {
1512
1512
  return finitePair(pin.lat, pin.lng) !== null && !(pin.lat === 0 && pin.lng === 0);
1513
1513
  }
1514
1514
  function groupPrecision(group) {
1515
- let min = 12;
1515
+ let max = 0;
1516
1516
  for (const pin of group) {
1517
- min = Math.min(
1518
- min,
1517
+ max = Math.max(
1518
+ max,
1519
1519
  coordinateDecimals(pin.lat),
1520
1520
  coordinateDecimals(pin.lng)
1521
1521
  );
1522
1522
  }
1523
- return min;
1523
+ return max;
1524
1524
  }
1525
1525
  function multiCluster(key, group) {
1526
1526
  const lat = group.reduce((sum, pin) => sum + pin.lat, 0) / group.length;