bt-core-app 1.4.207 → 1.4.208

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.
@@ -5317,28 +5317,31 @@ function RA(e = "blitzItExtensionExists") {
5317
5317
  }
5318
5318
  }
5319
5319
  function FA(e, t) {
5320
- return [
5321
- { lat: e.lat - t, lng: e.lng + t },
5322
- { lat: e.lat - t, lng: e.lng - t },
5323
- { lat: e.lat + t, lng: e.lng - t },
5324
- { lat: e.lat + t, lng: e.lng + t }
5325
- ];
5320
+ if (!(e.lat == null || e.lng == null))
5321
+ return [
5322
+ { lat: e.lat - t, lng: e.lng + t },
5323
+ { lat: e.lat - t, lng: e.lng - t },
5324
+ { lat: e.lat + t, lng: e.lng - t },
5325
+ { lat: e.lat + t, lng: e.lng + t }
5326
+ ];
5326
5327
  }
5327
5328
  function HA(e, t) {
5328
- return [
5329
- { lat: e.lat - t * 2, lng: e.lng + t },
5330
- { lat: e.lat - t * 2, lng: e.lng - t },
5331
- { lat: e.lat, lng: e.lng - t },
5332
- { lat: e.lat, lng: e.lng + t }
5333
- ];
5329
+ if (!(e.lat == null || e.lng == null))
5330
+ return [
5331
+ { lat: e.lat - t * 2, lng: e.lng + t },
5332
+ { lat: e.lat - t * 2, lng: e.lng - t },
5333
+ { lat: e.lat, lng: e.lng - t },
5334
+ { lat: e.lat, lng: e.lng + t }
5335
+ ];
5334
5336
  }
5335
5337
  function OA(e, t) {
5336
- return [
5337
- { lat: e.lat, lng: e.lng + t },
5338
- { lat: e.lat, lng: e.lng - t },
5339
- { lat: e.lat + t * 2, lng: e.lng - t },
5340
- { lat: e.lat + t * 2, lng: e.lng + t }
5341
- ];
5338
+ if (!(e.lat == null || e.lng == null))
5339
+ return [
5340
+ { lat: e.lat, lng: e.lng + t },
5341
+ { lat: e.lat, lng: e.lng - t },
5342
+ { lat: e.lat + t * 2, lng: e.lng - t },
5343
+ { lat: e.lat + t * 2, lng: e.lng + t }
5344
+ ];
5342
5345
  }
5343
5346
  function zA(e) {
5344
5347
  var t = Am(e, !0);
package/dist/index.d.ts CHANGED
@@ -523,9 +523,9 @@ declare type FindPath = (navName?: string) => string | undefined;
523
523
  */
524
524
  export declare function fromCamelCase(val?: string): string | undefined;
525
525
 
526
- declare interface GeoCoordinate {
527
- lat: number;
528
- lng: number;
526
+ export declare interface GeoCoordinate {
527
+ lat?: number;
528
+ lng?: number;
529
529
  }
530
530
 
531
531
  /**
@@ -537,19 +537,19 @@ declare interface GeoCoordinate {
537
537
  export declare function getAreaAround(location: GeoCoordinate, radius: number): {
538
538
  lat: number;
539
539
  lng: number;
540
- }[];
540
+ }[] | undefined;
541
541
 
542
542
  /**get square area using the location as the far right line */
543
543
  export declare function getAreaToLeft(location: GeoCoordinate, radius: number): {
544
544
  lat: number;
545
545
  lng: number;
546
- }[];
546
+ }[] | undefined;
547
547
 
548
548
  /**get square area using the location as the far left line */
549
549
  export declare function getAreaToRight(location: GeoCoordinate, radius: number): {
550
550
  lat: number;
551
551
  lng: number;
552
- }[];
552
+ }[] | undefined;
553
553
 
554
554
  /**
555
555
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.207",
3
+ "version": "1.4.208",
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": {