@overmap-ai/core 1.0.60-geo-images.5 → 1.0.60-geo-images.7

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.
@@ -1,11 +1,12 @@
1
1
  export type Coordinates = [number, number];
2
+ export type Bounds = [Coordinates, Coordinates];
2
3
  export interface PointGeometry {
3
4
  type: "Point";
4
5
  coordinates: Coordinates;
5
6
  }
6
7
  export interface MultiPointGeometry {
7
8
  type: "MultiPoint";
8
- coordinates: [Coordinates, Coordinates];
9
+ coordinates: Bounds;
9
10
  }
10
11
  export interface BoundableModel {
11
12
  bounds?: MultiPointGeometry;
@@ -1,11 +1,12 @@
1
1
  import L from "leaflet";
2
- import { Coordinates, MultiPointGeometry, PointGeometry } from "../typings";
2
+ import { Bounds, Coordinates, MultiPointGeometry, PointGeometry } from "../typings";
3
3
  export declare const coordinatesToLiteral: (coordinates: Coordinates) => L.LatLngLiteral;
4
4
  export declare const literalToCoordinates: (literal: L.LatLngLiteral) => Coordinates;
5
5
  /**
6
6
  * Flip coordinates from [lng, lat] to [lat, lng]
7
7
  */
8
8
  export declare const flipCoordinates: (coordinates: L.LatLngTuple) => Coordinates;
9
+ export declare const flipBounds: (bounds: Bounds) => Bounds;
9
10
  export declare function offsetPositionByMeters(originalPosition: L.LatLng, latMeters: number, lngMeters: number): L.LatLngLiteral;
10
11
  export declare const createPointGeometry: (coordinates: Coordinates) => PointGeometry;
11
12
  export declare const coordinatesAreEqual: (a: Coordinates, b: Coordinates) => boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core functionality for Overmap",
4
4
  "author": "Wôrdn Inc.",
5
5
  "license": "UNLICENSED",
6
- "version": "1.0.60-geo-images.5",
6
+ "version": "1.0.60-geo-images.7",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",