@skypath-io/web-sdk 0.5.3 → 0.5.5
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.
|
@@ -264,10 +264,11 @@ export function getMiddleArea({ polygon, resolution, extensionFactor }: {
|
|
|
264
264
|
}): Array<Array<number>>;
|
|
265
265
|
/**
|
|
266
266
|
* Groups hexagons by `hexId` and selects the most severe (highest `sev`) for each group.
|
|
267
|
+
* Additionally, adds a `reports` key containing all hexagons with the same `hexId`.
|
|
267
268
|
*
|
|
268
269
|
* @param {Object} options - The function parameter object.
|
|
269
270
|
* @param {Array} options.hexagons - An array of hexagon objects.
|
|
270
|
-
* @returns {Object} - An object where keys are `hexId` values and values are the most severe hexagon in each group.
|
|
271
|
+
* @returns {Object} - An object where keys are `hexId` values and values are the most severe hexagon in each group, along with all reports.
|
|
271
272
|
*/
|
|
272
273
|
export function groupByHexIdAndSelectMostSevere({ hexagons }: {
|
|
273
274
|
hexagons: any[];
|