@mappedin/react-sdk 6.0.1-beta.46 → 6.0.1-beta.48

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.
Files changed (37) hide show
  1. package/THIRD_PARTY_LICENSES.txt +9289 -24606
  2. package/lib/esm/GLTFExporter-U7TU265Z.js +1 -0
  3. package/lib/esm/GLTFLoader-6MJPEGD7.js +1 -0
  4. package/lib/esm/browser-CR4WWHP7.js +1 -0
  5. package/lib/esm/chunk-63UMH2J3.js +1 -0
  6. package/lib/esm/chunk-7JZE7FSJ.js +1 -0
  7. package/lib/esm/chunk-B3CVW3UU.js +1 -0
  8. package/lib/esm/chunk-EIMXVMO4.js +1 -0
  9. package/lib/esm/chunk-JMCXCPZD.js +1 -0
  10. package/lib/esm/chunk-Z5U7QCEH.js +1 -0
  11. package/lib/esm/index.css +1 -1
  12. package/lib/esm/index.d.ts +350 -119
  13. package/lib/esm/index.js +1 -1
  14. package/lib/esm/inspector-U6M4QW4R.js +1 -0
  15. package/lib/esm/inspector-WWR77OPX.css +1 -0
  16. package/lib/esm/internal-M7DPGYMI.css +1 -0
  17. package/lib/esm/internal-ZUMRQSCJ.js +1 -0
  18. package/lib/esm/outdoor-context-v4-ME4STCCK.js +1 -0
  19. package/lib/esm/text3d-DNZ77VLG.js +1 -0
  20. package/package.json +6 -6
  21. package/lib/esm/GLTFExporter-HAEOIORD.js +0 -1
  22. package/lib/esm/GLTFLoader-3AR2NA3D.js +0 -1
  23. package/lib/esm/browser-LDR6NMTB.js +0 -1
  24. package/lib/esm/chunk-2OY65JNC.js +0 -1
  25. package/lib/esm/chunk-A4BAKOBA.js +0 -1
  26. package/lib/esm/chunk-GQRZXW47.js +0 -1
  27. package/lib/esm/chunk-HQPJR25Y.js +0 -1
  28. package/lib/esm/chunk-K5IZJL77.js +0 -1
  29. package/lib/esm/chunk-QARZ2ADL.js +0 -1
  30. package/lib/esm/chunk-QZW6TJU7.js +0 -1
  31. package/lib/esm/inspector-6WW7AUZN.js +0 -1
  32. package/lib/esm/inspector-GOK26VAV.css +0 -1
  33. package/lib/esm/internal-65CA5CF2.js +0 -1
  34. package/lib/esm/internal-7A3UJNAV.css +0 -1
  35. package/lib/esm/outdoor-context-v4-NRZ3P73G.js +0 -1
  36. package/lib/esm/roboto-regular-B567NWMQ.js +0 -1
  37. package/lib/esm/text3d-6FT4WNC5.js +0 -1
@@ -13,14 +13,11 @@
13
13
  // ../react/@tweenjs/tween.js
14
14
  // ../react/@packages/internal/outdoor-context-v4
15
15
  // ../react/@packages/internal/geojson-navigator
16
- // ../react/@mappedin/mvf-core
17
16
  // ../react/three
18
17
  // ../react/zod
19
18
  // ../react/@packages/internal/shave-text/shave-text
20
- // ../react/@turf/turf
21
19
  // ../react/troika-three-text
22
20
  // ../react/@packages/internal/quad-tree
23
- // ../react/@mappedin/core-sdk/src/components/text3d
24
21
  // ../react/minisearch
25
22
  // ../react/three/examples/jsm/loaders/GLTFLoader.js
26
23
  // ../react/@mapbox/point-geometry
@@ -62,7 +59,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
62
59
  import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/react-sdk/packages/mvf-utils';
63
60
  import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
64
61
  import type { Floor } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
65
- import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, ParsedMVFLocalePack, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf-v2';
62
+ import type { ParsedMVF as TMVF, StyleCollection as TMVFStyleCollection, Style as TMVFStyle, LineStringStyle as TMVFLineStringStyle, PolygonStyle as TMVFPolygonStyle, PointStyle as TMVFPointStyle, OperationHours, SiblingGroup, LocationState } from '@mappedin/mvf-v2';
66
63
  import { MapView } from '@mappedin/react-sdk/mappedin-js/src/map-view';
67
64
  export type { Text3D as Text3DApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/text3d';
68
65
  export { disableText3DWorker } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/text3d';
@@ -75,6 +72,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
75
72
  import { MAPPEDIN_COLORS } from '@mappedin/react-sdk/mappedin-js/src/constants';
76
73
  import type { TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TFollowMode, TFollowCameraOptions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/blue-dot/blue-dot';
77
74
  import type { TExpandOptions, TStackedMapsEvents, TStackedMapsState } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
75
+ import { hydrateMapData, type THydrateMapDataBundle } from '@mappedin/react-sdk/mappedin-js/src/hydrate-map-data';
76
+ export { hydrateMapData, type THydrateMapDataBundle };
78
77
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
79
78
  /**
80
79
  * @internal
@@ -319,6 +318,22 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
319
318
  * @internal
320
319
  */
321
320
  onWebGLRendererError?: (error: Error) => void;
321
+ /**
322
+ * @experimental
323
+ * @internal
324
+ *
325
+ * If true, the map will use a standalone camera for rendering instead of syncing with MapLibre's camera.
326
+ * This enables environment map reflections to update with camera movement in interleaved and overlay modes.
327
+ * Note: This disables building occlusion since the depth buffer is no longer synchronized with MapLibre.
328
+ *
329
+ * @default false
330
+ */
331
+ useStandaloneCamera?: boolean;
332
+ /**
333
+ *
334
+ * Preload floors for the map. Allows floors to appear faster but requires more time and memory up front.
335
+ */
336
+ preloadFloors?: Floor[];
322
337
  };
323
338
  /**
324
339
  * @internal
@@ -334,39 +349,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
334
349
  * @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
335
350
  */
336
351
  export function setUseEnterpriseAPI(value: boolean): void;
337
- export type THydrateMapDataBundle = {
338
- type: 'binary';
339
- options?: {
340
- version?: '2.0.0' | '3.0.0';
341
- enterprise?: boolean;
342
- };
343
- languagePacks?: {
344
- language: {
345
- code: string;
346
- name: string;
347
- };
348
- localePack: Uint8Array;
349
- }[];
350
- main: Uint8Array;
351
- } | {
352
- type: 'json';
353
- options?: {
354
- version?: '2.0.0' | '3.0.0';
355
- enterprise?: boolean;
356
- };
357
- languagePacks?: {
358
- language: {
359
- code: string;
360
- name: string;
361
- };
362
- localePack: ParsedMVFLocalePack;
363
- }[];
364
- main: TMVF;
365
- };
366
- /**
367
- * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
368
- */
369
- export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
370
352
  /**
371
353
  * Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
372
354
  *
@@ -1015,10 +997,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
1015
997
  */
1016
998
  toBinaryBundle({ downloadLanguagePacks }?: {
1017
999
  downloadLanguagePacks?: boolean;
1018
- }): Promise<void | import(".").THydrateMapDataBundle>;
1000
+ }): Promise<void | import("./hydrate-map-data").THydrateMapDataBundle>;
1019
1001
  toJSONBundle({ downloadLanguagePacks }?: {
1020
1002
  downloadLanguagePacks?: boolean;
1021
- }): Promise<import(".").THydrateMapDataBundle>;
1003
+ }): Promise<import("./hydrate-map-data").THydrateMapDataBundle>;
1022
1004
  }
