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

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 (34) hide show
  1. package/THIRD_PARTY_LICENSES.txt +2166 -27800
  2. package/lib/esm/{GLTFExporter-HAEOIORD.js → GLTFExporter-7OZO7OAN.js} +1 -1
  3. package/lib/esm/GLTFLoader-BTM3ARCC.js +1 -0
  4. package/lib/esm/{browser-LDR6NMTB.js → browser-RWOI5BLY.js} +1 -1
  5. package/lib/esm/chunk-3DLWMSMA.js +1 -0
  6. package/lib/esm/{chunk-A4BAKOBA.js → chunk-7WCA75NG.js} +1 -1
  7. package/lib/esm/chunk-MH6J7HN7.js +1 -0
  8. package/lib/esm/chunk-NS37OT4J.js +1 -0
  9. package/lib/esm/chunk-OEBM7FFM.js +1 -0
  10. package/lib/esm/chunk-PEDEW3M6.js +1 -0
  11. package/lib/esm/chunk-SB6JFH4C.js +1 -0
  12. package/lib/esm/index.css +1 -1
  13. package/lib/esm/index.d.ts +257 -74
  14. package/lib/esm/index.js +1 -1
  15. package/lib/esm/inspector-WRNBK432.js +1 -0
  16. package/lib/esm/inspector-WWR77OPX.css +1 -0
  17. package/lib/esm/internal-KFN6TGNE.js +1 -0
  18. package/lib/esm/internal-M7DPGYMI.css +1 -0
  19. package/lib/esm/{outdoor-context-v4-NRZ3P73G.js → outdoor-context-v4-T22T5B5J.js} +1 -1
  20. package/lib/esm/{roboto-regular-B567NWMQ.js → roboto-regular-3HSVPIGX.js} +1 -1
  21. package/lib/esm/text3d-LSJE37UM.js +1 -0
  22. package/package.json +6 -6
  23. package/lib/esm/GLTFLoader-3AR2NA3D.js +0 -1
  24. package/lib/esm/chunk-2OY65JNC.js +0 -1
  25. package/lib/esm/chunk-GQRZXW47.js +0 -1
  26. package/lib/esm/chunk-HQPJR25Y.js +0 -1
  27. package/lib/esm/chunk-K5IZJL77.js +0 -1
  28. package/lib/esm/chunk-QARZ2ADL.js +0 -1
  29. package/lib/esm/chunk-QZW6TJU7.js +0 -1
  30. package/lib/esm/inspector-6WW7AUZN.js +0 -1
  31. package/lib/esm/inspector-GOK26VAV.css +0 -1
  32. package/lib/esm/internal-65CA5CF2.js +0 -1
  33. package/lib/esm/internal-7A3UJNAV.css +0 -1
  34. 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
@@ -319,6 +316,22 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
319
316
  * @internal
320
317
  */
321
318
  onWebGLRendererError?: (error: Error) => void;
319
+ /**
320
+ * @experimental
321
+ * @internal
322
+ *
323
+ * If true, the map will use a standalone camera for rendering instead of syncing with MapLibre's camera.
324
+ * This enables environment map reflections to update with camera movement in interleaved and overlay modes.
325
+ * Note: This disables building occlusion since the depth buffer is no longer synchronized with MapLibre.
326
+ *
327
+ * @default false
328
+ */
329
+ useStandaloneCamera?: boolean;
330
+ /**
331
+ *
332
+ * Preload floors for the map. Allows floors to appear faster but requires more time and memory up front.
333
+ */
334
+ preloadFloors?: Floor[];
322
335
  };
323
336
  /**
324
337
  * @internal
@@ -1698,6 +1711,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
1698
1711
  * @param floorStack The floor stack or floor stack ID to set.
1699
1712
  */
1700
1713
  setFloorStack(floorStack: FloorStack | string, options?: TSetFloorOptions): void;
1714
+ /**
1715
+ * 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
1716
+ * keep the map responsive.
1717
+ * @param floors The floors to preload.
1718
+ */
1719
+ preloadFloors(floors: Floor[]): void;
1701
1720
  /**
1702
1721
  * Create a tween object that will be updated on every render frame.
1703
1722
  * See https://tweenjs.github.io/tween.js/docs/user_guide.html for more information.
@@ -2336,10 +2355,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2336
2355
  * The color of the path.
2337
2356
  */
2338
2357
  color: string;
2339
- /**
2340
- * The complete fraction of the path.
2341
- */
2342
- completeFraction: number;
2343
2358
  /**
2344
2359
  * The near radius of the path.
2345
2360
  */
