@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
|
@@ -406,6 +406,9 @@ var __publicField = (obj, key, value) => {
|
|
|
406
406
|
const flipCoordinates = (coordinates) => {
|
|
407
407
|
return [coordinates[1], coordinates[0]];
|
|
408
408
|
};
|
|
409
|
+
const flipBounds = (bounds) => {
|
|
410
|
+
return [flipCoordinates(bounds[0]), flipCoordinates(bounds[1])];
|
|
411
|
+
};
|
|
409
412
|
function offsetPositionByMeters(originalPosition, latMeters, lngMeters) {
|
|
410
413
|
const { lat, lng } = originalPosition;
|
|
411
414
|
const earthRadius = 6378137;
|
|
@@ -2361,6 +2364,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2361
2364
|
removeProjectFilesOfProject,
|
|
2362
2365
|
resetProjectFileObjectUrls
|
|
2363
2366
|
} = projectFileSlice.actions;
|
|
2367
|
+
const selectProjectFileMapping = (state) => state.projectFileReducer.projectFiles;
|
|
2364
2368
|
const selectEnabledProjectFiles = (state) => state.projectFileReducer.enabledProjectFiles;
|
|
2365
2369
|
const selectProjectFileVisibility = toolkit.createSelector(
|
|
2366
2370
|
[selectEnabledProjectFiles],
|
|
@@ -2381,6 +2385,14 @@ var __publicField = (obj, key, value) => {
|
|
|
2381
2385
|
);
|
|
2382
2386
|
const selectActiveProjectFileId = (state) => state.projectFileReducer.activeProjectFileId;
|
|
2383
2387
|
const selectIsImportingProjectFile = (state) => state.projectFileReducer.isImportingProjectFile;
|
|
2388
|
+
const selectProjectFileById = restructureCreateSelectorWithArgs(
|
|
2389
|
+
toolkit.createSelector(
|
|
2390
|
+
[selectProjectFileMapping, (_, projectFileId) => projectFileId],
|
|
2391
|
+
(projectFileMapping, projectFileId) => {
|
|
2392
|
+
return projectFileMapping[projectFileId];
|
|
2393
|
+
}
|
|
2394
|
+
)
|
|
2395
|
+
);
|
|
2384
2396
|
const projectFileReducer = projectFileSlice.reducer;
|
|
2385
2397
|
const projectAttachmentAdapter = createModelAdapter((attachment) => attachment.offline_id);
|
|
2386
2398
|
const initialState$h = projectAttachmentAdapter.getInitialState({});
|
|
@@ -7536,6 +7548,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7536
7548
|
exports2.fileReducer = fileReducer;
|
|
7537
7549
|
exports2.fileSlice = fileSlice;
|
|
7538
7550
|
exports2.fileToBlob = fileToBlob;
|
|
7551
|
+
exports2.flipBounds = flipBounds;
|
|
7539
7552
|
exports2.flipCoordinates = flipCoordinates;
|
|
7540
7553
|
exports2.formReducer = formReducer;
|
|
7541
7554
|
exports2.formRevisionAttachmentReducer = formRevisionAttachmentReducer;
|
|
@@ -7792,6 +7805,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7792
7805
|
exports2.selectProjectAccesses = selectProjectAccesses;
|
|
7793
7806
|
exports2.selectProjectAttachment = selectProjectAttachment;
|
|
7794
7807
|
exports2.selectProjectAttachmentMapping = selectProjectAttachmentMapping;
|
|
7808
|
+
exports2.selectProjectFileById = selectProjectFileById;
|
|
7809
|
+
exports2.selectProjectFileMapping = selectProjectFileMapping;
|
|
7795
7810
|
exports2.selectProjectFileVisibility = selectProjectFileVisibility;
|
|
7796
7811
|
exports2.selectProjectFiles = selectProjectFiles;
|
|
7797
7812
|
exports2.selectProjectUsersAsMapping = selectProjectUsersAsMapping;
|