1023
1005
  export default MapData;
1024
1006
  /**
@@ -1698,6 +1680,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
1698
1680
  * @param floorStack The floor stack or floor stack ID to set.
1699
1681
  */
1700
1682
  setFloorStack(floorStack: FloorStack | string, options?: TSetFloorOptions): void;
1683
+ /**
1684
+ * Preload floor geometry and outlines for the map at runtime. Can be used when anticipating a large number of floors will be visible at once to
1685
+ * keep the map responsive.
1686
+ * @param floors The floors to preload.
1687
+ */
1688
+ preloadFloors(floors: Floor[]): void;
1701
1689
  /**
1702
1690
  * Create a tween object that will be updated on every render frame.
1703
1691
  * See https://tweenjs.github.io/tween.js/docs/user_guide.html for more information.
@@ -2336,10 +2324,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2336
2324
  * The color of the path.
2337
2325
  */
2338
2326
  color: string;
2339
- /**
2340
- * The complete fraction of the path.
2341
- */
2342
- completeFraction: number;
2343
2327
  /**
2344
2328
  * The near radius of the path.
2345
2329
  */
@@ -2348,6 +2332,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2348
2332
  * The far radius of the path.
2349
2333
  */
2350
2334
  farRadius: number;
2335
+ /**
2336
+ * The fraction of the path that should be complete. This can be used to animate the path.
2337
+ */
2338
+ completeFraction: number;
2351
2339
  /**
2352
2340
  * Whether the path is visible.
2353
2341
  */
@@ -2774,6 +2762,26 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2774
2762
  * @defaultValue -Infinite
2775
2763
  */
2776
2764
  minAdjustedAltitude?: number;
2765
+ /**
2766
+ * Whether the path should be dashed.
2767
+ *
2768
+ * @defaultValue false
2769
+ */
2770
+ dashed?: boolean;
2771
+ /**
2772
+ * Whether the path should be visible.
2773
+ *
2774
+ * @defaultValue true
2775
+ */
2776
+ visible?: boolean;
2777
+ /**
2778
+ * @internal
2779
+ *
2780
+ * Whether the path should be visible through geometry. Can be used to create paths that are visible through walls and floors.
2781
+ *
2782
+ * @defaultValue false
2783
+ */
2784
+ visibleThroughGeometry?: boolean;
2777
2785
  };
2778
2786
  /**
2779
2787
  * Control how a {@link Label} looks
@@ -2871,6 +2879,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2871
2879
  * If there is no path that does not include the these connections, the directions will be undefined.
2872
2880
  */
2873
2881
  excludedConnections?: Connection[];
2882
+ /**
2883
+ * Override the default weights for specific connection ids.
2884
+ */
2885
+ connectionIdWeightMap?: Record<string, number>;
2874
2886
  };
2875
2887
  /**
2876
2888
  * The target for the add model operation.
@@ -3615,6 +3627,45 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/sta
3615
3627
  export {};
3616
3628
  }
3617
3629
 
3630
+ declare module '@mappedin/react-sdk/mappedin-js/src/hydrate-map-data' {
3631
+ import MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
3632
+ import type { TGetMapDataOptions } from '@mappedin/react-sdk/packages/mvf-utils';
3633
+ import type { ParsedMVF as TMVF, ParsedMVFLocalePack } from '@mappedin/mvf-v2';
3634
+ export type THydrateMapDataBundle = {
3635
+ type: 'binary';
3636
+ options?: {
3637
+ version?: '2.0.0' | '3.0.0';
3638
+ enterprise?: boolean;
3639
+ };
3640
+ languagePacks?: {
3641
+ language: {
3642
+ code: string;
3643
+ name: string;
3644
+ };
3645
+ localePack: Uint8Array;
3646
+ }[];
3647
+ main: Uint8Array;
3648
+ } | {
3649
+ type: 'json';
3650
+ options?: {
3651
+ version?: '2.0.0' | '3.0.0';
3652
+ enterprise?: boolean;
3653
+ };
3654
+ languagePacks?: {
3655
+ language: {
3656
+ code: string;
3657
+ name: string;
3658
+ };
3659
+ localePack: ParsedMVFLocalePack;
3660
+ }[];
3661
+ main: TMVF;
3662
+ };
3663
+ /**
3664
+ * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
3665
+ */
3666
+ export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
3667
+ }
3668
+
3618
3669
  declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects' {
3619
3670
  export { Label } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/label';
3620
3671
  export { Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker';
@@ -3955,6 +4006,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/api' {
3955
4006
  Images: Images;
3956
4007
  get StackedMaps(): import("..").StackedMaps;
3957
4008
  constructor(rendererCore: RendererCore, mapView: MapView);
4009
+ preloadFloors(floors: Floor[]): void;
3958
4010
  updateState<T extends Space | Text3DView | MapObject | Label | Shape | Marker | Model | Door | Facade | Floor | WALLS | DOORS | Path | PathSegment | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
3959
4011
  update: () => void;
3960
4012
  getMapDataInternal(): MapDataInternal | undefined;
@@ -4168,6 +4220,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions' {
4168
4220
  };
4169
4221
  zones: TDirectionZone[];
4170
4222
  excludedConnections: Connection[];
4223
+ connectionIdWeightMap: Record<string, number>;
4171
4224
  }, mapData: MapDataInternal) => Directions | undefined;
4172
4225
  /**
4173
4226
  * Get the node IDs that should be excluded from the navigation graph.
@@ -4206,11 +4259,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
4206
4259
  import type Connection from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection';
4207
4260
  import type MapObject from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object';
4208
4261
  import type { EnterpriseLocation as MvfEnterpriseLocation, EnterpriseCategory as MvfEnterpriseCategory, ParsedMVFLocalePack, Feature, FloorStack as MvfFloorStack, FloorProperties as MvfFloor } from '@mappedin/mvf-v2';
4209
- import type { PartialExcept } from '@mappedin/mvf-core';
4262
+ import type { PartialExcept } from '@mappedin/react-sdk/packages/common/types';
4210
4263
  import type { LocalePackUrls } from '@packages/internal/mvf-utils';
4211
4264
  import type { LanguagePackHydrationItem } from '@mappedin/react-sdk/mappedin-js/src/types';
4212
4265
  import type { EnvControl, TGetMapDataOptions } from '@packages/internal/mvf-utils/mvf-utils';
4213
- import { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
4266
+ import type { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
4214
4267
  /**
4215
4268
  * Places are the main objects that can be searched for.
4216
4269
  */
