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

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.
@@ -59,7 +59,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
59
59
  import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/react-sdk/packages/mvf-utils';
60
60
  import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
61
61
  import type { Floor } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
62
- 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';
63
63
  import { MapView } from '@mappedin/react-sdk/mappedin-js/src/map-view';
64
64
  export type { Text3D as Text3DApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/text3d';
65
65
  export { disableText3DWorker } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/text3d';
@@ -72,6 +72,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
72
72
  import { MAPPEDIN_COLORS } from '@mappedin/react-sdk/mappedin-js/src/constants';
73
73
  import type { TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TFollowMode, TFollowCameraOptions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/blue-dot/blue-dot';
74
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 };
75
77
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
76
78
  /**
77
79
  * @internal
@@ -347,39 +349,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
347
349
  * @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
348
350
  */
349
351
  export function setUseEnterpriseAPI(value: boolean): void;
350
- export type THydrateMapDataBundle = {
351
- type: 'binary';
352
- options?: {
353
- version?: '2.0.0' | '3.0.0';
354
- enterprise?: boolean;
355
- };
356
- languagePacks?: {
357
- language: {
358
- code: string;
359
- name: string;
360
- };
361
- localePack: Uint8Array;
362
- }[];
363
- main: Uint8Array;
364
- } | {
365
- type: 'json';
366
- options?: {
367
- version?: '2.0.0' | '3.0.0';
368
- enterprise?: boolean;
369
- };
370
- languagePacks?: {
371
- language: {
372
- code: string;
373
- name: string;
374
- };
375
- localePack: ParsedMVFLocalePack;
376
- }[];
377
- main: TMVF;
378
- };
379
- /**
380
- * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
381
- */
382
- export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
383
352
  /**
384
353
  * Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
385
354
  *
@@ -423,7 +392,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
423
392
  export type { TSpaceType } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
424
393
  export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space, ImageMetaData, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, LocationProfile, LocationCategory, Facade, Node, Area, type Places, } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
425
394
  export { setWorkersUrl } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/api';
426
- export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, Images, StackedMaps, } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
395
+ export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Style, Shapes, Outdoor, Images, StackedMaps, } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
396
+ export { Directions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/directions';
427
397
  export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/react-sdk/mappedin-js/src/search';
428
398
  export type { TFindNearestOptions, TFindNearestResult, TQueriables, Query } from '@mappedin/react-sdk/mappedin-js/src/query';
429
399
  export type { Analytics, TAnalyticsUpdateState } from '@mappedin/react-sdk/mappedin-js/src/analytics';
@@ -784,6 +754,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
784
754
  */
785
755
  Search: Search;
786
756
  Query: Query;
757
+ /**
758
+ * @internal
759
+ */
760
+ internal: MapDataInternal;
787
761
  /**
788
762
  * Constructs a new instance of {@link MapData}.
789
763
  *
@@ -1028,10 +1002,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
1028
1002
  */
1029
1003
  toBinaryBundle({ downloadLanguagePacks }?: {
1030
1004
  downloadLanguagePacks?: boolean;
1031
- }): Promise<void | import(".").THydrateMapDataBundle>;
1005
+ }): Promise<void | import("./hydrate-map-data").THydrateMapDataBundle>;
1032
1006
  toJSONBundle({ downloadLanguagePacks }?: {
1033
1007
  downloadLanguagePacks?: boolean;
1034
- }): Promise<import(".").THydrateMapDataBundle>;
1008
+ }): Promise<import("./hydrate-map-data").THydrateMapDataBundle>;
1035
1009
  }
1036
1010
  export default MapData;
1037
1011
  /**
@@ -2446,6 +2420,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2446
2420
  * Height of the geometry element in meters.
2447
2421
  */
2448
2422
  height: number;
2423
+ /**
2424
+ * The altitude of the geometry element in meters.
2425
+ */
2426
+ altitude: number;
2449
2427
  /**
2450
2428
  * Texture to apply to the geometry element.
2451
2429
  */
@@ -2544,7 +2522,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2544
2522
  /**
2545
2523
  * The type for updating the state of map elements (colors, texts, etc.).
2546
2524
  */
2547
- export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS | Door ? Partial<TDoorsState> : T extends Model ? Partial<UpdateModelState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends Floor ? DeepPartial<TFloorState> : T extends Facade ? Partial<TFacadeState> : T extends Shape ? Partial<Omit<TShapeState, 'height' | 'type'>> : T extends Text3D ? UpdatableText3DState : T extends Path ? Partial<TPathState> : T extends PathSegment ? Partial<TPathState> : T extends string ? Record<string, any> : never;
2525
+ export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS | Door ? Partial<TDoorsState> : T extends Model ? Partial<UpdateModelState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends Floor ? DeepPartial<TFloorState> : T extends Facade ? Partial<TFacadeState> : T extends Shape ? Partial<Omit<TShapeState, 'type'>> : T extends Text3D ? UpdatableText3DState : T extends Path ? Partial<TPathState> : T extends PathSegment ? Partial<TPathState> : T extends string ? Record<string, any> : never;
2548
2526
  export type TUpdateStates = Partial<Omit<TGeometryState, 'interactive' | 'hoverColor' | 'type'>> | Partial<TMarkerState> | Partial<TLabelState> | Partial<TGeometryState> | Partial<TPathState>;
2549
2527
  export type TGetState<T> = T extends WALLS ? TWallsState | undefined : T extends DOORS ? TDoorsState | undefined : T extends Marker ? TMarkerState | undefined : T extends Shape ? TShapeState | undefined : T extends Model ? TModelState | undefined : T extends Label ? TLabelState | undefined : T extends Image ? TImageState | undefined : T extends Text3D ? Text3DState | undefined : T extends Space | MapObject ? TGeometryState | undefined : T extends Floor ? TFloorState | undefined : T extends Facade ? TFacadeState | undefined : T extends Path ? TPathState | undefined : T extends PathSegment ? TPathState | undefined : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | TPathState | undefined : never;
2550
2528
  /**
@@ -3658,6 +3636,45 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/sta
3658
3636
  export {};
3659
3637
  }
3660
3638
 
3639
+ declare module '@mappedin/react-sdk/mappedin-js/src/hydrate-map-data' {
3640
+ import MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
3641
+ import type { TGetMapDataOptions } from '@mappedin/react-sdk/packages/mvf-utils';
3642
+ import type { ParsedMVF as TMVF, ParsedMVFLocalePack } from '@mappedin/mvf-v2';
3643
+ export type THydrateMapDataBundle = {
3644
+ type: 'binary';
3645
+ options?: {
3646
+ version?: '2.0.0' | '3.0.0';
3647
+ enterprise?: boolean;
3648
+ };
3649
+ languagePacks?: {
3650
+ language: {
3651
+ code: string;
3652
+ name: string;
3653
+ };
3654
+ localePack: Uint8Array;
3655
+ }[];
3656
+ main: Uint8Array;
3657
+ } | {
3658
+ type: 'json';
3659
+ options?: {
3660
+ version?: '2.0.0' | '3.0.0';
3661
+ enterprise?: boolean;
3662
+ };
3663
+ languagePacks?: {
3664
+ language: {
3665
+ code: string;
3666
+ name: string;
3667
+ };
3668
+ localePack: ParsedMVFLocalePack;
3669
+ }[];
3670
+ main: TMVF;
3671
+ };
3672
+ /**
3673
+ * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
3674
+ */
3675
+ export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
3676
+ }
3677
+
3661
3678
  declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects' {
3662
3679
  export { Label } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/label';
3663
3680
  export { Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker';
@@ -4092,6 +4109,62 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson' {
4092
4109
  export { StackedMaps } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
4093
4110
  }
4094
4111
 
4112
+ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/directions' {
4113
+ import type { DirectionFeature, DirectionsCollection } from '@packages/internal/geojson-navigator';
4114
+ import type { Node, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4115
+ import { Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4116
+ import type { TDirectionInstruction, TNavigationTarget } from '@mappedin/react-sdk/mappedin-js/src/types';
4117
+ /**
4118
+ * Represents a set of directions between two points.
4119
+ *
4120
+ * Directions are used to represent the path between two points on the map,
4121
+ * as well as the instructions to follow the path.
4122
+ */
4123
+ export class Directions {
4124
+ #private;
4125
+ /**
4126
+ * @internal
4127
+ */
4128
+ constructor(directions: DirectionsCollection, mapData: MapDataInternal, from: TNavigationTarget[], to: TNavigationTarget[]);
4129
+ /**
4130
+ * @internal
4131
+ */
4132
+ get path(): Node[];
4133
+ /**
4134
+ * The selected departure.
4135
+ */
4136
+ get departure(): TNavigationTarget | undefined;
4137
+ /**
4138
+ * The selected destination.
4139
+ */
4140
+ get destination(): TNavigationTarget | undefined;
4141
+ /**
4142
+ * All the coordinates ({@link Coordinate}) of the directions.
4143
+ */
4144
+ get coordinates(): Coordinate[];
4145
+ /**
4146
+ * The total distance of the path in meters.
4147
+ */
4148
+ get distance(): number;
4149
+ /**
4150
+ * The array of instructions ({@link TDirectionInstruction}).
4151
+ */
4152
+ get instructions(): TDirectionInstruction[];
4153
+ /**
4154
+ * Serializes the directions to JSON.
4155
+ * All getter properties are evaluated and included in the serialized output.
4156
+ *
4157
+ * @returns An object representing the directions with all properties evaluated.
4158
+ */
4159
+ toJSON(): {
4160
+ directions: DirectionFeature[];
4161
+ __type: string;
4162
+ from: TNavigationTarget[];
4163
+ to: TNavigationTarget[];
4164
+ };
4165
+ }
4166
+ }
4167
+
4095
4168
  declare module '@mappedin/react-sdk/mappedin-js/src/search' {
4096
4169
  export type { SearchResult, SearchResultItem, SearchOptions, Suggestion, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, MatchInfo, } from '@mappedin/react-sdk/mappedin-js/src/search/internal';
4097
4170
  export type { SearchState } from '@mappedin/react-sdk/mappedin-js/src/search/external';
@@ -4141,104 +4214,7 @@ declare module '@mappedin/react-sdk/react-sdk/src' {
4141
4214
  }
4142
4215
 
4143
4216
  declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions' {
4144
- import type { ParsedMVF } from '@mappedin/mvf-v2';
4145
- import type { DirectionsCollection } from '@packages/internal/geojson-navigator';
4146
- import { Navigator } from '@packages/internal/geojson-navigator';
4147
- import { Connection, Coordinate, Node, type MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4148
- import type { TDirectionInstruction, TDirectionZone, TNavigationTarget } from '@mappedin/react-sdk/mappedin-js/src/types';
4149
- /**
4150
- * Represents a set of directions between two points.
4151
- *
4152
- * Directions are used to represent the path between two points on the map,
4153
- * as well as the instructions to follow the path.
4154
- */
4155
- export class Directions {
4156
- #private;
4157
- /**
4158
- * @internal
4159
- */
4160
- constructor(directions: DirectionsCollection, mapData: MapDataInternal, from: TNavigationTarget[], to: TNavigationTarget[]);
4161
- /**
4162
- * @internal
4163
- */
4164
- get path(): Node[];
4165
- /**
4166
- * The selected departure.
4167
- */
4168
- get departure(): TNavigationTarget;
4169
- /**
4170
- * The selected destination.
4171
- */
4172
- get destination(): TNavigationTarget;
4173
- /**
4174
- * All the coordinates ({@link Coordinate}) of the directions.
4175
- */
4176
- get coordinates(): Coordinate[];
4177
- /**
4178
- * The total distance of the path in meters.
4179
- */
4180
- get distance(): number;
4181
- /**
4182
- * The array of instructions ({@link TDirectionInstruction}).
4183
- */
4184
- get instructions(): TDirectionInstruction[];
4185
- }
4186
- export class DirectionsInternal {
4187
- navigator: Navigator;
4188
- /**
4189
- * @hidden
4190
- */
4191
- constructor({ nodes, geojsonCollection, connections, groupBy, multiplicativeDistanceWeightScaling, }: {
4192
- nodes: ParsedMVF['node.geojson'];
4193
- geojsonCollection: ParsedMVF['obstruction'] | ParsedMVF['space'];
4194
- connections: ParsedMVF['connection.json'];
4195
- groupBy?: string;
4196
- multiplicativeDistanceWeightScaling?: boolean;
4197
- });
4198
- /**
4199
- * Get directions between two navigation targets.
4200
- *
4201
- * @hidden
4202
- * @param from
4203
- * @param to
4204
- * @param options
4205
- * @param mapData
4206
- */
4207
- getDirections: (from: TNavigationTarget[], to: TNavigationTarget[], options: {
4208
- accessible: boolean;
4209
- smoothing: {
4210
- enabled: boolean;
4211
- radius: number;
4212
- };
4213
- zones: TDirectionZone[];
4214
- excludedConnections: Connection[];
4215
- connectionIdWeightMap: Record<string, number>;
4216
- }, mapData: MapDataInternal) => Directions | undefined;
4217
- /**
4218
- * Get the node IDs that should be excluded from the navigation graph.
4219
- *
4220
- * @hidden
4221
- * @param excludedConnections {Connection[]}
4222
- */
4223
- getExcludedNodeIds: (excludedConnections: Connection[]) => string[];
4224
- /**
4225
- * Get the node IDs of connections that do not match the accessibility setting provided.
4226
- * A disabled connection node is a connection node that acts as a regular node
4227
- * (ie. the edges that would cause a floor change are ignored).
4228
- *
4229
- * @hidden
4230
- * @param accessible {boolean}
4231
- */
4232
- getDisabledConnectionNodeIds: (accessible: boolean) => string[];
4233
- }
4234
- /**
4235
- * Get the nodes from the navigation target.
4236
- *
4237
- * @hidden
4238
- * @param target
4239
- * @param mapData
4240
- */
4241
- export function getNodesFromTarget(target: TNavigationTarget, mapData: MapDataInternal): string[];
4217
+ export { Directions, DirectionsInternal, getNodesFromTarget } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/index';
4242
4218
  }
4243
4219
 
4244
4220
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
@@ -5221,9 +5197,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node' {
5221
5197
  * @returns An object representing the node.
5222
5198
  */
5223
5199
  toJSON(): {
5200
+ __type: string;
5224
5201
  id: string;
5225
5202
  floor: string;
5226
5203
  coordinate: {
5204
+ __type: string;
5227
5205
  latitude: number;
5228
5206
  longitude: number;
5229
5207
  floor: string | undefined;
@@ -5310,6 +5288,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/area' {
5310
5288
  * @returns An object representing the space.
5311
5289
  */
5312
5290
  toJSON(): {
5291
+ __type: string;
5313
5292
  id: string;
5314
5293
  name: string;
5315
5294
  floor: string;
@@ -5419,10 +5398,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
5419
5398
  * @returns An object representing the door.
5420
5399
  */
5421
5400
  toJSON(): {
5401
+ __type: string;
5422
5402
  id: string;
5423
5403
  name: string;
5424
5404
  floor: string;
5425
5405
  center: {
5406
+ __type: string;
5426
5407
  latitude: number;
5427
5408
  longitude: number;
5428
5409
  floor: string | undefined;
@@ -5541,11 +5522,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
5541
5522
  * @returns An object representing the space.
5542
5523
  */
5543
5524
  toJSON(): {
5525
+ __type: string;
5544
5526
  id: string;
5545
5527
  name: string;
5546
5528
  type: TSpaceType;
5547
5529
  floor: string;
5548
5530
  center: {
5531
+ __type: string;
5549
5532
  latitude: number;
5550
5533
  longitude: number;
5551
5534
  floor: string | undefined;
@@ -5570,6 +5553,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
5570
5553
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
5571
5554
  import type { Feature, FloorCollection, MultiPolygon, Polygon } from '@mappedin/mvf-v2';
5572
5555
  import type { Annotation, Connection, Door, MapDataInternal, PointOfInterest, Space, MapObject, FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
5556
+ import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
5573
5557
  import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
5574
5558
  import type { IFocusable } from '@mappedin/react-sdk/mappedin-js/src/types';
5575
5559
  /**
@@ -5673,12 +5657,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
5673
5657
  * @returns {FloorStack} The FloorStack that this floor belongs to.
5674
5658
  */
5675
5659
  get floorStack(): FloorStack;
5660
+ get center(): Coordinate;
5676
5661
  /**
5677
5662
  * Serializes the floor data to JSON.
5678
5663
  *
5679
5664
  * @returns An object representing the floor.
5680
5665
  */
5681
5666
  toJSON(): {
5667
+ __type: string;
5682
5668
  id: string;
5683
5669
  name: string;
5684
5670
  shortName: string;
@@ -5782,11 +5768,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection'
5782
5768
  * @returns An object representing the connection.
5783
5769
  */
5784
5770
  toJSON(): {
5771
+ __type: string;
5785
5772
  id: string;
5786
5773
  name: string;
5787
5774
  type: string;
5788
5775
  externalId: string;
5789
5776
  coordinates: {
5777
+ __type: string;
5790
5778
  latitude: number;
5791
5779
  longitude: number;
5792
5780
  floor: string | undefined;
@@ -5882,11 +5870,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object' {
5882
5870
  * @returns An object representing the MapObject.
5883
5871
  */
5884
5872
  toJSON(): {
5873
+ __type: string;
5885
5874
  id: string;
5886
5875
  name: string;
5887
5876
  type: string;
5888
5877
  floor: string;
5889
5878
  center: {
5879
+ __type: string;
5890
5880
  latitude: number;
5891
5881
  longitude: number;
5892
5882
  floor: string | undefined;
@@ -6001,6 +5991,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate'
6001
5991
  * @returns An object representing the coordinate.
6002
5992
  */
6003
5993
  toJSON(): {
5994
+ __type: string;
6004
5995
  latitude: number;
6005
5996
  longitude: number;
6006
5997
  floor: string | undefined;
@@ -6084,10 +6075,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/poi' {
6084
6075
  * @returns An object representing the POI.
6085
6076
  */
6086
6077
  toJSON(): {
6078
+ __type: string;
6087
6079
  id: string;
6088
6080
  name: string;
6089
6081
  floor: string;
6090
6082
  coordinate: {
6083
+ __type: string;
6091
6084
  latitude: number;
6092
6085
  longitude: number;
6093
6086
  floor: string | undefined;
@@ -6185,10 +6178,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/annotation'
6185
6178
  * @returns An object representing the annotation.
6186
6179
  */
6187
6180
  toJSON(): {
6181
+ __type: string;
6188
6182
  id: string;
6189
6183
  group: string;
6190
6184
  type: string;
6191
6185
  coordinate: {
6186
+ __type: string;
6192
6187
  latitude: number;
6193
6188
  longitude: number;
6194
6189
  floor: string | undefined;
@@ -6217,6 +6212,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink'
6217
6212
  * @internal
6218
6213
  */
6219
6214
  static readonly __type = "hyperlink";
6215
+ /**
6216
+ * @internal
6217
+ */
6218
+ readonly __type = "hyperlink";
6220
6219
  /**
6221
6220
  * Checks if the provided instance is of type Hyperlink.
6222
6221
  *
@@ -6248,6 +6247,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink'
6248
6247
  * @returns An object representing the hyperlink.
6249
6248
  */
6250
6249
  toJSON(): {
6250
+ __type: string;
6251
6251
  id: string;
6252
6252
  url: string;
6253
6253
  name: string | undefined;
@@ -6275,6 +6275,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
6275
6275
  * @internal
6276
6276
  */
6277
6277
  static readonly __type = "image";
6278
+ /**
6279
+ * @internal
6280
+ */
6281
+ readonly __type = "image";
6278
6282
  /**
6279
6283
  * Checks if the provided instance is of type Image.
6280
6284
  *
@@ -6308,13 +6312,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
6308
6312
  * @returns {string | undefined } The alt text of the image.
6309
6313
  */
6310
6314
  get altText(): string | undefined;
6311
- /**
6312
6315
  /**
6313
6316
  * Serializes the image data to JSON.
6314
6317
  *
6315
6318
  * @returns An object representing the image.
6316
6319
  */
6317
6320
  toJSON(): {
6321
+ __type: string;
6318
6322
  id: string;
6319
6323
  url: string | undefined;
6320
6324
  name: string | undefined;
@@ -6402,6 +6406,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor-stack
6402
6406
  * @returns An object representing the FloorStack.
6403
6407
  */
6404
6408
  toJSON(): {
6409
+ __type: string;
6405
6410
  id: string;
6406
6411
  name: string;
6407
6412
  shortName: string;
@@ -6759,6 +6764,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
6759
6764
  * @returns An object representing the EnterpriseLocation.
6760
6765
  */
6761
6766
  toJSON(): {
6767
+ __type: string;
6762
6768
  id: string;
6763
6769
  name: string;
6764
6770
  };
@@ -6855,6 +6861,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
6855
6861
  * @returns An object representing the EnterpriseCategory.
6856
6862
  */
6857
6863
  toJSON(): {
6864
+ __type: string;
6858
6865
  id: string;
6859
6866
  name: string;
6860
6867
  };
@@ -6969,6 +6976,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
6969
6976
  * @returns An object representing the EnterpriseVenue.
6970
6977
  */
6971
6978
  toJSON(): {
6979
+ __type: string;
6972
6980
  id: string;
6973
6981
  name: string;
6974
6982
  };
@@ -7109,6 +7117,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location-pr
7109
7117
  */
7110
7118
  get navigationTarget(): TNavigationTarget[];
7111
7119
  toJSON(): {
7120
+ __type: string;
7112
7121
  id: string;
7113
7122
  name: string;
7114
7123
  };
@@ -7163,6 +7172,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location-ca
7163
7172
  */
7164
7173
  get locationProfiles(): LocationProfile[];
7165
7174
  toJSON(): {
7175
+ __type: string;
7166
7176
  id: string;
7167
7177
  name: string;
7168
7178
  };
@@ -7326,6 +7336,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/path' {
7326
7336
  id: string | number;
7327
7337
  coordinates: Coordinate[];
7328
7338
  }[]);
7339
+ toJSON(): {
7340
+ __type: string;
7341
+ id: string;
7342
+ coordinates: Coordinate[];
7343
+ segments: PathSegment[];
7344
+ };
7329
7345
  }
7330
7346
  }
7331
7347
 
@@ -9193,6 +9209,10 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
9193
9209
  * The render order of the geometry
9194
9210
  */
9195
9211
  renderOrder?: number;
9212
+ /**
9213
+ * The altitude of the geometry element in meters.
9214
+ */
9215
+ altitude: number;
9196
9216
  };
9197
9217
  export class MeshComponent {
9198
9218
  #private;
@@ -9226,8 +9246,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
9226
9246
  topColor: Color;
9227
9247
  } | undefined;
9228
9248
  position: Vector3;
9229
- get altitude(): number;
9230
- set altitude(value: number);
9249
+ altitude: number;
9231
9250
  get opacity(): number;
9232
9251
  set opacity(value: number);
9233
9252
  get texture(): string;
@@ -12965,7 +12984,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
12965
12984
  sendGetDirectionsEvent: (start: string, end: string) => void;
12966
12985
  sendBlueDotEvents(event: BlueDotEvents): void | Promise<Response> | Promise<void>;
12967
12986
  }
12968
- type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId'>>;
12987
+ type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId' | 'deviceId'>>;
12969
12988
  type CaptureEventsPayloadMap = {
12970
12989
  '$select-location': {
12971
12990
  id: string;
@@ -13019,10 +13038,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
13019
13038
  noAuth: boolean;
13020
13039
  /** Flag to enable geolocation mode. */
13021
13040
  geolocationMode: boolean;
13022
- /** The device ID to be used for analytics. */
13023
- deviceId: string;
13024
- /** The session ID to be used for analytics. */
13025
- sessionId: string;
13026
13041
  /** The context in which the analytics are being used. */
13027
13042
  context: ValidContext;
13028
13043
  /** The last known user position. */
@@ -13033,7 +13048,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
13033
13048
  logEvents: boolean;
13034
13049
  /** Flag to enable sending of events. */
13035
13050
  sendEvents: boolean;
13036
- } & AnalyticsAuth;
13051
+ /** The API key for authentication. */
13052
+ key?: string;
13053
+ /** The API secret for authentication. */
13054
+ secret?: string;
13055
+ /** The access token for authentication. */
13056
+ accessToken?: string;
13057
+ };
13037
13058
  }
13038
13059
  type AnalyticsUserPosition = {
13039
13060
  bluedotTimestamp: number;
@@ -13062,9 +13083,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
13062
13083
  noAuth: boolean;
13063
13084
  /** Flag to enable geolocation mode. */
13064
13085
  geolocationMode: boolean;
13065
- /** The device ID to be used for analytics. */
13086
+ /** @internal The device ID to be used for analytics. */
13066
13087
  deviceId: string;
13067
- /** The session ID to be used for analytics. */
13088
+ /** @internal The session ID to be used for analytics. */
13068
13089
  sessionId: string;
13069
13090
  /** The context in which the analytics are being used. */
13070
13091
  context: ValidContext;
@@ -13087,6 +13108,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
13087
13108
  export {};
13088
13109
  }
13089
13110
 
13111
+ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/index' {
13112
+ export { Directions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/directions';
13113
+ export { DirectionsInternal } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/directions-internal';
13114
+ export { getNodesFromTarget } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/utils';
13115
+ }
13116
+
13090
13117
  declare module '@mappedin/react-sdk/packages/common/types' {
13091
13118
  type Primitive = string | number | boolean | null | undefined;
13092
13119
  export type PartialExcept<T, K extends string> = {
@@ -13988,7 +14015,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-draw/system' {
13988
14015
  cacheImage: (label: LabelComponent) => void;
13989
14016
  createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
13990
14017
  prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
13991
- draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D, zoomLevel: number): void;
14018
+ draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D): void;
13992
14019
  }
13993
14020
  export {};
13994
14021
  }
@@ -14940,7 +14967,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils' {
14940
14967
  import type { EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf-v2';
14941
14968
  import type { PolygonFeatureProperties } from '@packages/internal/mvf-utils';
14942
14969
  import type { BBox, FeatureCollection, MultiLineString } from 'geojson';
14943
- import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position, EntityId, PathState } from '@mappedin/core-sdk';
14970
+ import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position, EntityId, PathState, GeometryGroupState } from '@mappedin/core-sdk';
14944
14971
  import { type TGeometryState, type TLabelState, type TDirectionInstructionAction, type TShow3DMapOptions, type Label, type Marker, type Model, MapData } from '@mappedin/react-sdk/mappedin-js/src';
14945
14972
  import type { IAnchorable, TDoorsState, TMarkerState, TWallsState } from '@mappedin/react-sdk/mappedin-js/src/types';
14946
14973
  import type { Image, Path, Shape, Text3D } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
@@ -14958,7 +14985,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils' {
14958
14985
  export function translateMarkerStateToGeojsonCore(state: Partial<TMarkerState>, currentState: Partial<MarkerState>): Partial<MarkerState>;
14959
14986
  export function translateDoorsStateToGeojsonCore(state: Partial<TDoorsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
14960
14987
  export function translateWallsStateToGeojsonCore(state: Partial<TWallsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
14961
- export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
14988
+ export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>, parentState?: Partial<GeometryGroupState>): Partial<GeometryState>;
14962
14989
  export function differenceBetweenAngles(a: number, b: number): number;
14963
14990
  export function getRelativeBearing(relativeBearingAngle: number, threshold: number): TDirectionInstructionAction['bearing'];
14964
14991
  export function convertCollisionRankingTeirToNumber(tier: CollisionRankingTier): number;
@@ -15012,6 +15039,75 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-stack-obje
15012
15039
  }
15013
15040
  }
15014
15041
 
15042
+ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/directions-internal' {
15043
+ import type { ParsedMVF } from '@mappedin/mvf-v2';
15044
+ import { Navigator } from '@packages/internal/geojson-navigator';
15045
+ import type { Connection, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
15046
+ import type { TDirectionZone, TNavigationTarget } from '@mappedin/react-sdk/mappedin-js/src/types';
15047
+ import { Directions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/directions';
15048
+ export class DirectionsInternal {
15049
+ navigator: Navigator;
15050
+ /**
15051
+ * @hidden
15052
+ */
15053
+ constructor({ nodes, geojsonCollection, connections, groupBy, multiplicativeDistanceWeightScaling, }: {
15054
+ nodes: ParsedMVF['node.geojson'];
15055
+ geojsonCollection: ParsedMVF['obstruction'] | ParsedMVF['space'];
15056
+ connections: ParsedMVF['connection.json'];
15057
+ groupBy?: string;
15058
+ multiplicativeDistanceWeightScaling?: boolean;
15059
+ });
15060
+ /**
15061
+ * Get directions between two navigation targets.
15062
+ *
15063
+ * @hidden
15064
+ * @param from
15065
+ * @param to
15066
+ * @param options
15067
+ * @param mapData
15068
+ */
15069
+ getDirections: (from: TNavigationTarget[], to: TNavigationTarget[], options: {
15070
+ accessible: boolean;
15071
+ smoothing: {
15072
+ enabled: boolean;
15073
+ radius: number;
15074
+ };
15075
+ zones: TDirectionZone[];
15076
+ excludedConnections: Connection[];
15077
+ connectionIdWeightMap: Record<string, number>;
15078
+ }, mapData: MapDataInternal) => Directions | undefined;
15079
+ /**
15080
+ * Get the node IDs that should be excluded from the navigation graph.
15081
+ *
15082
+ * @hidden
15083
+ * @param excludedConnections {Connection[]}
15084
+ */
15085
+ getExcludedNodeIds: (excludedConnections: Connection[]) => string[];
15086
+ /**
15087
+ * Get the node IDs of connections that do not match the accessibility setting provided.
15088
+ * A disabled connection node is a connection node that acts as a regular node
15089
+ * (ie. the edges that would cause a floor change are ignored).
15090
+ *
15091
+ * @hidden
15092
+ * @param accessible {boolean}
15093
+ */
15094
+ getDisabledConnectionNodeIds: (accessible: boolean) => string[];
15095
+ }
15096
+ }
15097
+
15098
+ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions/utils' {
15099
+ import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
15100
+ import type { TNavigationTarget } from '@mappedin/react-sdk/mappedin-js/src/types';
15101
+ /**
15102
+ * Get the nodes from the navigation target.
15103
+ *
15104
+ * @hidden
15105
+ * @param target
15106
+ * @param mapData
15107
+ */
15108
+ export function getNodesFromTarget(target: TNavigationTarget, mapData: MapDataInternal): string[];
15109
+ }
15110
+
15015
15111
  declare module '@mappedin/react-sdk/geojson/src/components/outline' {
15016
15112
  import type { BufferAttribute, BufferGeometry } from 'three';
15017
15113
  type Outline = {
@@ -15060,6 +15156,10 @@ declare module '@mappedin/react-sdk/geojson/src/services/text3d/utils' {
15060
15156
  size: [width: number, height: number];
15061
15157
  }>;
15062
15158
  export function syncText(text: Text): Promise<void>;
15159
+ /**
15160
+ * Loads the default font without additional preprocessing
15161
+ */
15162
+ export function loadDefaultFont(): Promise<string>;
15063
15163
  }
15064
15164
 
15065
15165
  declare module '@mappedin/react-sdk/geojson/src/systems/interactions/system' {
@@ -15127,7 +15227,6 @@ declare module '@mappedin/react-sdk/geojson/src/systems/interactions/system' {
15127
15227
  dirty3D: boolean;
15128
15228
  get _hitBoxes(): {
15129
15229
  entities: (Object3D | EntityMesh<Geometry3D> | EntityBatchedMesh)[];
15130
- groups: GroupContainerObject3D[];
15131
15230
  };
15132
15231
  getMouseRayIntersects(): Intersection<Object3D<Object3DEventMap>>[];
15133
15232
  destroy(): void;
@@ -23668,7 +23767,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/path/system' {
23668
23767
  getParentContainer: RendererCore['getParentContainer'];
23669
23768
  convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude'];
23670
23769
  constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer'], convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude']);
23671
- update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
23770
+ update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number, orbitZRotation?: number): void;
23672
23771
  }
23673
23772
  }
23674
23773