@@ -2348,6 +2363,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2348
2363
  * The far radius of the path.
2349
2364
  */
2350
2365
  farRadius: number;
2366
+ /**
2367
+ * The fraction of the path that should be complete. This can be used to animate the path.
2368
+ */
2369
+ completeFraction: number;
2351
2370
  /**
2352
2371
  * Whether the path is visible.
2353
2372
  */
@@ -2774,6 +2793,26 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2774
2793
  * @defaultValue -Infinite
2775
2794
  */
2776
2795
  minAdjustedAltitude?: number;
2796
+ /**
2797
+ * Whether the path should be dashed.
2798
+ *
2799
+ * @defaultValue false
2800
+ */
2801
+ dashed?: boolean;
2802
+ /**
2803
+ * Whether the path should be visible.
2804
+ *
2805
+ * @defaultValue true
2806
+ */
2807
+ visible?: boolean;
2808
+ /**
2809
+ * @internal
2810
+ *
2811
+ * Whether the path should be visible through geometry. Can be used to create paths that are visible through walls and floors.
2812
+ *
2813
+ * @defaultValue false
2814
+ */
2815
+ visibleThroughGeometry?: boolean;
2777
2816
  };
2778
2817
  /**
2779
2818
  * Control how a {@link Label} looks
@@ -2871,6 +2910,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2871
2910
  * If there is no path that does not include the these connections, the directions will be undefined.
2872
2911
  */
2873
2912
  excludedConnections?: Connection[];
2913
+ /**
2914
+ * Override the default weights for specific connection ids.
2915
+ */
2916
+ connectionIdWeightMap?: Record<string, number>;
2874
2917
  };
2875
2918
  /**
2876
2919
  * The target for the add model operation.
@@ -3955,6 +3998,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/api' {
3955
3998
  Images: Images;
3956
3999
  get StackedMaps(): import("..").StackedMaps;
3957
4000
  constructor(rendererCore: RendererCore, mapView: MapView);
4001
+ preloadFloors(floors: Floor[]): void;
3958
4002
  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
4003
  update: () => void;
3960
4004
  getMapDataInternal(): MapDataInternal | undefined;
@@ -4168,6 +4212,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions' {
4168
4212
  };
4169
4213
  zones: TDirectionZone[];
4170
4214
  excludedConnections: Connection[];
4215
+ connectionIdWeightMap: Record<string, number>;
4171
4216
  }, mapData: MapDataInternal) => Directions | undefined;
4172
4217
  /**
4173
4218
  * Get the node IDs that should be excluded from the navigation graph.
@@ -4206,11 +4251,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
4206
4251
  import type Connection from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection';
4207
4252
  import type MapObject from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object';
4208
4253
  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';
4254
+ import type { PartialExcept } from '@mappedin/react-sdk/packages/common/types';
4210
4255
  import type { LocalePackUrls } from '@packages/internal/mvf-utils';
4211
4256
  import type { LanguagePackHydrationItem } from '@mappedin/react-sdk/mappedin-js/src/types';
4212
4257
  import type { EnvControl, TGetMapDataOptions } from '@packages/internal/mvf-utils/mvf-utils';
4213
- import { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
4258
+ import type { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
4214
4259
  /**
4215
4260
  * Places are the main objects that can be searched for.
4216
4261
  */
@@ -6682,6 +6727,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
6682
6727
  * The type of the location.
6683
6728
  */
6684
6729
  type: string;
6730
+ /**
6731
+ * Whether the location has been marked as hidden.
6732
+ */
6733
+ hidden: boolean;
6685
6734
  /**
6686
6735
  * Checks if the provided instance is of type EnterpriseLocation.
6687
6736
  *
@@ -7682,6 +7731,14 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7682
7731
  * Arrows on path should animate to indicate direction
7683
7732
  */
7684
7733
  animateArrowsOnPath?: boolean;
7734
+ /**
7735
+ * Whether the path should be visible through geometry.
7736
+ */
7737
+ visibleThroughGeometry?: boolean;
7738
+ /**
7739
+ * Whether the path should be dashed.
7740
+ */
7741
+ dashed?: boolean;
7685
7742
  };
7686
7743
  export const addPathOptionsSchema: z.ZodObject<{
7687
7744
  interactive: z.ZodOptional<z.ZodBoolean>;
@@ -7693,6 +7750,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7693
7750
  animateArrowsOnPath: z.ZodOptional<z.ZodBoolean>;
7694
7751
  nearZoomLevel: z.ZodOptional<z.ZodNumber>;
7695
7752
  farZoomLevel: z.ZodOptional<z.ZodNumber>;
7753
+ visibleThroughGeometry: z.ZodOptional<z.ZodBoolean>;
7754
+ dashed: z.ZodOptional<z.ZodBoolean>;
7696
7755
  }, "strip", z.ZodTypeAny, {
7697
7756
  id?: string | undefined;
7698
7757
  interactive?: boolean | undefined;
@@ -7703,6 +7762,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7703
7762
  nearZoomLevel?: number | undefined;
7704
7763
  farRadius?: number | undefined;
7705
7764
  farZoomLevel?: number | undefined;
7765
+ visibleThroughGeometry?: boolean | undefined;
7766
+ dashed?: boolean | undefined;
7706
7767
  }, {
7707
7768
  id?: string | undefined;
7708
7769
  interactive?: boolean | undefined;
@@ -7713,6 +7774,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7713
7774
  nearZoomLevel?: number | undefined;
7714
7775
  farRadius?: number | undefined;
7715
7776
  farZoomLevel?: number | undefined;
7777
+ visibleThroughGeometry?: boolean | undefined;
7778
+ dashed?: boolean | undefined;
7716
7779
  }>;
7717
7780
  export const featureSchema: z.ZodObject<{
7718
7781
  type: z.ZodEnum<["Feature"]>;
@@ -7773,6 +7836,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
7773
7836
  altitudeAdjustment: number;
7774
7837
  displayArrowsOnPath: boolean;
7775
7838
  animateArrowsOnPath: boolean;
7839
+ visibleThroughGeometry: boolean;
7840
+ dashed: boolean;
7776
7841
  /**
7777
7842
  * If the path is vertical it will be rebuilt whenever altitudeDirty = true. This will be set during the first render of the path.
7778
7843
  */
@@ -7849,6 +7914,22 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7849
7914
  active?: string | undefined;
7850
7915
  inactive?: string | undefined;
7851
7916
  }>>;
7917
+ iconSizeInterpolation: z.ZodOptional<z.ZodObject<{
7918
+ nearZoomLevel: z.ZodOptional<z.ZodNumber>;
7919
+ farZoomLevel: z.ZodOptional<z.ZodNumber>;
7920
+ nearScale: z.ZodOptional<z.ZodNumber>;
7921
+ farScale: z.ZodOptional<z.ZodNumber>;
7922
+ }, "strip", z.ZodTypeAny, {
7923
+ nearZoomLevel?: number | undefined;
7924
+ farZoomLevel?: number | undefined;
7925
+ nearScale?: number | undefined;
7926
+ farScale?: number | undefined;
7927
+ }, {
7928
+ nearZoomLevel?: number | undefined;
7929
+ farZoomLevel?: number | undefined;
7930
+ nearScale?: number | undefined;
7931
+ farScale?: number | undefined;
7932
+ }>>;
7852
7933
  }, "strip", z.ZodTypeAny, {
7853
7934
  size?: number | undefined;
7854
7935
  backgroundColor?: {
@@ -7859,6 +7940,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7859
7940
  active?: string | undefined;
7860
7941
  inactive?: string | undefined;
7861
7942
  } | undefined;
7943
+ iconSizeInterpolation?: {
7944
+ nearZoomLevel?: number | undefined;
7945
+ farZoomLevel?: number | undefined;
7946
+ nearScale?: number | undefined;
7947
+ farScale?: number | undefined;
7948
+ } | undefined;
7862
7949
  }, {
7863
7950
  size?: number | undefined;
7864
7951
  backgroundColor?: {
@@ -7869,6 +7956,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7869
7956
  active?: string | undefined;
7870
7957
  inactive?: string | undefined;
7871
7958
  } | undefined;
7959
+ iconSizeInterpolation?: {
7960
+ nearZoomLevel?: number | undefined;
7961
+ farZoomLevel?: number | undefined;
7962
+ nearScale?: number | undefined;
7963
+ farScale?: number | undefined;
7964
+ } | undefined;
7872
7965
  }>>;
7873
7966
  }, "strip", z.ZodTypeAny, {
7874
7967
  text?: {
@@ -7890,6 +7983,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7890
7983
  active?: string | undefined;
7891
7984
  inactive?: string | undefined;
7892
7985
  } | undefined;
7986
+ iconSizeInterpolation?: {
7987
+ nearZoomLevel?: number | undefined;
7988
+ farZoomLevel?: number | undefined;
7989
+ nearScale?: number | undefined;
7990
+ farScale?: number | undefined;
7991
+ } | undefined;
7893
7992
  } | undefined;
7894
7993
  }, {
7895
7994
  text?: {
@@ -7911,6 +8010,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7911
8010
  active?: string | undefined;
7912
8011
  inactive?: string | undefined;
7913
8012
  } | undefined;
8013
+ iconSizeInterpolation?: {
8014
+ nearZoomLevel?: number | undefined;
8015
+ farZoomLevel?: number | undefined;
8016
+ nearScale?: number | undefined;
8017
+ farScale?: number | undefined;
8018
+ } | undefined;
7914
8019
  } | undefined;
7915
8020
  }>>;
7916
8021
  }, "strip", z.ZodTypeAny, {
@@ -7936,6 +8041,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7936
8041
  active?: string | undefined;
7937
8042
  inactive?: string | undefined;
7938
8043
  } | undefined;
8044
+ iconSizeInterpolation?: {
8045
+ nearZoomLevel?: number | undefined;
8046
+ farZoomLevel?: number | undefined;
8047
+ nearScale?: number | undefined;
8048
+ farScale?: number | undefined;
8049
+ } | undefined;
7939
8050
  } | undefined;
7940
8051
  } | undefined;
7941
8052
  }, {
@@ -7961,6 +8072,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
7961
8072
  active?: string | undefined;
7962
8073
  inactive?: string | undefined;
7963
8074
  } | undefined;
8075
+ iconSizeInterpolation?: {
8076
+ nearZoomLevel?: number | undefined;
8077
+ farZoomLevel?: number | undefined;
8078
+ nearScale?: number | undefined;
8079
+ farScale?: number | undefined;
8080
+ } | undefined;
7964
8081
  } | undefined;
7965
8082
  } | undefined;
7966
8083
  }>;
@@ -8127,6 +8244,27 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8127
8244
  * @default -Infinity
8128
8245
  */
8129
8246
  iconVisibleAtZoomLevel?: number;
8247
+ /**
8248
+ * Interpolates the icon size based on the zoom level.
8249
+ */
8250
+ iconSizeInterpolation?: {
8251
+ /**
8252
+ * The zoom level closest to the ground, where the icon is at "maxScale"
8253
+ */
8254
+ maxZoomLevel: number;
8255
+ /**
8256
+ * The zoom level farthest from the ground, where the icon is at "minScale"
8257
+ */
8258
+ minZoomLevel: number;
8259
+ /**
8260
+ * The scale of the icon at "maxZoomLevel"
8261
+ */
8262
+ maxScale: number;
8263
+ /**
8264
+ * The scale of the icon at "minZoomLevel"
8265
+ */
8266
+ minScale: number;
8267
+ };
8130
8268
  };
8131
8269
  };
8132
8270
  /**
@@ -8166,6 +8304,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8166
8304
  */
8167
8305
  attachTo?: EntityId<GeometryState> | string | null;
8168
8306
  };
8307
+ export const DEFAULT_ICON_PADDING = 2;
8169
8308
  type TStyle = {
8170
8309
  top?: number;
8171
8310
  left?: number;
@@ -8174,6 +8313,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8174
8313
  textAlign?: TEXTALIGN;
8175
8314
  cachedSymbol?: HTMLCanvasElement;
8176
8315
  };
8316
+ export const isOneOfTextDirtyOptions: (currentAppearance: LabelAppearance, newAppearance: LabelAppearance) => boolean;
8317
+ export const isOneOfMarkerDirtyOptions: (currentAppearance: LabelAppearance, newAppearance: LabelAppearance) => boolean;
8177
8318
  type LabelAppearanceFillenIn = {
8178
8319
  margin: number;
8179
8320
  text: {
@@ -8199,6 +8340,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8199
8340
  iconOverflow: 'visible' | 'hidden';
8200
8341
  icon?: string;
8201
8342
  iconVisibleAtZoomLevel?: number;
8343
+ iconSizeInterpolation?: {
8344
+ maxZoomLevel: number;
8345
+ minZoomLevel: number;
8346
+ maxScale: number;
8347
+ minScale: number;
8348
+ };
8202
8349
  };
8203
8350
  };
8204
8351
  export type LabelOptions = {
@@ -8264,6 +8411,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8264
8411
  verticalOffset: number;
8265
8412
  };
8266
8413
  export class LabelComponent {
8414
+ #private;
8267
8415
  lines: number;
8268
8416
  id: string;
8269
8417
  rank: number;
@@ -8304,8 +8452,14 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8304
8452
  height: number;
8305
8453
  };
8306
8454
  currentStrategyIndex: number;
8307
- totalMarkerSize: number;
8455
+ iconScale: number;
8456
+ get totalMarkerSize(): number;
8457
+ set totalMarkerSize(size: number);
8458
+ get scaledIconPadding(): number;
8459
+ set scaledIconPadding(padding: number);
8308
8460
  dirty: boolean;
8461
+ textDirty: boolean;
8462
+ markerDirty: boolean;
8309
8463
  /** Flag used in 2d-projection system to determine if the parent has changed */
8310
8464
  attachedDirty: boolean;
8311
8465
  collisionDirty: boolean;
@@ -8320,6 +8474,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
8320
8474
  get lowPriorityStrategyIndex(): 3 | -1;
8321
8475
  get strategies(): any[];
8322
8476
  animate: boolean;
8477
+ recomputeCurrentStrategy(scale?: number): void;
8323
8478
  onStrategySelected: (strategyIndex: any) => void;
8324
8479
  updatePosition(): void;
8325
8480
  disable(): void;
@@ -8381,6 +8536,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/group-container' {
8381
8536
  * The opacity of the group container, which sets the opacity of all its children
8382
8537
  */
8383
8538
  opacity: number;
8539
+ /**
8540
+ * If true, the group container will preload geometry for its children even when invisible.
8541
+ */
8542
+ readonly preloadGeometry: boolean;
8384
8543
  };
8385
8544
  export class GroupContainerObject3D extends Object3D {
8386
8545
  childrenIds: Set<string | number>;
@@ -8396,6 +8555,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/group-container' {
8396
8555
  opacity: number;
8397
8556
  /** The effective opacity of the entity after all parent containers have been considered. */
8398
8557
  computedOpacity: number;
8558
+ /**
8559
+ * If true, the group container will preload geometry for its children even when invisible.
8560
+ */
8561
+ preloadGeometry: boolean;
8399
8562
  };
8400
8563
  components: [StackComponent?, InteractionComponent?, FocusableComponent?];
8401
8564
  constructor(id: string);
@@ -8404,6 +8567,7 @@ declare module '@mappedin/react-sdk/geojson/src/entities/group-container' {
8404
8567
  removeEntity(entityGroupOrContainer: EntityTypes): void;
8405
8568
  setVisible(visible: boolean): void;
8406
8569
  setAltitude(altitude: number): void;
8570
+ set2DGeometryChildrenPositionDirty(): void;
8407
8571
  get altitude(): number;
8408
8572
  setOpacity(opacity: number): void;
8409
8573
  get opacity(): number;
@@ -8853,6 +9017,7 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
8853
9017
  cameraObject: Camera;
8854
9018
  naturalBearing: number;
8855
9019
  containerOffset: [number, number];
9020
+ useStandaloneCamera: boolean;
8856
9021
  };
8857
9022
  /**
8858
9023
  * All of the entities in the scene
@@ -8916,8 +9081,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
8916
9081
  import { BatchedMesh, Color, Vector3 } from 'three';
8917
9082
  import type { BatchedStandardMaterial } from '@mappedin/react-sdk/geojson/src/systems/mesh-creation-and-optimization/batched-material';
8918
9083
  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';
9084
+ import type { Feature, LineString, MultiLineString, MultiPolygon, Polygon, Position as GeoJsonPosition, BBox } from 'geojson';
8921
9085
  import { type ImageProperties } from '@mappedin/react-sdk/geojson/src/components/image';
8922
9086
  import { type BaseTextAreaProperties, type EnterpriseTexture } from '@mappedin/mvf-v2';
8923
9087
  import type { Text } from 'troika-three-text';
@@ -9149,15 +9313,15 @@ declare module '@mappedin/react-sdk/geojson/src/components/custom' {
9149
9313
  constructor(feature: Feature<Point>, builder: CustomGeometryBuilder);
9150
9314
  get visible(): boolean;
9151
9315
  set visible(value: boolean);
9152
- set opacity(_v: number);
9316
+ set opacity(value: number);
9153
9317
  get opacity(): number;
9154
9318
  color: Color;
9155
- setColor(): void;
9319
+ setColor(color: string): void;
9156
9320
  get position(): import("three").Vector3;
9157
9321
  get altitude(): number;
9158
9322
  set altitude(value: number);
9159
9323
  get renderOrder(): number;
9160
- set renderOrder(_: number);
9324
+ set renderOrder(value: number);
9161
9325
  }
9162
9326
  }
9163
9327
 
@@ -9580,6 +9744,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
9580
9744
  altitude?: number;
9581
9745
  interactive?: boolean;
9582
9746
  focusable?: boolean;
9747
+ preloadGeometry?: boolean;
9583
9748
  }, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<GroupContainerState>;
9584
9749
  addStackContainer(id: string, style?: {
9585
9750
  visible?: true;
@@ -10625,10 +10790,13 @@ declare module '@mappedin/react-sdk/geojson/src/utils/constants' {
10625
10790
  import type { InsetPadding } from '@mappedin/react-sdk/geojson/src/types';
10626
10791
  export const DEFAULT_INSET_PADDING: InsetPadding;
10627
10792
  export const MAPPEDIN_LAYER_ID = "mappedin";
10628
- export enum ENTITY_3D_LAYERS {
10793
+ export enum RAYCAST_LAYERS {
10629
10794
  DEFAULT = 0,
10630
10795
  OUTLINES = 1
10631
10796
  }
10797
+ export const RENDER_LAYERS: {
10798
+ ALWAYS_ON_TOP: number;
10799
+ };
10632
10800
  /**
10633
10801
  * Duration of zoom in/out animation when double tapping with one finger or single tapping with two fingers.
10634
10802
  */
@@ -10781,8 +10949,8 @@ declare module '@mappedin/react-sdk/geojson/src/systems/watermark/system' {
10781
10949
  visible?: boolean;
10782
10950
  };
10783
10951
  export type WatermarkUpdateOptions = Omit<WatermarkOptions, 'onClick' | 'visible'> & {
10784
- /** Show the Mappedin watermark. Once it is visible it cannot be hidden again. */
10785
- visible?: true;
10952
+ /** Show the Mappedin watermark. */
10953
+ visible?: boolean;
10786
10954
  /** Set the interactivity of the watermark. */
10787
10955
  interactive?: boolean;
10788
10956
  };
@@ -11015,7 +11183,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
11015
11183
  import type { ParsedMVF } from '@mappedin/mvf-v2';
11016
11184
  import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
11017
11185
  import { PubSub } from '@packages/internal/common';
11018
- import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId } from '@mappedin/core-sdk';
11186
+ import type { Position, AddLabelOptions, RendererCore, PathState, MarkerState, LineStyle, PaintStyle, EntityId, Text3DState } from '@mappedin/core-sdk';
11019
11187
  import { FloorObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object';
11020
11188
  import type { Directions, Floor, TAddMarkerOptions, TAddPathOptions, TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
11021
11189
  import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddImageOptions, TDirectionInstruction, TAddText3DOptions, IAnchorable, TAddLabelOptions } from '@mappedin/react-sdk/mappedin-js/src/types';
@@ -11027,7 +11195,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
11027
11195
  import { Space, Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
11028
11196
  import { type GeoJsonApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/api';
11029
11197
  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
11198
  export class GeojsonApiMapObject extends PubSub<{
11032
11199
  'floor-change': {
11033
11200
  reason?: TFloorChangeReason;
@@ -11079,7 +11246,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
11079
11246
  Images: {
11080
11247
  add: (target: Position, url: string, opts: TAddImageOptions & {
11081
11248
  floorId?: string;
11082
- }) => EntityId<import("@mappedin/core-sdk/src/components/image").ImageState> | undefined;
11249
+ }) => EntityId<import("../../../geojson/src/components/image").ImageState> | undefined;
11083
11250
  remove: (id: string) => void;
11084
11251
  removeAll: () => void;
11085
11252
  };
@@ -12920,6 +13087,16 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12920
13087
  export {};
12921
13088
  }
12922
13089
 
13090
+ declare module '@mappedin/react-sdk/packages/common/types' {
13091
+ type Primitive = string | number | boolean | null | undefined;
13092
+ export type PartialExcept<T, K extends string> = {
13093
+ [P in keyof T as P extends K ? P : never]: T[P];
13094
+ } & {
13095
+ [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>;
13096
+ };
13097
+ export {};
13098
+ }
13099
+
12923
13100
  declare module '@mappedin/react-sdk/packages/mvf-utils/tokens/access-token' {
12924
13101
  import { type TGetMapDataWithCredentialsOptions } from '@mappedin/react-sdk/packages/mvf-utils/mvf-utils';
12925
13102
  export const ACCESS_TOKEN_REFRESH_BUFFER_MINUTES = 60;
@@ -13212,10 +13389,6 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry3d' {
13212
13389
  type: 'b';
13213
13390
  value: boolean;
13214
13391
  };
13215
- flattenFactor: {
13216
- type: 'f';
13217
- value: number;
13218
- };
13219
13392
  showPulse: {
13220
13393
  type: 'b';
13221
13394
  value: boolean;
@@ -13224,6 +13397,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry3d' {
13224
13397
  type: 'f';
13225
13398
  value: number;
13226
13399
  };
13400
+ dashed: {
13401
+ type: 'b';
13402
+ value: boolean;
13403
+ };
13227
13404
  }
13228
13405
  export {};
13229
13406
  }
@@ -13248,16 +13425,18 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry2d' {
13248
13425
  /** The geometry3D that this 2D entity is attached to */
13249
13426
  get attachedTo(): string | number | undefined;
13250
13427
  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
13428
  occluderId?: number;
13256
13429
  object3d: Geometry2DObject3D;
13257
13430
  components: [MarkerComponent | LabelComponent, InteractionComponent?];
13258
13431
  disposed: boolean;
13259
13432
  constructor(ui: MarkerComponent | LabelComponent, position: Vector3, verticalOffset?: number);
13260
13433
  get position(): Vector3;
13434
+ /**
13435
+ * When the position of the entity changes, this should be set to true, so that systems like pan bounds can update
13436
+ */
13437
+ get positionDirty(): boolean;
13438
+ set positionDirty(value: boolean);
13439
+ updatePosition(position: Vector3): void;
13261
13440
  setAltitude(z: number): void;
13262
13441
  }
13263
13442
  }
@@ -13517,6 +13696,7 @@ declare module '@mappedin/react-sdk/geojson/src/types/options' {
13517
13696
  map?: MapLibreMap;
13518
13697
  mode?: 'standalone' | 'outdoors-interleaved' | 'outdoors-overlay';
13519
13698
  antialias?: boolean;
13699
+ useStandaloneCamera?: boolean;
13520
13700
  onWebGLRendererError?: (error: Error) => void;
13521
13701
  onWebGLContextCreationError?: (event: Event) => void;
13522
13702
  onWebGLContextLost?: (event: Event) => void;
@@ -13806,9 +13986,9 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-draw/system' {
13806
13986
  };
13807
13987
  textToCanvas: (textDrawFn: (ctx: CanvasRenderingContext2D, x: number, y: number) => void, size: number, textAlign: TEXTALIGN, width: number, height: number, foregroundColor: string, backgroundColor: string) => any;
13808
13988
  cacheImage: (label: LabelComponent) => void;
13809
- createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string) => HTMLCanvasElement | OffscreenCanvas;
13989
+ createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
13810
13990
  prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
13811
- draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D): void;
13991
+ draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D, zoomLevel: number): void;
13812
13992
  }
13813
13993
  export {};
13814
13994
  }
@@ -14130,7 +14310,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/outline-interpolation/sy
14130
14310
  * @param zoomLevel - The current zoom level.
14131
14311
  * @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
14312
  */
14133
- update(zoomLevel: number, isCameraZoomDirty?: boolean): null | undefined;
14313
+ update(zoomLevel: number, isCameraZoomDirty?: boolean): void;
14134
14314
  destroy(): void;
14135
14315
  }
14136
14316
  }
@@ -23498,6 +23678,7 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator' {
23498
23678
 
23499
23679
  declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator/navigator' {
23500
23680
  import type { Position, Feature, MultiPolygon, Polygon } from 'geojson';
23681
+ import { Edge } from '@mappedin/react-sdk/packages/geojson-navigator/src/edge';
23501
23682
  import { NavigationGraph } from '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph';
23502
23683
  import type { NodeCollection } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
23503
23684
  import type { ObstructionCollection } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/obstruction';
@@ -23559,7 +23740,7 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator/nav
23559
23740
  * @param {SimplifyDirectionsOptions} [simplify] - Options to simplify the pathfinding result.
23560
23741
  * @returns {DirectionsCollection} A collection of directional features representing the path.
23561
23742
  */
23562
- getDirections({ zones: directionsZones, originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, simplify, multiplicativeDistanceWeightScaling, }: {
23743
+ getDirections({ zones: directionsZones, originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, simplify, multiplicativeDistanceWeightScaling, overrideEdgeWeights, }: {
23563
23744
  originIds: string[];
23564
23745
  destinationNodeIds: string[];
23565
23746
  zones?: DirectionsZone[];
@@ -23567,6 +23748,7 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigator/nav
23567
23748
  disabledConnectionNodeIds?: string[];
23568
23749
  simplify?: SimplifyDirectionsOptions;
23569
23750
  multiplicativeDistanceWeightScaling?: boolean;
23751
+ overrideEdgeWeights?: Map<Edge, number>;
23570
23752
  }): DirectionsCollection;
23571
23753
  /**
23572
23754
  * Calculates the approximate distance between two geographic coordinates on Earth's surface.
@@ -27281,6 +27463,10 @@ declare module '@mappedin/react-sdk/packages/outdoor-context-v4/ui/handler/tap_z
27281
27463
  }
27282
27464
  }
27283
27465
 
27466
+ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/edge' {
27467
+ export * from '@mappedin/react-sdk/packages/geojson-navigator/src/edge/edge';
27468
+ }
27469
+
27284
27470
  declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph' {
27285
27471
  export * from '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph/navigation-graph';
27286
27472
  }
@@ -27297,10 +27483,6 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/types/space'
27297
27483
  export { SpaceCollection, SpaceProperties };
27298
27484
  }
27299
27485
 
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
27486
  declare module '@mappedin/react-sdk/geojson/src/systems/camera/helpers/input-set' {
27305
27487
  import type { Vector2 } from 'three';
27306
27488
  class InputSet {
@@ -29961,6 +30143,42 @@ declare module '@mappedin/react-sdk/packages/outdoor-context-v4/source/terrain_s
29961
30143
  }
29962
30144
  }
29963
30145
 
30146
+ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/edge/edge' {
30147
+ import type { NodeFeature } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
30148
+ /**
30149
+ * Represents an edge in a graph, containing data about its endpoints and metrics like distance and angle.
30150
+ * @hidden
30151
+ */
30152
+ export class Edge {
30153
+ /** The originating node of the edge */
30154
+ origin: NodeFeature;
30155
+ /** The destination node of the edge */
30156
+ destination: NodeFeature;
30157
+ /** The distance between the origin and the destination nodes */
30158
+ distance: number;
30159
+ /** The angle of the edge with respect to some reference, in degrees */
30160
+ angle: number;
30161
+ /** A composite weight of the edge, combining distance and a custom path weight */
30162
+ weight: number;
30163
+ /**
30164
+ * Constructs a new Edge instance.
30165
+ * @param {NodeFeature} origin - The originating node of the edge.
30166
+ * @param {NodeFeature} destination - The destination node of the edge.
30167
+ * @param {number} [distance=0] - The physical distance between the origin and destination.
30168
+ * @param {number} [angle=0] - The angle of the edge in degrees.
30169
+ * @param {number} [pathWeight=0] - An additional weight factor for the path.
30170
+ */
30171
+ constructor({ origin, destination, distance, angle, pathWeight, multiplicativeDistanceWeightScaling, }: {
30172
+ origin: NodeFeature;
30173
+ destination: NodeFeature;
30174
+ distance?: number;
30175
+ angle?: number;
30176
+ pathWeight?: number;
30177
+ multiplicativeDistanceWeightScaling?: boolean;
30178
+ });
30179
+ }
30180
+ }
30181
+
29964
30182
  declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-graph/navigation-graph' {
29965
30183
  import { Edge } from '@mappedin/react-sdk/packages/geojson-navigator/src/edge';
29966
30184
  import type { NodeCollection, NodeFeature } from '@mappedin/react-sdk/packages/geojson-navigator/src/types/node';
@@ -30001,52 +30219,17 @@ declare module '@mappedin/react-sdk/packages/geojson-navigator/src/navigation-gr
30001
30219
  * @param {Set<string>} [disabledConnectionNodeIds] - Optional set of connection node IDs that are disabled (ie. act as regular nodes).
30002
30220
  * @returns {Edge[]} An array of edges representing the shortest path, or an empty array if no path is found.
30003
30221
  */
30004
- aStar({ originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, zones, }: {
30222
+ aStar({ originIds, destinationNodeIds, excludedNodeIds, disabledConnectionNodeIds, zones, overrideEdgeWeights, }: {
30005
30223
  originIds: string[];
30006
30224
  destinationNodeIds: string[];
30007
30225
  zones: DirectionsZone[];
30008
30226
  excludedNodeIds?: Set<string>;
30009
30227
  disabledConnectionNodeIds?: Set<string>;
30228
+ overrideEdgeWeights?: Map<Edge, number>;
30010
30229
  }): Edge[];
30011
30230
  }
30012
30231
  }
30013
30232
 
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
30233
  declare module '@mappedin/react-sdk/packages/outdoor-context-v4/data/feature_position_map' {
30051
30234
  type SerializedFeaturePositionMap = {
30052
30235
  ids: Float64Array;