@@ -5176,9 +5229,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node' {
5176
5229
  * @returns An object representing the node.
5177
5230
  */
5178
5231
  toJSON(): {
5232
+ __type: string;
5179
5233
  id: string;
5180
5234
  floor: string;
5181
5235
  coordinate: {
5236
+ __type: string;
5182
5237
  latitude: number;
5183
5238
  longitude: number;
5184
5239
  floor: string | undefined;
@@ -5265,6 +5320,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/area' {
5265
5320
  * @returns An object representing the space.
5266
5321
  */
5267
5322
  toJSON(): {
5323
+ __type: string;
5268
5324
  id: string;
5269
5325
  name: string;
5270
5326
  floor: string;
@@ -5374,10 +5430,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
5374
5430
  * @returns An object representing the door.
5375
5431
  */
5376
5432
  toJSON(): {
5433
+ __type: string;
5377
5434
  id: string;
5378
5435
  name: string;
5379
5436
  floor: string;
5380
5437
  center: {
5438
+ __type: string;
5381
5439
  latitude: number;
5382
5440
  longitude: number;
5383
5441
  floor: string | undefined;
@@ -5496,11 +5554,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
5496
5554
  * @returns An object representing the space.
5497
5555
  */
5498
5556
  toJSON(): {
5557
+ __type: string;
5499
5558
  id: string;
5500
5559
  name: string;
5501
5560
  type: TSpaceType;
5502
5561
  floor: string;
5503
5562
  center: {
5563
+ __type: string;
5504
5564
  latitude: number;
5505
5565
  longitude: number;
5506
5566
  floor: string | undefined;
@@ -5525,6 +5585,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
5525
5585
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
5526
5586
  import type { Feature, FloorCollection, MultiPolygon, Polygon } from '@mappedin/mvf-v2';
5527
5587
  import type { Annotation, Connection, Door, MapDataInternal, PointOfInterest, Space, MapObject, FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
5588
+ import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
5528
5589
  import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
5529
5590
  import type { IFocusable } from '@mappedin/react-sdk/mappedin-js/src/types';
5530
5591
  /**
@@ -5628,12 +5689,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
5628
5689
  * @returns {FloorStack} The FloorStack that this floor belongs to.
5629
5690
  */
5630
5691
  get floorStack(): FloorStack;
5692
+ get center(): Coordinate;
5631
5693
  /**
5632
5694
  * Serializes the floor data to JSON.
5633
5695
  *
5634
5696
  * @returns An object representing the floor.
5635
5697
  */
5636
5698
  toJSON(): {
5699
+ __type: string;
5637
5700
  id: string;
5638
5701
  name: string;
5639
5702
  shortName: string;
@@ -5737,11 +5800,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection'
5737
5800
  * @returns An object representing the connection.
5738
5801
  */
5739
5802
  toJSON(): {
5803
+ __type: string;
5740
5804
  id: string;
5741
5805
  name: string;
5742
5806
  type: string;
5743
5807
  externalId: string;
5744
5808
  coordinates: {
5809
+ __type: string;
5745
5810
  latitude: number;
5746
5811
  longitude: number;
5747
5812
  floor: string | undefined;
@@ -5837,11 +5902,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object' {
5837
5902
  * @returns An object representing the MapObject.
5838
5903
  */
5839
5904
  toJSON(): {
5905
+ __type: string;
5840
5906
  id: string;
5841
5907
  name: string;
5842
5908
  type: string;
5843
5909
  floor: string;
5844
5910
  center: {
5911
+ __type: string;
5845
5912
  latitude: number;
5846
5913
  longitude: number;
5847
5914
  floor: string | undefined;
@@ -5956,6 +6023,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate'
5956
6023
  * @returns An object representing the coordinate.
5957
6024
  */
5958
6025
  toJSON(): {
6026
+ __type: string;
5959
6027
  latitude: number;
5960
6028
  longitude: number;
5961
6029
  floor: string | undefined;
@@ -6039,10 +6107,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/poi' {
6039
6107
  * @returns An object representing the POI.
6040
6108
  */
6041
6109
  toJSON(): {
6110
+ __type: string;
6042
6111
  id: string;
6043
6112
  name: string;
6044
6113
  floor: string;
6045
6114
  coordinate: {
6115
+ __type: string;
6046
6116
  latitude: number;
6047
6117
  longitude: number;
6048
6118
  floor: string | undefined;
@@ -6140,10 +6210,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/annotation'
6140
6210
  * @returns An object representing the annotation.
6141
6211
  */
6142
6212
  toJSON(): {
6213
+ __type: string;
6143
6214
  id: string;
6144
6215
  group: string;
6145
6216
  type: string;
6146
6217
  coordinate: {
6218
+ __type: string;
6147
6219
  latitude: number;
6148
6220
  longitude: number;
6149
6221
  floor: string | undefined;
@@ -6172,6 +6244,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink'
6172
6244
  * @internal
6173
6245
  */
6174
6246
  static readonly __type = "hyperlink";
6247
+ /**
6248
+ * @internal
6249
+ */
6250
+ readonly __type = "hyperlink";
6175
6251
  /**
6176
6252
  * Checks if the provided instance is of type Hyperlink.
6177
6253
  *
@@ -6203,6 +6279,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink'
6203
6279
  * @returns An object representing the hyperlink.
6204
6280
  */
6205
6281
  toJSON(): {
6282
+ __type: string;
6206
6283
  id: string;
6207
6284
  url: string;
6208
6285
  name: string | undefined;
@@ -6230,6 +6307,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
6230
6307
  * @internal
6231
6308
  */
6232
6309
  static readonly __type = "image";
6310
+ /**
6311
+ * @internal
6312
+ */
6313
+ readonly __type = "image";
6233
6314
  /**
6234
6315
  * Checks if the provided instance is of type Image.
6235
6316
  *
@@ -6263,13 +6344,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
6263
6344
  * @returns {string | undefined } The alt text of the image.
6264
6345
  */
6265
6346
  get altText(): string | undefined;
6266
- /**
6267
6347
  /**
6268
6348
  * Serializes the image data to JSON.
6269
6349
  *
6270
6350
  * @returns An object representing the image.
6271
6351
  */
6272
6352
  toJSON(): {
6353
+ __type: string;
6273
6354
  id: string;
6274
6355
  url: string | undefined;
6275
6356
  name: string | undefined;
@@ -6357,6 +6438,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor-stack
6357
6438
  * @returns An object representing the FloorStack.
6358
6439
  */
6359
6440
  toJSON(): {
6441
+ __type: string;
6360
6442
  id: string;
6361
6443
  name: string;
6362
6444
  shortName: string;
@@ -6682,6 +6764,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
6682
6764
  * The type of the location.
6683
6765
  */
6684
6766
  type: string;
6767
+ /**
6768
+ * Whether the location has been marked as hidden.
6769
+ */
6770
+ hidden: boolean;
6685
6771
  /**
6686
6772
  * Checks if the provided instance is of type EnterpriseLocation.
6687
6773
  *
@@ -6710,6 +6796,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
6710
6796
  * @returns An object representing the EnterpriseLocation.
6711
6797
  */
6712
6798
  toJSON(): {
6799
+ __type: string;
6713
6800
  id: string;
6714
6801
  name: string;
6715
6802
  };
@@ -6806,6 +6893,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
6806
6893
  * @returns An object representing the EnterpriseCategory.
6807
6894
  */
6808
6895
  toJSON(): {
6896
+ __type: string;
6809
6897
  id: string;
6810
6898
  name: string;
6811
6899
  };
@@ -6920,6 +7008,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
6920
7008
  * @returns An object representing the EnterpriseVenue.
6921
7009
  */
6922
7010
  toJSON(): {
7011
+ __type: string;
6923
7012
  id: string;
6924
7013
  name: string;
6925
7014
  };
@@ -7060,6 +7149,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location-pr
7060
7149
  */
7061
7150
  get navigationTarget(): TNavigationTarget[];
7062
7151
  toJSON(): {
7152
+ __type: string;
7063
7153
  id: string;
7064
7154
  name: string;
7065
7155
  };
@@ -7114,6 +7204,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location-ca
7114
7204
  */
7115
7205
  get locationProfiles(): LocationProfile[];
7116
7206
  toJSON(): {
7207
+ __type: string;
7117
7208
  id: string;
7118
7209
  name: string;
7119
7210
  };
@@ -7682,6 +7773,14 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7682
7773
  * Arrows on path should animate to indicate direction
7683
7774
  */
7684
7775
  animateArrowsOnPath?: boolean;
7776
+ /**
7777
+ * Whether the path should be visible through geometry.
7778
+ */
7779
+ visibleThroughGeometry?: boolean;
7780
+ /**
7781
+ * Whether the path should be dashed.
7782
+ */
7783
+ dashed?: boolean;
7685
7784
  };
7686
7785
  export const addPathOptionsSchema: z.ZodObject<{
7687
7786
  interactive: z.ZodOptional<z.ZodBoolean>;
@@ -7693,6 +7792,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7693
7792
  animateArrowsOnPath: z.ZodOptional<z.ZodBoolean>;
7694
7793
  nearZoomLevel: z.ZodOptional<z.ZodNumber>;
7695
7794
  farZoomLevel: z.ZodOptional<z.ZodNumber>;
7795
+ visibleThroughGeometry: z.ZodOptional<z.ZodBoolean>;
7796
+ dashed: z.ZodOptional<z.ZodBoolean>;
7696
7797
  }, "strip", z.ZodTypeAny, {
7697
7798
  id?: string | undefined;
7698
7799
  interactive?: boolean | undefined;
@@ -7703,6 +7804,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7703
7804
  nearZoomLevel?: number | undefined;
7704
7805
  farRadius?: number | undefined;
7705
7806
  farZoomLevel?: number | undefined;
7807
+ visibleThroughGeometry?: boolean | undefined;
7808
+ dashed?: boolean | undefined;
7706
7809
  }, {
7707
7810
  id?: string | undefined;
7708
7811
  interactive?: boolean | undefined;
@@ -7713,6 +7816,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7713
7816
  nearZoomLevel?: number | undefined;
7714
7817
  farRadius?: number | undefined;
7715
7818
  farZoomLevel?: number | undefined;
7819
+ visibleThroughGeometry?: boolean | undefined;
7820
+ dashed?: boolean | undefined;
7716
7821
  }>;
7717
7822
  export const featureSchema: z.ZodObject<{
7718
7823
  type: z.ZodEnum<["Feature"]>;
@@ -7773,6 +7878,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7773
7878
  altitudeAdjustment: number;
7774
7879
  displayArrowsOnPath: boolean;
7775
7880
  animateArrowsOnPath: boolean;
7881
+ visibleThroughGeometry: boolean;
7882
+ dashed: boolean;
7776
7883
  /**
7777
7884
  * If the path is vertical it will be rebuilt whenever altitudeDirty = true. This will be set during the first render of the path.
7778
7885
  */
@@ -7849,6 +7956,22 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7849
7956
  active?: string | undefined;
7850
7957
  inactive?: string | undefined;
7851
7958
  }>>;
7959
+ iconSizeInterpolation: z.ZodOptional<z.ZodObject<{
7960
+ nearZoomLevel: z.ZodOptional<z.ZodNumber>;
7961
+ farZoomLevel: z.ZodOptional<z.ZodNumber>;
7962
+ nearScale: z.ZodOptional<z.ZodNumber>;
7963
+ farScale: z.ZodOptional<z.ZodNumber>;
7964
+ }, "strip", z.ZodTypeAny, {
7965
+ nearZoomLevel?: number | undefined;
7966
+ farZoomLevel?: number | undefined;
7967
+ nearScale?: number | undefined;
7968
+ farScale?: number | undefined;
7969
+ }, {
7970
+ nearZoomLevel?: number | undefined;
7971
+ farZoomLevel?: number | undefined;
7972
+ nearScale?: number | undefined;
7973
+ farScale?: number | undefined;
7974
+ }>>;
7852
7975
  }, "strip", z.ZodTypeAny, {
7853
7976
  size?: number | undefined;
7854
7977
  backgroundColor?: {
@@ -7859,6 +7982,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7859
7982
  active?: string | undefined;
7860
7983
  inactive?: string | undefined;
7861
7984
  } | undefined;
7985
+ iconSizeInterpolation?: {
7986
+ nearZoomLevel?: number | undefined;
7987
+ farZoomLevel?: number | undefined;
7988
+ nearScale?: number | undefined;
7989
+ farScale?: number | undefined;
7990
+ } | undefined;
7862
7991
  }, {
7863
7992
  size?: number | undefined;
7864
7993
  backgroundColor?: {
@@ -7869,6 +7998,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7869
7998
  active?: string | undefined;
7870
7999
  inactive?: string | undefined;
7871
8000
  } | undefined;
8001
+ iconSizeInterpolation?: {
8002
+ nearZoomLevel?: number | undefined;
8003
+ farZoomLevel?: number | undefined;
8004
+ nearScale?: number | undefined;
8005
+ farScale?: number | undefined;
8006
+ } | undefined;
7872
8007
  }>>;
7873
8008
  }, "strip", z.ZodTypeAny, {
7874
8009
  text?: {
@@ -7890,6 +8025,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7890
8025
  active?: string | undefined;
7891
8026
  inactive?: string | undefined;
7892
8027
  } | undefined;
8028
+ iconSizeInterpolation?: {
8029
+ nearZoomLevel?: number | undefined;
8030
+ farZoomLevel?: number | undefined;
8031
+ nearScale?: number | undefined;
8032
+ farScale?: number | undefined;
8033
+ } | undefined;
7893
8034
  } | undefined;
7894
8035
  }, {
7895
8036
  text?: {
@@ -7911,6 +8052,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7911
8052
  active?: string | undefined;
7912
8053
  inactive?: string | undefined;
7913
8054
  } | undefined;
8055
+ iconSizeInterpolation?: {
8056
+ nearZoomLevel?: number | undefined;
8057
+ farZoomLevel?: number | undefined;
8058
+ nearScale?: number | undefined;
8059
+ farScale?: number | undefined;
8060
+ } | undefined;
7914
8061
  } | undefined;
7915
8062
  }>>;
7916
8063
  }, "strip", z.ZodTypeAny, {
@@ -7936,6 +8083,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7936
8083
  active?: string | undefined;
7937
8084
  inactive?: string | undefined;
7938
8085
  } | undefined;
8086
+ iconSizeInterpolation?: {
8087
+ nearZoomLevel?: number | undefined;
8088
+ farZoomLevel?: number | undefined;
8089
+ nearScale?: number | undefined;
8090
+ farScale?: number | undefined;
8091
+ } | undefined;
7939
8092
  } | undefined;
7940
8093
  } | undefined;
7941
8094
  }, {
@@ -7961,6 +8114,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7961
8114
  active?: string | undefined;
7962
8115
  inactive?: string | undefined;
7963
8116
  } | undefined;
8117
+ iconSizeInterpolation?: {
8118
+ nearZoomLevel?: number | undefined;
8119
+ farZoomLevel?: number | undefined;
8120
+ nearScale?: number | undefined;
8121
+ farScale?: number | undefined;
8122
+ } | undefined;
7964
8123
  } | undefined;
7965
8124
  } | undefined;
7966
8125
  }>;
@@ -8127,6 +8286,27 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8127
8286
  * @default -Infinity
8128
8287
  */
8129
8288
  iconVisibleAtZoomLevel?: number;
8289
+ /**
8290
+ * Interpolates the icon size based on the zoom level.
8291
+ */
8292
+ iconSizeInterpolation?: {
8293
+ /**
8294
+ * The zoom level closest to the ground, where the icon is at "maxScale"
8295
+ */
8296
+ maxZoomLevel: number;
8297
+ /**
8298
+ * The zoom level farthest from the ground, where the icon is at "minScale"
8299
+ */
8300
+ minZoomLevel: number;
8301
+ /**
8302
+ * The scale of the icon at "maxZoomLevel"
8303
+ */
8304
+ maxScale: number;
8305
+ /**
8306
+ * The scale of the icon at "minZoomLevel"
8307
+ */
8308
+ minScale: number;
8309
+ };
8130
8310
  };
8131
8311
  };
8132
8312
  /**
@@ -8166,6 +8346,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8166
8346
  */
8167
8347
  attachTo?: EntityId<GeometryState> | string | null;
8168
8348
  };
8349
+ export const DEFAULT_ICON_PADDING = 2;
8169
8350
  type TStyle = {
8170
8351
  top?: number;
8171
8352
  left?: number;
@@ -8174,6 +8355,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8174
8355
  textAlign?: TEXTALIGN;
8175
8356
  cachedSymbol?: HTMLCanvasElement;
8176
8357
  };
8358
+ export const isOneOfTextDirtyOptions: (currentAppearance: LabelAppearance, newAppearance: LabelAppearance) => boolean;
8359
+ export const isOneOfMarkerDirtyOptions: (currentAppearance: LabelAppearance, newAppearance: LabelAppearance) => boolean;
8177
8360
  type LabelAppearanceFillenIn = {
8178
8361
  margin: number;
8179
8362
  text: {
@@ -8199,6 +8382,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8199
8382
  iconOverflow: 'visible' | 'hidden';
8200
8383
  icon?: string;
8201
8384
  iconVisibleAtZoomLevel?: number;
8385
+ iconSizeInterpolation?: {
8386
+ maxZoomLevel: number;
8387
+ minZoomLevel: number;
8388
+ maxScale: number;
8389
+ minScale: number;
8390
+ };
8202
8391
  };
8203
8392
  };
8204
8393
  export type LabelOptions = {
@@ -8264,6 +8453,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8264
8453
  verticalOffset: number;
8265
8454
  };
8266
8455
  export class LabelComponent {
8456
+ #private;
8267
8457
  lines: number;
8268
8458
  id: string;
8269
8459
  rank: number;
@@ -8304,8 +8494,14 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8304
8494
  height: number;
8305
8495
  };
8306
8496
  currentStrategyIndex: number;
8307
- totalMarkerSize: number;
8497
+ iconScale: number;
8498
+ get totalMarkerSize(): number;
8499
+ set totalMarkerSize(size: number);
8500
+ get scaledIconPadding(): number;
8501
+ set scaledIconPadding(padding: number);
8308
8502
  dirty: boolean;
8503
+ textDirty: boolean;
8504
+ markerDirty: boolean;
8309
8505
  /** Flag used in 2d-projection system to determine if the parent has changed */
8310
8506
  attachedDirty: boolean;
8311
8507
  collisionDirty: boolean;
@@ -8320,6 +8516,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8320
8516
  get lowPriorityStrategyIndex(): 3 | -1;
8321
8517
  get strategies(): any[];
8322
8518
  animate: boolean;
8519
+ recomputeCurrentStrategy(scale?: number): void;
8323
8520
  onStrategySelected: (strategyIndex: any) => void;
8324
8521
  updatePosition(): void;
8325
8522
  disable(): void;
@@ -8381,6 +8578,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/group-container' {
8381
8578
  * The opacity of the group container, which sets the opacity of all its children
8382
8579
  */
8383
8580
  opacity: number;
8581
+ /**
8582
+ * If true, the group container will preload geometry for its children even when invisible.
8583
+ */
8584
+ readonly preloadGeometry: boolean;
8384
8585
  };
8385
8586
  export class GroupContainerObject3D extends Object3D {
8386
8587
  childrenIds: Set<string | number>;
@@ -8396,6 +8597,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/group-container' {
8396
8597
  opacity: number;
8397
8598
  /** The effective opacity of the entity after all parent containers have been considered. */
8398
8599
  computedOpacity: number;
8600
+ /**
8601
+ * If true, the group container will preload geometry for its children even when invisible.
8602
+ */
8603
+ preloadGeometry: boolean;
8399
8604
  };
8400
8605
  components: [StackComponent?, InteractionComponent?, FocusableComponent?];
8401
8606
  constructor(id: string);
@@ -8404,6 +8609,7 @@ declare module '@mappedin/react-sdk/geojson/src/entities/group-container' {
8404
8609
  removeEntity(entityGroupOrContainer: EntityTypes): void;
8405
8610
  setVisible(visible: boolean): void;
8406
8611
  setAltitude(altitude: number): void;
8612
+ set2DGeometryChildrenPositionDirty(): void;
8407
8613
  get altitude(): number;
8408
8614
  setOpacity(opacity: number): void;
8409
8615
  get opacity(): number;
@@ -8853,6 +9059,7 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
8853
9059
  cameraObject: Camera;
8854
9060
  naturalBearing: number;
8855
9061
  containerOffset: [number, number];
9062
+ useStandaloneCamera: boolean;
8856
9063
  };
8857
9064
  /**
8858
9065
  * All of the entities in the scene
@@ -8916,8 +9123,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
8916
9123
  import { BatchedMesh, Color, Vector3 } from 'three';
8917
9124
  import type { BatchedStandardMaterial } from '@mappedin/react-sdk/geojson/src/systems/mesh-creation-and-optimization/batched-material';
8918
9125
  import type { EntityId, Position } from '@mappedin/react-sdk/geojson/src/types';
8919
- import type { Feature, LineString, MultiLineString, MultiPolygon, Polygon, Position as GeoJsonPosition } from 'geojson';
8920
- import type { BBox } from '@turf/turf';
9126
+ import type { Feature, LineString, MultiLineString, MultiPolygon, Polygon, Position as GeoJsonPosition, BBox } from 'geojson';
8921
9127
  import { type ImageProperties } from '@mappedin/react-sdk/geojson/src/components/image';
8922
9128
  import { type BaseTextAreaProperties, type EnterpriseTexture } from '@mappedin/mvf-v2';
8923
9129
  import type { Text } from 'troika-three-text';
@@ -9149,15 +9355,15 @@ declare module '@mappedin/react-sdk/geojson/src/components/custom' {
9149
9355
  constructor(feature: Feature<Point>, builder: CustomGeometryBuilder);
9150
9356
  get visible(): boolean;
9151
9357
  set visible(value: boolean);
9152
- set opacity(_v: number);
9358
+ set opacity(value: number);
9153
9359
  get opacity(): number;
9154
9360
  color: Color;
9155
- setColor(): void;
9361
+ setColor(color: string): void;
9156
9362
  get position(): import("three").Vector3;
9157
9363
  get altitude(): number;
9158
9364
  set altitude(value: number);
9159
9365
  get renderOrder(): number;
9160
- set renderOrder(_: number);
9366
+ set renderOrder(value: number);
9161
9367
  }
9162
9368
  }
9163
9369
 
@@ -9580,6 +9786,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
9580
9786
  altitude?: number;
9581
9787
  interactive?: boolean;
9582
9788
  focusable?: boolean;
9789
+ preloadGeometry?: boolean;
9583
9790
  }, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<GroupContainerState>;
9584
9791
  addStackContainer(id: string, style?: {
9585
9792
  visible?: true;
@@ -10625,10 +10832,13 @@ declare module '@mappedin/react-sdk/geojson/src/utils/constants' {
10625
10832
  import type { InsetPadding } from '@mappedin/react-sdk/geojson/src/types';
10626
10833
  export const DEFAULT_INSET_PADDING: InsetPadding;
10627
10834
  export const MAPPEDIN_LAYER_ID = "mappedin";
10628
- export enum ENTITY_3D_LAYERS {
10835
+ export enum RAYCAST_LAYERS {
10629
10836
  DEFAULT = 0,
10630
10837
  OUTLINES = 1
10631
10838
  }
10839
+ export const RENDER_LAYERS: {
10840
+ ALWAYS_ON_TOP: number;
10841
+ };
10632
10842
  /**
10633
10843
  * Duration of zoom in/out animation when double tapping with one finger or single tapping with two fingers.
10634
10844
  */
@@ -10781,8 +10991,8 @@ declare module '@mappedin/react-sdk/geojson/src/systems/watermark/system' {
10781
10991
  visible?: boolean;
10782
10992
  };
10783
10993
  export type WatermarkUpdateOptions = Omit<WatermarkOptions, 'onClick' | 'visible'> & {
10784
- /** Show the Mappedin watermark. Once it is visible it cannot be hidden again. */
10785
- visible?: true;
10994
+ /** Show the Mappedin watermark. */
10995
+ visible?: boolean;
10786
10996
  /** Set the interactivity of the watermark. */
10787
10997
  interactive?: boolean;
10788
10998
  };
@@ -11015,7 +11225,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
11015
11225
  import type { ParsedMVF } from '@mappedin/mvf-v2';
11016
11226
  import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
11017
11227
  import { PubSub } from '@packages/internal/common';
11018
- import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId } from '@mappedin/core-sdk';
11228
+ import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId, Text3DState } from '@mappedin/core-sdk';
11019
11229
  import { FloorObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object';
11020
11230
  import type { Directions, Floor, TAddMarkerOptions, TAddPathOptions, TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
11021
11231
  import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddImageOptions, TDirectionInstruction, TAddText3DOptions, IAnchorable, TAddLabelOptions } from '@mappedin/react-sdk/mappedin-js/src/types';
@@ -11027,7 +11237,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
11027
11237
  import { Space, Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
11028
11238
  import { type GeoJsonApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/api';
11029
11239
  import { FloorStackObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-stack-object';
11030
- import type { Text3DState } from '@mappedin/core-sdk/src/components/text3d';
11031
11240
  export class GeojsonApiMapObject extends PubSub<{
11032
11241
  'floor-change': {
11033
11242
  reason?: TFloorChangeReason;
@@ -11079,7 +11288,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
11079
11288
  Images: {
11080
11289
  add: (target: Position, url: string, opts: TAddImageOptions & {
11081
11290
  floorId?: string;
11082
- }) => EntityId<import("@mappedin/core-sdk/src/components/image").ImageState> | undefined;
11291
+ }) => EntityId<import("../../../geojson/src/components/image").ImageState> | undefined;
11083
11292
  remove: (id: string) => void;
11084
11293
  removeAll: () => void;
11085
11294
  };
@@ -12798,7 +13007,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12798
13007
  sendGetDirectionsEvent: (start: string, end: string) => void;
12799
13008
  sendBlueDotEvents(event: BlueDotEvents): void | Promise<Response> | Promise<void>;
12800
13009
  }
12801
- type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId'>>;
13010
+ type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId' | 'deviceId'>>;
12802
13011
  type CaptureEventsPayloadMap = {
12803
13012
  '$select-location': {
12804
13013
  id: string;
@@ -12852,10 +13061,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12852
13061
  noAuth: boolean;
12853
13062
  /** Flag to enable geolocation mode. */
12854
13063
  geolocationMode: boolean;
12855
- /** The device ID to be used for analytics. */
12856
- deviceId: string;
12857
- /** The session ID to be used for analytics. */
12858
- sessionId: string;
12859
13064
  /** The context in which the analytics are being used. */
12860
13065
  context: ValidContext;
12861
13066
  /** The last known user position. */
@@ -12866,7 +13071,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12866
13071
  logEvents: boolean;
12867
13072
  /** Flag to enable sending of events. */
12868
13073
  sendEvents: boolean;
12869
- } & AnalyticsAuth;
13074
+ /** The API key for authentication. */
13075
+ key?: string;
13076
+ /** The API secret for authentication. */
13077
+ secret?: string;
13078
+ /** The access token for authentication. */
13079
+ accessToken?: string;
13080
+ };
12870
13081
  }
12871
13082
  type AnalyticsUserPosition = {
12872
13083
  bluedotTimestamp: number;
@@ -12895,9 +13106,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12895
13106
  noAuth: boolean;
12896
13107
  /** Flag to enable geolocation mode. */
12897
13108
  geolocationMode: boolean;
12898
- /** The device ID to be used for analytics. */
13109
+ /** @internal The device ID to be used for analytics. */
12899
13110
  deviceId: string;
12900
- /** The session ID to be used for analytics. */
13111
+ /** @internal The session ID to be used for analytics. */
12901
13112
  sessionId: string;
12902
13113
  /** The context in which the analytics are being used. */
12903
13114
  context: ValidContext;
@@ -12920,6 +13131,16 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12920
13131
  export {};
12921
13132
  }
12922
13133
 
13134
+ declare module '@mappedin/react-sdk/packages/common/types' {
13135
+ type Primitive = string | number | boolean | null | undefined;
13136
+ export type PartialExcept<T, K extends string> = {
13137
+ [P in keyof T as P extends K ? P : never]: T[P];
13138
+ } & {
13139
+ [P in keyof T as P extends K ? never : P]?: T[P] extends Primitive ? T[P] : T[P] extends (infer U)[] ? PartialExcept<U, K>[] : PartialExcept<T[P], K>;
13140
+ };
13141
+ export {};
13142
+ }
13143
+
12923
13144
  declare module '@mappedin/react-sdk/packages/mvf-utils/tokens/access-token' {
12924
13145
  import { type TGetMapDataWithCredentialsOptions } from '@mappedin/react-sdk/packages/mvf-utils/mvf-utils';
12925
13146
  export const ACCESS_TOKEN_REFRESH_BUFFER_MINUTES = 60;
@@ -13212,10 +13433,6 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry3d' {
13212
13433
  type: 'b';
13213
13434
  value: boolean;
13214
13435
  };
13215
- flattenFactor: {
13216
- type: 'f';
13217
- value: number;
13218
- };
13219
13436
  showPulse: {
13220
13437
  type: 'b';
13221
13438
  value: boolean;
@@ -13224,6 +13441,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry3d' {
13224
13441
  type: 'f';
13225
13442
  value: number;
13226
13443
  };
13444
+ dashed: {
13445
+ type: 'b';
13446
+ value: boolean;
13447
+ };
13227
13448
  }
13228
13449
  export {};
13229
13450
  }
@@ -13248,16 +13469,18 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry2d' {
13248
13469
  /** The geometry3D that this 2D entity is attached to */
13249
13470
  get attachedTo(): string | number | undefined;
13250
13471
  verticalOffset: number;
13251
- /**
13252
- * When the position of the entity changes, this should be set to true, so that systems like pan bounds can update
13253
- */
13254
- positionDirty: boolean;
13255
13472
  occluderId?: number;
13256
13473
  object3d: Geometry2DObject3D;
13257
13474
  components: [MarkerComponent | LabelComponent, InteractionComponent?];
13258
13475
  disposed: boolean;
13259
13476
  constructor(ui: MarkerComponent | LabelComponent, position: Vector3, verticalOffset?: number);
13260
13477
  get position(): Vector3;
13478
+ /**
13479
+ * When the position of the entity changes, this should be set to true, so that systems like pan bounds can update
13480
+ */
13481
+ get positionDirty(): boolean;
13482
+ set positionDirty(value: boolean);
13483
+ updatePosition(position: Vector3): void;
13261
13484
  setAltitude(z: number): void;
13262
13485
  }
13263
13486
  }
@@ -13517,6 +13740,7 @@ declare module '@mappedin/react-sdk/geojson/src/types/options' {
13517
13740
  map?: MapLibreMap;
13518
13741
  mode?: 'standalone' | 'outdoors-interleaved' | 'outdoors-overlay';
13519
13742
  antialias?: boolean;
13743
+ useStandaloneCamera?: boolean;
13520
13744
  onWebGLRendererError?: (error: Error) => void;
13521
13745
  onWebGLContextCreationError?: (event: Event) => void;
13522
13746
  onWebGLContextLost?: (event: Event) => void;
@@ -13806,7 +14030,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-draw/system' {
13806
14030
  };
13807
14031
  textToCanvas: (textDrawFn: (ctx: CanvasRenderingContext2D, x: number, y: number) => void, size: number, textAlign: TEXTALIGN, width: number, height: number, foregroundColor: string, backgroundColor: string) => any;
13808
14032
  cacheImage: (label: LabelComponent) => void;
13809
- createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string) => HTMLCanvasElement | OffscreenCanvas;
14033
+ createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
13810
14034
  prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
13811
14035
  draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D): void;
13812
14036
  }
@@ -14130,7 +14354,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/outline-interpolation/sy
14130
14354
  * @param zoomLevel - The current zoom level.
14131
14355
  * @param isCameraZoomDirty - Whether the zoom level has changed since the last update. If this is true, the system will update if zoomLevel falls between range.
14132
14356
  */
14133
- update(zoomLevel: number, isCameraZoomDirty?: boolean): null | undefined;
14357
+ update(zoomLevel: number, isCameraZoomDirty?: boolean): void;
14134
14358
  destroy(): void;
14135
14359
  }
14136
14360
  }
@@ -14880,6 +15104,10 @@ declare module '@mappedin/react-sdk/geojson/src/services/text3d/utils' {
14880
15104
  size: [width: number, height: number];
14881
15105
  }>;
14882
15106
  export function syncText(text: Text): Promise<void>;
15107
+ /**
15108
+ * Loads the default font without additional preprocessing
15109
+ */
15110
+ export function loadDefaultFont(): Promise<string>;
14883
15111
  }
14884
15112
 
14885
15113
  declare module '@mappedin/react-sdk/geojson/src/systems/interactions/system' {
@@ -23488,7 +23716,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/path/system' {
23488
23716
  getParentContainer: RendererCore['getParentContainer'];
23489
23717
  convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude'];
23490
23718
  constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer'], convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude']);
23491
- update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
23719
+ update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number, orbitZRotation?: number): void;
23492
23720
  }
23493
23721
  }
23494
23722
 
@@ -23498,6 +23726,7 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator' {
23498
23726
 
23499
23727
  declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator/navigator' {
23500
23728
  import type { Position, Feature, MultiPolygon, Polygon } from 'geojson';
23729
+ import { Edge } from '@mappedin/react-sdk/packages/geojson-navigator/src/edge';
23501
23730
  import { NavigationGraph } from '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph';
23502
23731
  import type { NodeCollection } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
23503
23732
  import type { ObstructionCollection } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/obstruction';
@@ -23559,7 +23788,7 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator/nav
23559
23788
  * @param {SimplifyDirectionsOptions} [simplify] - Options to simplify the pathfinding result.
23560
23789
  * @returns {DirectionsCollection} A collection of directional features representing the path.
23561
23790
  */
23562
- getDirections({ zones: directionsZones, originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, simplify, multiplicativeDistanceWeightScaling, }: {
23791
+ getDirections({ zones: directionsZones, originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, simplify, multiplicativeDistanceWeightScaling, overrideEdgeWeights, }: {
23563
23792
  originIds: string[];
23564
23793
  destinationNodeIds: string[];
23565
23794
  zones?: DirectionsZone[];
@@ -23567,6 +23796,7 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator/nav
23567
23796
  disabledConnectionNodeIds?: string[];
23568
23797
  simplify?: SimplifyDirectionsOptions;
23569
23798
  multiplicativeDistanceWeightScaling?: boolean;
23799
+ overrideEdgeWeights?: Map<Edge, number>;
23570
23800
  }): DirectionsCollection;
23571
23801
  /**
23572
23802
  * Calculates the approximate distance between two geographic coordinates on Earth's surface.
@@ -27281,6 +27511,10 @@ declare module '@mappedin/react-sdk/packages/outdoor-context-v4/ui/handler/tap_z
27281
27511
  }
27282
27512
  }
27283
27513
 
27514
+ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/edge' {
27515
+ export * from '@mappedin/react-sdk/packages/geojson-navigator/src/edge/edge';
27516
+ }
27517
+
27284
27518
  declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph' {
27285
27519
  export * from '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph/navigation-graph';
27286
27520
  }
@@ -27297,10 +27531,6 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/types/space'
27297
27531
  export { SpaceCollection, SpaceProperties };
27298
27532
  }
27299
27533
 
27300
- declare module '@mappedin/react-sdk/packages/geojson-navigator/src/edge' {
27301
- export * from '@mappedin/react-sdk/packages/geojson-navigator/src/edge/edge';
27302
- }
27303
-
27304
27534
  declare module '@mappedin/react-sdk/geojson/src/systems/camera/helpers/input-set' {
27305
27535
  import type { Vector2 } from 'three';
27306
27536
  class InputSet {
@@ -29961,6 +30191,42 @@ declare module '@mappedin/react-sdk/packages/outdoor-context-v4/source/terrain_s
29961
30191
  }
29962
30192
  }
29963
30193
 
30194
+ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/edge/edge' {
30195
+ import type { NodeFeature } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
30196
+ /**
30197
+ * Represents an edge in a graph, containing data about its endpoints and metrics like distance and angle.
30198
+ * @hidden
30199
+ */
30200
+ export class Edge {
30201
+ /** The originating node of the edge */
30202
+ origin: NodeFeature;
30203
+ /** The destination node of the edge */
30204
+ destination: NodeFeature;
30205
+ /** The distance between the origin and the destination nodes */
30206
+ distance: number;
30207
+ /** The angle of the edge with respect to some reference, in degrees */
30208
+ angle: number;
30209
+ /** A composite weight of the edge, combining distance and a custom path weight */
30210
+ weight: number;
30211
+ /**
30212
+ * Constructs a new Edge instance.
30213
+ * @param {NodeFeature} origin - The originating node of the edge.
30214
+ * @param {NodeFeature} destination - The destination node of the edge.
30215
+ * @param {number} [distance=0] - The physical distance between the origin and destination.
30216
+ * @param {number} [angle=0] - The angle of the edge in degrees.
30217
+ * @param {number} [pathWeight=0] - An additional weight factor for the path.
30218
+ */
30219
+ constructor({ origin, destination, distance, angle, pathWeight, multiplicativeDistanceWeightScaling, }: {
30220
+ origin: NodeFeature;
30221
+ destination: NodeFeature;
30222
+ distance?: number;
30223
+ angle?: number;
30224
+ pathWeight?: number;
30225
+ multiplicativeDistanceWeightScaling?: boolean;
30226
+ });
30227
+ }
30228
+ }
30229
+
29964
30230
  declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph/navigation-graph' {
29965
30231
  import { Edge } from '@mappedin/react-sdk/packages/geojson-navigator/src/edge';
29966
30232
  import type { NodeCollection, NodeFeature } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
@@ -30001,52 +30267,17 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-gr
30001
30267
  * @param {Set<string>} [disabledConnectionNodeIds] - Optional set of connection node IDs that are disabled (ie. act as regular nodes).
30002
30268
  * @returns {Edge[]} An array of edges representing the shortest path, or an empty array if no path is found.
30003
30269
  */
30004
- aStar({ originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, zones, }: {
30270
+ aStar({ originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, zones, overrideEdgeWeights, }: {
30005
30271
  originIds: string[];
30006
30272
  destinationNodeIds: string[];
30007
30273
  zones: DirectionsZone[];
30008
30274
  excludedNodeIds?: Set<string>;
30009
30275
  disabledConnectionNodeIds?: Set<string>;
30276
+ overrideEdgeWeights?: Map<Edge, number>;
30010
30277
  }): Edge[];
30011
30278
  }
30012
30279
  }
30013
30280
 
30014
- declare module '@mappedin/react-sdk/packages/geojson-navigator/src/edge/edge' {
30015
- import type { NodeFeature } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
30016
- /**
30017
- * Represents an edge in a graph, containing data about its endpoints and metrics like distance and angle.
30018
- * @hidden
30019
- */
30020
- export class Edge {
30021
- /** The originating node of the edge */
30022
- origin: NodeFeature;
30023
- /** The destination node of the edge */
30024
- destination: NodeFeature;
30025
- /** The distance between the origin and the destination nodes */
30026
- distance: number;
30027
- /** The angle of the edge with respect to some reference, in degrees */
30028
- angle: number;
30029
- /** A composite weight of the edge, combining distance and a custom path weight */
30030
- weight: number;
30031
- /**
30032
- * Constructs a new Edge instance.
30033
- * @param {NodeFeature} origin - The originating node of the edge.
30034
- * @param {NodeFeature} destination - The destination node of the edge.
30035
- * @param {number} [distance=0] - The physical distance between the origin and destination.
30036
- * @param {number} [angle=0] - The angle of the edge in degrees.
30037
- * @param {number} [pathWeight=0] - An additional weight factor for the path.
30038
- */
30039
- constructor({ origin, destination, distance, angle, pathWeight, multiplicativeDistanceWeightScaling, }: {
30040
- origin: NodeFeature;
30041
- destination: NodeFeature;
30042
- distance?: number;
30043
- angle?: number;
30044
- pathWeight?: number;
30045
- multiplicativeDistanceWeightScaling?: boolean;
30046
- });
30047
- }
30048
- }
30049
-
30050
30281
  declare module '@mappedin/react-sdk/packages/outdoor-context-v4/data/feature_position_map' {
30051
30282
  type SerializedFeaturePositionMap = {
30052
30283
  ids: Float64Array;