@overmap-ai/core 1.0.60-geo-images.6 → 1.0.60-geo-images.8
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/overmap-core.js +15 -0
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +15 -0
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/slices/projectFileSlice.d.ts +3 -1
- package/dist/typings/models/geo.d.ts +2 -1
- package/dist/utils/coordinates.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
2
|
+
import { MultiPointGeometry, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, ProjectFile } from "../../typings";
|
|
3
3
|
export interface ProjectFileState {
|
|
4
4
|
projectFiles: Record<string, ProjectFile>;
|
|
5
5
|
activeProjectFileId: string | null;
|
|
@@ -44,6 +44,7 @@ export declare const addOrReplaceProjectFiles: import("@reduxjs/toolkit").Action
|
|
|
44
44
|
fileId: string;
|
|
45
45
|
visible: boolean;
|
|
46
46
|
}, "projectFiles/setProjectFileVisible">, setIsImportingProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "projectFiles/setIsImportingProjectFile">, setActiveProjectFileId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "projectFiles/setActiveProjectFileId">, saveActiveProjectFileBounds: import("@reduxjs/toolkit").ActionCreatorWithPayload<MultiPointGeometry, "projectFiles/saveActiveProjectFileBounds">, removeProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "projectFiles/removeProjectFile">, removeProjectFilesOfProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projectFiles/removeProjectFilesOfProject">, resetProjectFileObjectUrls: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"projectFiles/resetProjectFileObjectUrls">;
|
|
47
|
+
export declare const selectProjectFileMapping: (state: OvermapRootState) => Record<string, ProjectFile>;
|
|
47
48
|
export declare const selectEnabledProjectFiles: (state: OvermapRootState) => Record<string, boolean | undefined>;
|
|
48
49
|
export declare const selectProjectFileVisibility: OvermapSelector<Record<string, boolean>>;
|
|
49
50
|
export declare const selectEnabledProjectFileMapping: (state: OvermapRootState) => Record<string, ProjectFile>;
|
|
@@ -54,4 +55,5 @@ export declare const selectProjectFiles: ((state: OvermapRootState) => ProjectFi
|
|
|
54
55
|
};
|
|
55
56
|
export declare const selectActiveProjectFileId: OvermapSelector<string | null>;
|
|
56
57
|
export declare const selectIsImportingProjectFile: OvermapSelector<boolean>;
|
|
58
|
+
export declare const selectProjectFileById: OvermapSelectorWithArgs<string, ProjectFile>;
|
|
57
59
|
export declare const projectFileReducer: Reducer<ProjectFileState>;
|
|
@@ -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:
|
|
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.
|
|
6
|
+
"version": "1.0.60-geo-images.8",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|