@mappedin/mappedin-js 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.
Files changed (59) hide show
  1. package/THIRD_PARTY_LICENSES.txt +12048 -1731
  2. package/lib/esm/GLTFExporter-ESCDGZUC.js +2 -0
  3. package/lib/esm/GLTFExporter-ESCDGZUC.js.map +7 -0
  4. package/lib/esm/{GLTFLoader-YCEKYYW3.js → GLTFLoader-KRE6VVI2.js} +2 -1
  5. package/lib/esm/GLTFLoader-KRE6VVI2.js.map +7 -0
  6. package/lib/esm/{browser-6R2QCUOI.js → browser-BKM6BTVQ.js} +2 -1
  7. package/lib/esm/browser-BKM6BTVQ.js.map +7 -0
  8. package/lib/esm/{chunk-KR33DBLD.js → chunk-34JGYGBQ.js} +2 -1
  9. package/lib/esm/chunk-34JGYGBQ.js.map +7 -0
  10. package/lib/esm/chunk-5N73RBNE.js +2 -0
  11. package/lib/esm/chunk-5N73RBNE.js.map +7 -0
  12. package/lib/esm/chunk-AHC6OWNT.js +2 -0
  13. package/lib/esm/chunk-AHC6OWNT.js.map +7 -0
  14. package/lib/esm/chunk-BBNTGIFB.js +578 -0
  15. package/lib/esm/chunk-BBNTGIFB.js.map +7 -0
  16. package/lib/esm/chunk-EBEZBJTY.js +2 -0
  17. package/lib/esm/chunk-EBEZBJTY.js.map +7 -0
  18. package/lib/esm/chunk-QSDIHKLQ.js +3820 -0
  19. package/lib/esm/chunk-QSDIHKLQ.js.map +7 -0
  20. package/lib/esm/chunk-TQZZUEDW.js +2229 -0
  21. package/lib/esm/chunk-TQZZUEDW.js.map +7 -0
  22. package/lib/esm/fonts/roboto-regular.ttf +0 -0
  23. package/lib/esm/index.css +2 -1
  24. package/lib/esm/index.css.map +7 -0
  25. package/lib/esm/index.d.ts +235 -166
  26. package/lib/esm/index.js +2 -1
  27. package/lib/esm/index.js.map +7 -0
  28. package/lib/esm/inspector-S63NMDZZ.css +2 -0
  29. package/lib/esm/inspector-S63NMDZZ.css.map +7 -0
  30. package/lib/esm/inspector-UVCVD35T.js +483 -0
  31. package/lib/esm/inspector-UVCVD35T.js.map +7 -0
  32. package/lib/esm/internal-WH523TQS.css +2 -0
  33. package/lib/esm/internal-WH523TQS.css.map +7 -0
  34. package/lib/esm/internal-ZOHXUIA6.js +2 -0
  35. package/lib/esm/internal-ZOHXUIA6.js.map +7 -0
  36. package/lib/esm/outdoor-context-v4-B6ZFZFG7.js +2 -0
  37. package/lib/esm/outdoor-context-v4-B6ZFZFG7.js.map +7 -0
  38. package/lib/esm/{roboto-regular-JRVF4TIR.js → roboto-regular-25PMWR2T.js} +2 -1
  39. package/lib/esm/roboto-regular-25PMWR2T.js.map +7 -0
  40. package/lib/esm/text3d-ACVNKUMC.js +253 -0
  41. package/lib/esm/text3d-ACVNKUMC.js.map +7 -0
  42. package/lib/esm/workers/collision-worker.csp.js +1 -1
  43. package/lib/esm/workers/maplibre-worker.csp.js +2 -1
  44. package/lib/index-rn.js +649 -0
  45. package/lib/index.css +2 -1
  46. package/package.json +2 -2
  47. package/lib/esm/GLTFExporter-TZEIALSW.js +0 -1
  48. package/lib/esm/chunk-DNBHISVY.js +0 -1
  49. package/lib/esm/chunk-KVKD4E33.js +0 -1
  50. package/lib/esm/chunk-MENDLOSO.js +0 -1
  51. package/lib/esm/chunk-QRWMPXER.js +0 -1
  52. package/lib/esm/chunk-TVALVOG4.js +0 -1
  53. package/lib/esm/chunk-UIDBSU4C.js +0 -1
  54. package/lib/esm/inspector-CV34C4XG.js +0 -1
  55. package/lib/esm/inspector-WWR77OPX.css +0 -1
  56. package/lib/esm/internal-M7DPGYMI.css +0 -1
  57. package/lib/esm/internal-YXEVD377.js +0 -1
  58. package/lib/esm/outdoor-context-v4-IEFB4X2Q.js +0 -1
  59. package/lib/esm/text3d-RZEC5VQO.js +0 -1
@@ -35,7 +35,7 @@ declare module '@mappedin/mappedin-js' {
35
35
  import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/mappedin-js/packages/mvf-utils';
36
36
  import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
37
37
  import type { Floor } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
38
- 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';
38
+ 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';
39
39
  import { MapView } from '@mappedin/mappedin-js/mappedin-js/src/map-view';
40
40
  export type { Text3D as Text3DApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
41
41
  export { disableText3DWorker } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
@@ -48,6 +48,8 @@ declare module '@mappedin/mappedin-js' {
48
48
  import { MAPPEDIN_COLORS } from '@mappedin/mappedin-js/mappedin-js/src/constants';
49
49
  import type { TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TFollowMode, TFollowCameraOptions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/blue-dot/blue-dot';
50
50
  import type { TExpandOptions, TStackedMapsEvents, TStackedMapsState } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
51
+ import { hydrateMapData, type THydrateMapDataBundle } from '@mappedin/mappedin-js/mappedin-js/src/hydrate-map-data';
52
+ export { hydrateMapData, type THydrateMapDataBundle };
51
53
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
52
54
  /**
53
55
  * @internal
@@ -323,39 +325,6 @@ declare module '@mappedin/mappedin-js' {
323
325
  * @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
324
326
  */
325
327
  export function setUseEnterpriseAPI(value: boolean): void;
326
- export type THydrateMapDataBundle = {
327
- type: 'binary';
328
- options?: {
329
- version?: '2.0.0' | '3.0.0';
330
- enterprise?: boolean;
331
- };
332
- languagePacks?: {
333
- language: {
334
- code: string;
335
- name: string;
336
- };
337
- localePack: Uint8Array;
338
- }[];
339
- main: Uint8Array;
340
- } | {
341
- type: 'json';
342
- options?: {
343
- version?: '2.0.0' | '3.0.0';
344
- enterprise?: boolean;
345
- };
346
- languagePacks?: {
347
- language: {
348
- code: string;
349
- name: string;
350
- };
351
- localePack: ParsedMVFLocalePack;
352
- }[];
353
- main: TMVF;
354
- };
355
- /**
356
- * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
357
- */
358
- export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
359
328
  /**
360
329
  * Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
361
330
  *
@@ -399,7 +368,8 @@ declare module '@mappedin/mappedin-js' {
399
368
  export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
400
369
  export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space, ImageMetaData, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, LocationProfile, LocationCategory, Facade, Node, Area, type Places, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
401
370
  export { setWorkersUrl } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
402
- export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, Images, StackedMaps, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
371
+ export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Style, Shapes, Outdoor, Images, StackedMaps, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
372
+ export { Directions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions';
403
373
  export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
404
374
  export type { TFindNearestOptions, TFindNearestResult, TQueriables, Query } from '@mappedin/mappedin-js/mappedin-js/src/query';
405
375
  export type { Analytics, TAnalyticsUpdateState } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
@@ -453,6 +423,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
453
423
  */
454
424
  Search: Search;
455
425
  Query: Query;
426
+ /**
427
+ * @internal
428
+ */
429
+ internal: MapDataInternal;
456
430
  /**
457
431
  * Constructs a new instance of {@link MapData}.
458
432
  *
@@ -697,10 +671,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
697
671
  */
698
672
  toBinaryBundle({ downloadLanguagePacks }?: {
699
673
  downloadLanguagePacks?: boolean;
700
- }): Promise<void | import(".").THydrateMapDataBundle>;
674
+ }): Promise<void | import("./hydrate-map-data").THydrateMapDataBundle>;
701
675
  toJSONBundle({ downloadLanguagePacks }?: {
702
676
  downloadLanguagePacks?: boolean;
703
- }): Promise<import(".").THydrateMapDataBundle>;
677
+ }): Promise<import("./hydrate-map-data").THydrateMapDataBundle>;
704
678
  }
705
679
  export default MapData;
706
680
  /**
@@ -2115,6 +2089,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
2115
2089
  * Height of the geometry element in meters.
2116
2090
  */
2117
2091
  height: number;
2092
+ /**
2093
+ * The altitude of the geometry element in meters.
2094
+ */
2095
+ altitude: number;
2118
2096
  /**
2119
2097
  * Texture to apply to the geometry element.
2120
2098
  */
@@ -2213,7 +2191,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
2213
2191
  /**
2214
2192
  * The type for updating the state of map elements (colors, texts, etc.).
2215
2193
  */
2216
- 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;
2194
+ 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;
2217
2195
  export type TUpdateStates = Partial<Omit<TGeometryState, 'interactive' | 'hoverColor' | 'type'>> | Partial<TMarkerState> | Partial<TLabelState> | Partial<TGeometryState> | Partial<TPathState>;
2218
2196
  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;
2219
2197
  /**
@@ -3327,6 +3305,45 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/s
3327
3305
  export {};
3328
3306
  }
3329
3307
 
3308
+ declare module '@mappedin/mappedin-js/mappedin-js/src/hydrate-map-data' {
3309
+ import MapData from '@mappedin/mappedin-js/mappedin-js/src/map-data';
3310
+ import type { TGetMapDataOptions } from '@mappedin/mappedin-js/packages/mvf-utils';
3311
+ import type { ParsedMVF as TMVF, ParsedMVFLocalePack } from '@mappedin/mvf-v2';
3312
+ export type THydrateMapDataBundle = {
3313
+ type: 'binary';
3314
+ options?: {
3315
+ version?: '2.0.0' | '3.0.0';
3316
+ enterprise?: boolean;
3317
+ };
3318
+ languagePacks?: {
3319
+ language: {
3320
+ code: string;
3321
+ name: string;
3322
+ };
3323
+ localePack: Uint8Array;
3324
+ }[];
3325
+ main: Uint8Array;
3326
+ } | {
3327
+ type: 'json';
3328
+ options?: {
3329
+ version?: '2.0.0' | '3.0.0';
3330
+ enterprise?: boolean;
3331
+ };
3332
+ languagePacks?: {
3333
+ language: {
3334
+ code: string;
3335
+ name: string;
3336
+ };
3337
+ localePack: ParsedMVFLocalePack;
3338
+ }[];
3339
+ main: TMVF;
3340
+ };
3341
+ /**
3342
+ * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
3343
+ */
3344
+ export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
3345
+ }
3346
+
3330
3347
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects' {
3331
3348
  export { Label } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/label';
3332
3349
  export { Marker } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/marker';
@@ -3761,28 +3778,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson' {
3761
3778
  export { StackedMaps } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
3762
3779
  }
3763
3780
 
3764
- declare module '@mappedin/mappedin-js/mappedin-js/src/search' {
3765
- export type { SearchResult, SearchResultItem, SearchOptions, Suggestion, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search/internal';
3766
- export type { SearchState } from '@mappedin/mappedin-js/mappedin-js/src/search/external';
3767
- export { Search } from '@mappedin/mappedin-js/mappedin-js/src/search/external';
3768
- }
3769
-
3770
- declare module '@mappedin/mappedin-js/mappedin-js/src/query' {
3771
- export { Query } from '@mappedin/mappedin-js/mappedin-js/src/query/external';
3772
- export type { TFindNearestOptions, TFindNearestResult, TQueriables } from '@mappedin/mappedin-js/mappedin-js/src/query/external';
3773
- }
3774
-
3775
- declare module '@mappedin/mappedin-js/mappedin-js/src/analytics' {
3776
- export { Analytics, AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
3777
- export type { AnalyticsUpdateOptions, AnalyticState, TAnalyticsUpdateState } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
3778
- }
3779
-
3780
- declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
3781
- import type { ParsedMVF } from '@mappedin/mvf-v2';
3782
- import type { DirectionsCollection } from '@packages/internal/geojson-navigator';
3783
- import { Navigator } from '@packages/internal/geojson-navigator';
3784
- import { Connection, Coordinate, Node, type MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
3785
- import type { TDirectionInstruction, TDirectionZone, TNavigationTarget } from '@mappedin/mappedin-js/mappedin-js/src/types';
3781
+ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions' {
3782
+ import type { DirectionFeature, DirectionsCollection } from '@packages/internal/geojson-navigator';
3783
+ import type { Node, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
3784
+ import { Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
3785
+ import type { TDirectionInstruction, TNavigationTarget } from '@mappedin/mappedin-js/mappedin-js/src/types';
3786
3786
  /**
3787
3787
  * Represents a set of directions between two points.
3788
3788
  *
@@ -3802,11 +3802,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
3802
3802
  /**
3803
3803
  * The selected departure.
3804
3804
  */
3805
- get departure(): TNavigationTarget;
3805
+ get departure(): TNavigationTarget | undefined;
3806
3806
  /**
3807
3807
  * The selected destination.
3808
3808
  */
3809
- get destination(): TNavigationTarget;
3809
+ get destination(): TNavigationTarget | undefined;
3810
3810
  /**
3811
3811
  * All the coordinates ({@link Coordinate}) of the directions.
3812
3812
  */
@@ -3819,63 +3819,39 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
3819
3819
  * The array of instructions ({@link TDirectionInstruction}).
3820
3820
  */
3821
3821
  get instructions(): TDirectionInstruction[];
3822
- }
3823
- export class DirectionsInternal {
3824
- navigator: Navigator;
3825
- /**
3826
- * @hidden
3827
- */
3828
- constructor({ nodes, geojsonCollection, connections, groupBy, multiplicativeDistanceWeightScaling, }: {
3829
- nodes: ParsedMVF['node.geojson'];
3830
- geojsonCollection: ParsedMVF['obstruction'] | ParsedMVF['space'];
3831
- connections: ParsedMVF['connection.json'];
3832
- groupBy?: string;
3833
- multiplicativeDistanceWeightScaling?: boolean;
3834
- });
3835
3822
  /**
3836
- * Get directions between two navigation targets.
3823
+ * Serializes the directions to JSON.
3824
+ * All getter properties are evaluated and included in the serialized output.
3837
3825
  *
3838
- * @hidden
3839
- * @param from
3840
- * @param to
3841
- * @param options
3842
- * @param mapData
3826
+ * @returns An object representing the directions with all properties evaluated.
3843
3827
  */
3844
- getDirections: (from: TNavigationTarget[], to: TNavigationTarget[], options: {
3845
- accessible: boolean;
3846
- smoothing: {
3847
- enabled: boolean;
3848
- radius: number;
3849
- };
3850
- zones: TDirectionZone[];
3851
- excludedConnections: Connection[];
3852
- connectionIdWeightMap: Record<string, number>;
3853
- }, mapData: MapDataInternal) => Directions | undefined;
3854
- /**
3855
- * Get the node IDs that should be excluded from the navigation graph.
3856
- *
3857
- * @hidden
3858
- * @param excludedConnections {Connection[]}
3859
- */
3860
- getExcludedNodeIds: (excludedConnections: Connection[]) => string[];
3861
- /**
3862
- * Get the node IDs of connections that do not match the accessibility setting provided.
3863
- * A disabled connection node is a connection node that acts as a regular node
3864
- * (ie. the edges that would cause a floor change are ignored).
3865
- *
3866
- * @hidden
3867
- * @param accessible {boolean}
3868
- */
3869
- getDisabledConnectionNodeIds: (accessible: boolean) => string[];
3828
+ toJSON(): {
3829
+ directions: DirectionFeature[];
3830
+ __type: string;
3831
+ from: TNavigationTarget[];
3832
+ to: TNavigationTarget[];
3833
+ };
3870
3834
  }
3871
- /**
3872
- * Get the nodes from the navigation target.
3873
- *
3874
- * @hidden
3875
- * @param target
3876
- * @param mapData
3877
- */
3878
- export function getNodesFromTarget(target: TNavigationTarget, mapData: MapDataInternal): string[];
3835
+ }
3836
+
3837
+ declare module '@mappedin/mappedin-js/mappedin-js/src/search' {
3838
+ export type { SearchResult, SearchResultItem, SearchOptions, Suggestion, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search/internal';
3839
+ export type { SearchState } from '@mappedin/mappedin-js/mappedin-js/src/search/external';
3840
+ export { Search } from '@mappedin/mappedin-js/mappedin-js/src/search/external';
3841
+ }
3842
+
3843
+ declare module '@mappedin/mappedin-js/mappedin-js/src/query' {
3844
+ export { Query } from '@mappedin/mappedin-js/mappedin-js/src/query/external';
3845
+ export type { TFindNearestOptions, TFindNearestResult, TQueriables } from '@mappedin/mappedin-js/mappedin-js/src/query/external';
3846
+ }
3847
+
3848
+ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics' {
3849
+ export { Analytics, AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
3850
+ export type { AnalyticsUpdateOptions, AnalyticState, TAnalyticsUpdateState } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
3851
+ }
3852
+
3853
+ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions' {
3854
+ export { Directions, DirectionsInternal, getNodesFromTarget } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/index';
3879
3855
  }
3880
3856
 
3881
3857
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
@@ -3985,7 +3961,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
3985
3961
  import type { TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, Environment } from '@mappedin/mappedin-js/packages/mvf-utils';
3986
3962
  import { parseMVF, unzipMVF } from '@packages/internal/mvf-utils';
3987
3963
  import type { Floor } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
3988
- 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';
3964
+ 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';
3989
3965
  import { MapView } from '@mappedin/mappedin-js/mappedin-js/src/map-view';
3990
3966
  export type { Text3D as Text3DApi } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
3991
3967
  export { disableText3DWorker } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/text3d';
@@ -3998,6 +3974,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
3998
3974
  import { MAPPEDIN_COLORS } from '@mappedin/mappedin-js/mappedin-js/src/constants';
3999
3975
  import type { TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TFollowMode, TFollowCameraOptions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/blue-dot/blue-dot';
4000
3976
  import type { TExpandOptions, TStackedMapsEvents, TStackedMapsState } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
3977
+ import { hydrateMapData, type THydrateMapDataBundle } from '@mappedin/mappedin-js/mappedin-js/src/hydrate-map-data';
3978
+ export { hydrateMapData, type THydrateMapDataBundle };
4001
3979
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
4002
3980
  /**
4003
3981
  * @internal
@@ -4273,39 +4251,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
4273
4251
  * @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
4274
4252
  */
4275
4253
  export function setUseEnterpriseAPI(value: boolean): void;
4276
- export type THydrateMapDataBundle = {
4277
- type: 'binary';
4278
- options?: {
4279
- version?: '2.0.0' | '3.0.0';
4280
- enterprise?: boolean;
4281
- };
4282
- languagePacks?: {
4283
- language: {
4284
- code: string;
4285
- name: string;
4286
- };
4287
- localePack: Uint8Array;
4288
- }[];
4289
- main: Uint8Array;
4290
- } | {
4291
- type: 'json';
4292
- options?: {
4293
- version?: '2.0.0' | '3.0.0';
4294
- enterprise?: boolean;
4295
- };
4296
- languagePacks?: {
4297
- language: {
4298
- code: string;
4299
- name: string;
4300
- };
4301
- localePack: ParsedMVFLocalePack;
4302
- }[];
4303
- main: TMVF;
4304
- };
4305
- /**
4306
- * Load a MapData instance from a backup including language packs. Pass in userOptions to ensure outdoor view is available.
4307
- */
4308
- export const hydrateMapData: (backup: THydrateMapDataBundle | TMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
4309
4254
  /**
4310
4255
  * Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
4311
4256
  *
@@ -4349,7 +4294,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
4349
4294
  export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
4350
4295
  export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space, ImageMetaData, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, LocationProfile, LocationCategory, Facade, Node, Area, type Places, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
4351
4296
  export { setWorkersUrl } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api';
4352
- export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, Images, StackedMaps, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
4297
+ export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Style, Shapes, Outdoor, Images, StackedMaps, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
4298
+ export { Directions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions';
4353
4299
  export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
4354
4300
  export type { TFindNearestOptions, TFindNearestResult, TQueriables, Query } from '@mappedin/mappedin-js/mappedin-js/src/query';
4355
4301
  export type { Analytics, TAnalyticsUpdateState } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
@@ -5234,9 +5180,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node' {
5234
5180
  * @returns An object representing the node.
5235
5181
  */
5236
5182
  toJSON(): {
5183
+ __type: string;
5237
5184
  id: string;
5238
5185
  floor: string;
5239
5186
  coordinate: {
5187
+ __type: string;
5240
5188
  latitude: number;
5241
5189
  longitude: number;
5242
5190
  floor: string | undefined;
@@ -5323,6 +5271,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/area' {
5323
5271
  * @returns An object representing the space.
5324
5272
  */
5325
5273
  toJSON(): {
5274
+ __type: string;
5326
5275
  id: string;
5327
5276
  name: string;
5328
5277
  floor: string;
@@ -5432,10 +5381,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door' {
5432
5381
  * @returns An object representing the door.
5433
5382
  */
5434
5383
  toJSON(): {
5384
+ __type: string;
5435
5385
  id: string;
5436
5386
  name: string;
5437
5387
  floor: string;
5438
5388
  center: {
5389
+ __type: string;
5439
5390
  latitude: number;
5440
5391
  longitude: number;
5441
5392
  floor: string | undefined;
@@ -5554,11 +5505,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
5554
5505
  * @returns An object representing the space.
5555
5506
  */
5556
5507
  toJSON(): {
5508
+ __type: string;
5557
5509
  id: string;
5558
5510
  name: string;
5559
5511
  type: TSpaceType;
5560
5512
  floor: string;
5561
5513
  center: {
5514
+ __type: string;
5562
5515
  latitude: number;
5563
5516
  longitude: number;
5564
5517
  floor: string | undefined;
@@ -5583,6 +5536,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
5583
5536
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor' {
5584
5537
  import type { Feature, FloorCollection, MultiPolygon, Polygon } from '@mappedin/mvf-v2';
5585
5538
  import type { Annotation, Connection, Door, MapDataInternal, PointOfInterest, Space, MapObject, FloorStack } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
5539
+ import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
5586
5540
  import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
5587
5541
  import type { IFocusable } from '@mappedin/mappedin-js/mappedin-js/src/types';
5588
5542
  /**
@@ -5686,12 +5640,14 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor' {
5686
5640
  * @returns {FloorStack} The FloorStack that this floor belongs to.
5687
5641
  */
5688
5642
  get floorStack(): FloorStack;
5643
+ get center(): Coordinate;
5689
5644
  /**
5690
5645
  * Serializes the floor data to JSON.
5691
5646
  *
5692
5647
  * @returns An object representing the floor.
5693
5648
  */
5694
5649
  toJSON(): {
5650
+ __type: string;
5695
5651
  id: string;
5696
5652
  name: string;
5697
5653
  shortName: string;
@@ -5795,11 +5751,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/connectio
5795
5751
  * @returns An object representing the connection.
5796
5752
  */
5797
5753
  toJSON(): {
5754
+ __type: string;
5798
5755
  id: string;
5799
5756
  name: string;
5800
5757
  type: string;
5801
5758
  externalId: string;
5802
5759
  coordinates: {
5760
+ __type: string;
5803
5761
  latitude: number;
5804
5762
  longitude: number;
5805
5763
  floor: string | undefined;
@@ -5895,11 +5853,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/object' {
5895
5853
  * @returns An object representing the MapObject.
5896
5854
  */
5897
5855
  toJSON(): {
5856
+ __type: string;
5898
5857
  id: string;
5899
5858
  name: string;
5900
5859
  type: string;
5901
5860
  floor: string;
5902
5861
  center: {
5862
+ __type: string;
5903
5863
  latitude: number;
5904
5864
  longitude: number;
5905
5865
  floor: string | undefined;
@@ -6014,6 +5974,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinat
6014
5974
  * @returns An object representing the coordinate.
6015
5975
  */
6016
5976
  toJSON(): {
5977
+ __type: string;
6017
5978
  latitude: number;
6018
5979
  longitude: number;
6019
5980
  floor: string | undefined;
@@ -6097,10 +6058,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/poi' {
6097
6058
  * @returns An object representing the POI.
6098
6059
  */
6099
6060
  toJSON(): {
6061
+ __type: string;
6100
6062
  id: string;
6101
6063
  name: string;
6102
6064
  floor: string;
6103
6065
  coordinate: {
6066
+ __type: string;
6104
6067
  latitude: number;
6105
6068
  longitude: number;
6106
6069
  floor: string | undefined;
@@ -6198,10 +6161,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotatio
6198
6161
  * @returns An object representing the annotation.
6199
6162
  */
6200
6163
  toJSON(): {
6164
+ __type: string;
6201
6165
  id: string;
6202
6166
  group: string;
6203
6167
  type: string;
6204
6168
  coordinate: {
6169
+ __type: string;
6205
6170
  latitude: number;
6206
6171
  longitude: number;
6207
6172
  floor: string | undefined;
@@ -6230,6 +6195,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink
6230
6195
  * @internal
6231
6196
  */
6232
6197
  static readonly __type = "hyperlink";
6198
+ /**
6199
+ * @internal
6200
+ */
6201
+ readonly __type = "hyperlink";
6233
6202
  /**
6234
6203
  * Checks if the provided instance is of type Hyperlink.
6235
6204
  *
@@ -6261,6 +6230,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink
6261
6230
  * @returns An object representing the hyperlink.
6262
6231
  */
6263
6232
  toJSON(): {
6233
+ __type: string;
6264
6234
  id: string;
6265
6235
  url: string;
6266
6236
  name: string | undefined;
@@ -6288,6 +6258,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
6288
6258
  * @internal
6289
6259
  */
6290
6260
  static readonly __type = "image";
6261
+ /**
6262
+ * @internal
6263
+ */
6264
+ readonly __type = "image";
6291
6265
  /**
6292
6266
  * Checks if the provided instance is of type Image.
6293
6267
  *
@@ -6321,13 +6295,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
6321
6295
  * @returns {string | undefined } The alt text of the image.
6322
6296
  */
6323
6297
  get altText(): string | undefined;
6324
- /**
6325
6298
  /**
6326
6299
  * Serializes the image data to JSON.
6327
6300
  *
6328
6301
  * @returns An object representing the image.
6329
6302
  */
6330
6303
  toJSON(): {
6304
+ __type: string;
6331
6305
  id: string;
6332
6306
  url: string | undefined;
6333
6307
  name: string | undefined;
@@ -6415,6 +6389,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor-sta
6415
6389
  * @returns An object representing the FloorStack.
6416
6390
  */
6417
6391
  toJSON(): {
6392
+ __type: string;
6418
6393
  id: string;
6419
6394
  name: string;
6420
6395
  shortName: string;
@@ -6772,6 +6747,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location'
6772
6747
  * @returns An object representing the EnterpriseLocation.
6773
6748
  */
6774
6749
  toJSON(): {
6750
+ __type: string;
6775
6751
  id: string;
6776
6752
  name: string;
6777
6753
  };
@@ -6868,6 +6844,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category'
6868
6844
  * @returns An object representing the EnterpriseCategory.
6869
6845
  */
6870
6846
  toJSON(): {
6847
+ __type: string;
6871
6848
  id: string;
6872
6849
  name: string;
6873
6850
  };
@@ -6982,6 +6959,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
6982
6959
  * @returns An object representing the EnterpriseVenue.
6983
6960
  */
6984
6961
  toJSON(): {
6962
+ __type: string;
6985
6963
  id: string;
6986
6964
  name: string;
6987
6965
  };
@@ -7122,6 +7100,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
7122
7100
  */
7123
7101
  get navigationTarget(): TNavigationTarget[];
7124
7102
  toJSON(): {
7103
+ __type: string;
7125
7104
  id: string;
7126
7105
  name: string;
7127
7106
  };
@@ -7176,6 +7155,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
7176
7155
  */
7177
7156
  get locationProfiles(): LocationProfile[];
7178
7157
  toJSON(): {
7158
+ __type: string;
7179
7159
  id: string;
7180
7160
  name: string;
7181
7161
  };
@@ -7339,6 +7319,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path' {
7339
7319
  id: string | number;
7340
7320
  coordinates: Coordinate[];
7341
7321
  }[]);
7322
+ toJSON(): {
7323
+ __type: string;
7324
+ id: string;
7325
+ coordinates: Coordinate[];
7326
+ segments: PathSegment[];
7327
+ };
7342
7328
  }
7343
7329
  }
7344
7330
 
@@ -9206,6 +9192,10 @@ declare module '@mappedin/mappedin-js/geojson/src/components/mesh' {
9206
9192
  * The render order of the geometry
9207
9193
  */
9208
9194
  renderOrder?: number;
9195
+ /**
9196
+ * The altitude of the geometry element in meters.
9197
+ */
9198
+ altitude: number;
9209
9199
  };
9210
9200
  export class MeshComponent {
9211
9201
  #private;
@@ -9239,8 +9229,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/mesh' {
9239
9229
  topColor: Color;
9240
9230
  } | undefined;
9241
9231
  position: Vector3;
9242
- get altitude(): number;
9243
- set altitude(value: number);
9232
+ altitude: number;
9244
9233
  get opacity(): number;
9245
9234
  set opacity(value: number);
9246
9235
  get texture(): string;
@@ -12978,7 +12967,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
12978
12967
  sendGetDirectionsEvent: (start: string, end: string) => void;
12979
12968
  sendBlueDotEvents(event: BlueDotEvents): void | Promise<Response> | Promise<void>;
12980
12969
  }
12981
- type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId'>>;
12970
+ type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken' | 'sessionId' | 'deviceId'>>;
12982
12971
  type CaptureEventsPayloadMap = {
12983
12972
  '$select-location': {
12984
12973
  id: string;
@@ -13032,10 +13021,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
13032
13021
  noAuth: boolean;
13033
13022
  /** Flag to enable geolocation mode. */
13034
13023
  geolocationMode: boolean;
13035
- /** The device ID to be used for analytics. */
13036
- deviceId: string;
13037
- /** The session ID to be used for analytics. */
13038
- sessionId: string;
13039
13024
  /** The context in which the analytics are being used. */
13040
13025
  context: ValidContext;
13041
13026
  /** The last known user position. */
@@ -13046,7 +13031,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
13046
13031
  logEvents: boolean;
13047
13032
  /** Flag to enable sending of events. */
13048
13033
  sendEvents: boolean;
13049
- } & AnalyticsAuth;
13034
+ /** The API key for authentication. */
13035
+ key?: string;
13036
+ /** The API secret for authentication. */
13037
+ secret?: string;
13038
+ /** The access token for authentication. */
13039
+ accessToken?: string;
13040
+ };
13050
13041
  }
13051
13042
  type AnalyticsUserPosition = {
13052
13043
  bluedotTimestamp: number;
@@ -13075,9 +13066,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
13075
13066
  noAuth: boolean;
13076
13067
  /** Flag to enable geolocation mode. */
13077
13068
  geolocationMode: boolean;
13078
- /** The device ID to be used for analytics. */
13069
+ /** @internal The device ID to be used for analytics. */
13079
13070
  deviceId: string;
13080
- /** The session ID to be used for analytics. */
13071
+ /** @internal The session ID to be used for analytics. */
13081
13072
  sessionId: string;
13082
13073
  /** The context in which the analytics are being used. */
13083
13074
  context: ValidContext;
@@ -13100,6 +13091,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
13100
13091
  export {};
13101
13092
  }
13102
13093
 
13094
+ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/index' {
13095
+ export { Directions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions';
13096
+ export { DirectionsInternal } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions-internal';
13097
+ export { getNodesFromTarget } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/utils';
13098
+ }
13099
+
13103
13100
  declare module '@mappedin/mappedin-js/packages/common/types' {
13104
13101
  type Primitive = string | number | boolean | null | undefined;
13105
13102
  export type PartialExcept<T, K extends string> = {
@@ -14001,7 +13998,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/2d-draw/system' {
14001
13998
  cacheImage: (label: LabelComponent) => void;
14002
13999
  createPinCanvas: (label: LabelComponent, markerSize: number, backgroundColor: string, foregroundColor: string, maxIconScale?: number) => HTMLCanvasElement | OffscreenCanvas;
14003
14000
  prepare: (label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D) => void;
14004
- draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D, zoomLevel: number): void;
14001
+ draw(label: LabelComponent, labelCacheId: string, context: CanvasRenderingContext2D): void;
14005
14002
  }
14006
14003
  export {};
14007
14004
  }
@@ -14953,7 +14950,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
14953
14950
  import type { EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf-v2';
14954
14951
  import type { PolygonFeatureProperties } from '@packages/internal/mvf-utils';
14955
14952
  import type { BBox, FeatureCollection, MultiLineString } from 'geojson';
14956
- import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position, EntityId, PathState } from '@mappedin/core-sdk';
14953
+ import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle, Position, EntityId, PathState, GeometryGroupState } from '@mappedin/core-sdk';
14957
14954
  import { type TGeometryState, type TLabelState, type TDirectionInstructionAction, type TShow3DMapOptions, type Label, type Marker, type Model, MapData } from '@mappedin/mappedin-js/mappedin-js/src';
14958
14955
  import type { IAnchorable, TDoorsState, TMarkerState, TWallsState } from '@mappedin/mappedin-js/mappedin-js/src/types';
14959
14956
  import type { Image, Path, Shape, Text3D } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
@@ -14971,7 +14968,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
14971
14968
  export function translateMarkerStateToGeojsonCore(state: Partial<TMarkerState>, currentState: Partial<MarkerState>): Partial<MarkerState>;
14972
14969
  export function translateDoorsStateToGeojsonCore(state: Partial<TDoorsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
14973
14970
  export function translateWallsStateToGeojsonCore(state: Partial<TWallsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
14974
- export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
14971
+ export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>, parentState?: Partial<GeometryGroupState>): Partial<GeometryState>;
14975
14972
  export function differenceBetweenAngles(a: number, b: number): number;
14976
14973
  export function getRelativeBearing(relativeBearingAngle: number, threshold: number): TDirectionInstructionAction['bearing'];
14977
14974
  export function convertCollisionRankingTeirToNumber(tier: CollisionRankingTier): number;
@@ -15025,6 +15022,75 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-stack-ob
15025
15022
  }
15026
15023
  }
15027
15024
 
15025
+ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions-internal' {
15026
+ import type { ParsedMVF } from '@mappedin/mvf-v2';
15027
+ import { Navigator } from '@packages/internal/geojson-navigator';
15028
+ import type { Connection, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
15029
+ import type { TDirectionZone, TNavigationTarget } from '@mappedin/mappedin-js/mappedin-js/src/types';
15030
+ import { Directions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/directions';
15031
+ export class DirectionsInternal {
15032
+ navigator: Navigator;
15033
+ /**
15034
+ * @hidden
15035
+ */
15036
+ constructor({ nodes, geojsonCollection, connections, groupBy, multiplicativeDistanceWeightScaling, }: {
15037
+ nodes: ParsedMVF['node.geojson'];
15038
+ geojsonCollection: ParsedMVF['obstruction'] | ParsedMVF['space'];
15039
+ connections: ParsedMVF['connection.json'];
15040
+ groupBy?: string;
15041
+ multiplicativeDistanceWeightScaling?: boolean;
15042
+ });
15043
+ /**
15044
+ * Get directions between two navigation targets.
15045
+ *
15046
+ * @hidden
15047
+ * @param from
15048
+ * @param to
15049
+ * @param options
15050
+ * @param mapData
15051
+ */
15052
+ getDirections: (from: TNavigationTarget[], to: TNavigationTarget[], options: {
15053
+ accessible: boolean;
15054
+ smoothing: {
15055
+ enabled: boolean;
15056
+ radius: number;
15057
+ };
15058
+ zones: TDirectionZone[];
15059
+ excludedConnections: Connection[];
15060
+ connectionIdWeightMap: Record<string, number>;
15061
+ }, mapData: MapDataInternal) => Directions | undefined;
15062
+ /**
15063
+ * Get the node IDs that should be excluded from the navigation graph.
15064
+ *
15065
+ * @hidden
15066
+ * @param excludedConnections {Connection[]}
15067
+ */
15068
+ getExcludedNodeIds: (excludedConnections: Connection[]) => string[];
15069
+ /**
15070
+ * Get the node IDs of connections that do not match the accessibility setting provided.
15071
+ * A disabled connection node is a connection node that acts as a regular node
15072
+ * (ie. the edges that would cause a floor change are ignored).
15073
+ *
15074
+ * @hidden
15075
+ * @param accessible {boolean}
15076
+ */
15077
+ getDisabledConnectionNodeIds: (accessible: boolean) => string[];
15078
+ }
15079
+ }
15080
+
15081
+ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions/utils' {
15082
+ import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
15083
+ import type { TNavigationTarget } from '@mappedin/mappedin-js/mappedin-js/src/types';
15084
+ /**
15085
+ * Get the nodes from the navigation target.
15086
+ *
15087
+ * @hidden
15088
+ * @param target
15089
+ * @param mapData
15090
+ */
15091
+ export function getNodesFromTarget(target: TNavigationTarget, mapData: MapDataInternal): string[];
15092
+ }
15093
+
15028
15094
  declare module '@mappedin/mappedin-js/geojson/src/components/outline' {
15029
15095
  import type { BufferAttribute, BufferGeometry } from 'three';
15030
15096
  type Outline = {
@@ -15073,6 +15139,10 @@ declare module '@mappedin/mappedin-js/geojson/src/services/text3d/utils' {
15073
15139
  size: [width: number, height: number];
15074
15140
  }>;
15075
15141
  export function syncText(text: Text): Promise<void>;
15142
+ /**
15143
+ * Loads the default font without additional preprocessing
15144
+ */
15145
+ export function loadDefaultFont(): Promise<string>;
15076
15146
  }
15077
15147
 
15078
15148
  declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
@@ -15140,7 +15210,6 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
15140
15210
  dirty3D: boolean;
15141
15211
  get _hitBoxes(): {
15142
15212
  entities: (Object3D | EntityMesh<Geometry3D> | EntityBatchedMesh)[];
15143
- groups: GroupContainerObject3D[];
15144
15213
  };
15145
15214
  getMouseRayIntersects(): Intersection<Object3D<Object3DEventMap>>[];
15146
15215
  destroy(): void;
@@ -23681,7 +23750,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/path/system' {
23681
23750
  getParentContainer: RendererCore['getParentContainer'];
23682
23751
  convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude'];
23683
23752
  constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer'], convertZoomLevelToAltitude: CameraSystem['convertZoomLevelToAltitude']);
23684
- update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
23753
+ update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number, orbitZRotation?: number): void;
23685
23754
  }
23686
23755
  }
23687
23756