@skypath-io/web-sdk 0.5.7 → 0.5.9
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/CHANGELOG.md +12 -0
- package/dist/bundle.cjs.js +2 -2
- package/dist/bundle.es.js +2 -2
- package/dist/bundle.iife.js +2 -2
- package/dist/types/src/core/flow/consts.d.ts +6 -4
- package/dist/types/src/core/geo/geo.d.ts +2 -0
- package/dist/types/src/features/nowcasting/consts.d.ts +0 -2
- package/dist/types/src/features/observations/consts.d.ts +0 -2
- package/dist/types/src/features/oneLayer/consts.d.ts +0 -2
- package/dist/types/src/features/oneLayer/service.d.ts +1 -3
- package/dist/types/src/publicApi.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ export namespace STATES {
|
|
|
11
11
|
let TERMINATED: string;
|
|
12
12
|
}
|
|
13
13
|
export namespace DEFAULT_FILTER_VALUES {
|
|
14
|
-
let HOURS_AGO: number;
|
|
15
|
-
let SEVERITY: number;
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export let HOURS_AGO: number;
|
|
15
|
+
export let SEVERITY: number;
|
|
16
|
+
export { MIN_ALT as ALT_FROM };
|
|
17
|
+
export { MAX_ALT as ALT_TO };
|
|
18
18
|
}
|
|
19
19
|
export const SIZE_TO_RESOLUTION_MAP: {
|
|
20
20
|
[x: string]: number;
|
|
@@ -28,3 +28,5 @@ export namespace POLYGON_TYPE {
|
|
|
28
28
|
export const POLYGON_SIZE_TO_ZOOM_THRESHOLD_MAP: {
|
|
29
29
|
[x: string]: number;
|
|
30
30
|
};
|
|
31
|
+
export const MIN_ALT: 0;
|
|
32
|
+
export const MAX_ALT: 52;
|
|
@@ -176,6 +176,7 @@ export function getHexagonsDataSlice({ data, filters }: {
|
|
|
176
176
|
* @param {number} [params.filters.minAltitude] - The minimum altitude to filter data.
|
|
177
177
|
* @param {number} [params.filters.maxAltitude] - The maximum altitude to filter data.
|
|
178
178
|
* @param {number} [params.filters.minSeverity] - The minimum severity to filter data.
|
|
179
|
+
* @param {number} [params.filters.hoursAgo] - The number of hours ago to filter data.
|
|
179
180
|
* @param {string} [params.filters.polygonSize] - The size of the polygon.
|
|
180
181
|
* @returns {Object} The filtered hexagon data.
|
|
181
182
|
*/
|
|
@@ -185,6 +186,7 @@ export function getOneLayerHexagonsDataSlice({ data, filters }: {
|
|
|
185
186
|
minAltitude?: number;
|
|
186
187
|
maxAltitude?: number;
|
|
187
188
|
minSeverity?: number;
|
|
189
|
+
hoursAgo?: number;
|
|
188
190
|
polygonSize?: string;
|
|
189
191
|
};
|
|
190
192
|
}): any;
|
|
@@ -13,8 +13,6 @@ export const REFRESH_TIME_SEC: number;
|
|
|
13
13
|
export namespace CONFIG_KEYS {
|
|
14
14
|
let POLYGON: string;
|
|
15
15
|
}
|
|
16
|
-
export const MAX_ALT: 52;
|
|
17
|
-
export const MIN_ALT: 5;
|
|
18
16
|
export const MAP_RESOLUTION: 5;
|
|
19
17
|
export const FORECAST_RANGE: number[];
|
|
20
18
|
export const SEVERITY_RANGE: number[];
|
|
@@ -45,8 +45,6 @@ export namespace SEVERITY {
|
|
|
45
45
|
let moderate: number;
|
|
46
46
|
let moderateSevere: number;
|
|
47
47
|
}
|
|
48
|
-
export const MAX_ALT: 52;
|
|
49
|
-
export const MIN_ALT: 5;
|
|
50
48
|
export const DEFAULT_RESOLUTION: 1;
|
|
51
49
|
export const MAP_RESOLUTION: 5;
|
|
52
50
|
export namespace LARGE_POLYGON_HANDLING_BEHAVIOR {
|
|
@@ -13,7 +13,7 @@ export namespace Observations {
|
|
|
13
13
|
import { AIRCRAFT_CATEGORY } from "./features/observations/consts.js";
|
|
14
14
|
import { HISTORY_HOURS } from "./features/observations/consts.js";
|
|
15
15
|
import { SEVERITY } from "./features/observations/consts.js";
|
|
16
|
-
import { MAX_ALT } from "./
|
|
17
|
-
import { MIN_ALT } from "./
|
|
16
|
+
import { MAX_ALT } from "./core/flow/consts.js";
|
|
17
|
+
import { MIN_ALT } from "./core/flow/consts.js";
|
|
18
18
|
import { LARGE_POLYGON_HANDLING_BEHAVIOR } from "./features/observations/consts.js";
|
|
19
19
|
export { CoreUtils, GeoUtils };
|