bt-core-app 1.4.787 → 1.4.789

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.
@@ -11140,12 +11140,12 @@ function pie() {
11140
11140
  return i[0];
11141
11141
  }
11142
11142
  function l(r, i) {
11143
- if (r == null || (i == null ? void 0 : i.x) == null || (i == null ? void 0 : i.y) == null)
11143
+ if (r == null || (i == null ? void 0 : i.lat) == null || (i == null ? void 0 : i.lng) == null)
11144
11144
  return !1;
11145
11145
  var o = r.map((c) => ({ x: c.lat, y: c.lng }));
11146
11146
  let s = !1;
11147
11147
  for (let c = 0, u = o.length - 1; c < o.length; c++)
11148
- o[c].y > i.y != o[u].y > i.y && i.x < (o[u].x - o[c].x) * (i.y - o[c].y) / (o[u].y - o[c].y) + o[c].x && (s = !s), u = c;
11148
+ o[c].y > i.lng != o[u].y > i.lng && i.lat < (o[u].x - o[c].x) * (i.lng - o[c].y) / (o[u].y - o[c].y) + o[c].x && (s = !s), u = c;
11149
11149
  return s;
11150
11150
  }
11151
11151
  return {
@@ -13087,7 +13087,7 @@ function uc(e, t, a) {
13087
13087
  ve.value = !ve.value, N.value = void 0, ue();
13088
13088
  }
13089
13089
  return Ul(), EC([N], () => {
13090
- sn();
13090
+ _.value != 0 ? _.value = 0 : sn();
13091
13091
  }, { debounce: 500, maxWait: 500 }), Se($, async () => {
13092
13092
  v == "whole-last-updated" ? sn() : await ue();
13093
13093
  }), Se(_, async () => {
package/dist/index.d.ts CHANGED
@@ -2046,10 +2046,7 @@ export declare interface UseFormsOptions {
2046
2046
  }
2047
2047
 
2048
2048
  export declare function useGeo(): {
2049
- areaContains: (polygon: GeoCoordinate[], point?: {
2050
- x?: number;
2051
- y?: number;
2052
- }) => boolean;
2049
+ areaContains: (polygon: GeoCoordinate[], point?: GeoCoordinate) => boolean;
2053
2050
  getAreaAround: (location: GeoCoordinate, radius: number) => {
2054
2051
  lat: number;
2055
2052
  lng: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.787",
3
+ "version": "1.4.789",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {