venue-js 1.4.0-next.14 → 1.4.0-next.15
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/data/index.d.mts +89 -7
- package/dist/data/index.d.ts +89 -7
- package/dist/data/index.js +9 -6
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +6 -3
- package/dist/data/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -291,7 +291,11 @@ __export(occupant_helper_exports, {
|
|
|
291
291
|
getOccupantMainLocation: () => getOccupantMainLocation,
|
|
292
292
|
getOccupantMarkerLocations: () => getOccupantMarkerLocations
|
|
293
293
|
});
|
|
294
|
-
|
|
294
|
+
|
|
295
|
+
// src/data/utils/lodash/compact.ts
|
|
296
|
+
var compact = (arr) => arr.filter((item) => Boolean(item));
|
|
297
|
+
|
|
298
|
+
// src/data/utils/occupant-helper.ts
|
|
295
299
|
var getOccupantMainLocation = (occupant) => {
|
|
296
300
|
return occupant.properties.kiosk || occupant.properties.unit;
|
|
297
301
|
};
|
|
@@ -322,7 +326,6 @@ import {
|
|
|
322
326
|
} from "@tanstack/query-core";
|
|
323
327
|
|
|
324
328
|
// src/data/populator/index.ts
|
|
325
|
-
import { compact as compact2 } from "lodash";
|
|
326
329
|
import { booleanWithin } from "@turf/boolean-within";
|
|
327
330
|
var createPopulator = ({
|
|
328
331
|
internalFindById,
|
|
@@ -480,7 +483,7 @@ var createPopulator = ({
|
|
|
480
483
|
...occupant.properties,
|
|
481
484
|
anchor: anchor ? await populateAnchor(anchor) : null,
|
|
482
485
|
local_categories: await Promise.all(
|
|
483
|
-
|
|
486
|
+
compact(localCategories).map(populateTaxonomy)
|
|
484
487
|
),
|
|
485
488
|
venue,
|
|
486
489
|
promotions,
|
|
@@ -4070,7 +4073,7 @@ var CameraManager = class {
|
|
|
4070
4073
|
};
|
|
4071
4074
|
|
|
4072
4075
|
// src/IndoorMap/renderer/RendererManager.ts
|
|
4073
|
-
import { min, compact as
|
|
4076
|
+
import { min, compact as compact2, isFunction } from "lodash";
|
|
4074
4077
|
import { center as turfCenter2 } from "@turf/center";
|
|
4075
4078
|
import * as THREE4 from "three";
|
|
4076
4079
|
|
|
@@ -5863,7 +5866,7 @@ var RendererManager = class extends EventTarget {
|
|
|
5863
5866
|
});
|
|
5864
5867
|
units.filter((u4) => u4.properties.category === "room").forEach((unit) => {
|
|
5865
5868
|
const openingRelationships = relationships.filter((r) => r.properties.origin?.id === unit.id || r.properties.destination?.id === unit.id);
|
|
5866
|
-
const roomOpenings =
|
|
5869
|
+
const roomOpenings = compact2(openingRelationships.map((rel) => {
|
|
5867
5870
|
const openingId = rel?.properties.intermediary[0].id;
|
|
5868
5871
|
return openings.find((o) => o.id === openingId);
|
|
5869
5872
|
}));
|