@twinmatrix/spatialverse-sdk-web 0.1.0 → 3.1.1

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 (154) hide show
  1. package/README.md +1 -0
  2. package/lib/types/meta-atlas-sdk/3DMap/auth/authentication.d.ts +7 -0
  3. package/lib/types/meta-atlas-sdk/3DMap/auth/authentication.d.ts.map +1 -0
  4. package/lib/types/meta-atlas-sdk/3DMap/data/Constants.d.ts +17 -0
  5. package/lib/types/meta-atlas-sdk/3DMap/data/Constants.d.ts.map +1 -0
  6. package/lib/types/meta-atlas-sdk/3DMap/data/DataManager.d.ts +69 -0
  7. package/lib/types/meta-atlas-sdk/3DMap/data/DataManager.d.ts.map +1 -0
  8. package/lib/types/meta-atlas-sdk/3DMap/data/auth.d.ts +10 -0
  9. package/lib/types/meta-atlas-sdk/3DMap/data/auth.d.ts.map +1 -0
  10. package/lib/types/meta-atlas-sdk/3DMap/data/data.service.d.ts +12 -0
  11. package/lib/types/meta-atlas-sdk/3DMap/data/data.service.d.ts.map +1 -0
  12. package/lib/types/meta-atlas-sdk/3DMap/data/jewel-data.d.ts +8 -0
  13. package/lib/types/meta-atlas-sdk/3DMap/data/jewel-data.d.ts.map +1 -0
  14. package/lib/types/meta-atlas-sdk/3DMap/deckgl/DeckGLManager.d.ts +71 -0
  15. package/lib/types/meta-atlas-sdk/3DMap/deckgl/DeckGLManager.d.ts.map +1 -0
  16. package/lib/types/meta-atlas-sdk/3DMap/deckgl/MVTFloorLayer.d.ts +77 -0
  17. package/lib/types/meta-atlas-sdk/3DMap/deckgl/MVTFloorLayer.d.ts.map +1 -0
  18. package/lib/types/meta-atlas-sdk/3DMap/legacy/Changi.d.ts +1 -0
  19. package/lib/types/meta-atlas-sdk/3DMap/legacy/Changi.d.ts.map +1 -0
  20. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → legacy/CustomThreeJsWrapper}/CustomThreeJsWrapper.d.ts +26 -3
  21. package/lib/types/meta-atlas-sdk/3DMap/legacy/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts.map +1 -0
  22. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerFactory.d.ts +322 -0
  23. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerFactory.d.ts.map +1 -0
  24. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerManager.d.ts +121 -0
  25. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerManager.d.ts.map +1 -0
  26. package/lib/types/meta-atlas-sdk/3DMap/legacy/EventEmitter.d.ts +10 -0
  27. package/lib/types/meta-atlas-sdk/3DMap/legacy/EventEmitter.d.ts.map +1 -0
  28. package/lib/types/meta-atlas-sdk/3DMap/legacy/Jewel.d.ts +35 -0
  29. package/lib/types/meta-atlas-sdk/3DMap/legacy/Jewel.d.ts.map +1 -0
  30. package/lib/types/meta-atlas-sdk/3DMap/legacy/MainMap.d.ts +314 -0
  31. package/lib/types/meta-atlas-sdk/3DMap/legacy/MainMap.d.ts.map +1 -0
  32. package/lib/types/meta-atlas-sdk/3DMap/legacy/Marker.d.ts +17 -0
  33. package/lib/types/meta-atlas-sdk/3DMap/legacy/Marker.d.ts.map +1 -0
  34. package/lib/types/meta-atlas-sdk/3DMap/legacy/MicrophoneBubbleFactory.d.ts +71 -0
  35. package/lib/types/meta-atlas-sdk/3DMap/legacy/MicrophoneBubbleFactory.d.ts.map +1 -0
  36. package/lib/types/meta-atlas-sdk/3DMap/legacy/aeroport.d.ts +6 -0
  37. package/lib/types/meta-atlas-sdk/3DMap/legacy/aeroport.d.ts.map +1 -0
  38. package/lib/types/meta-atlas-sdk/3DMap/legacy/deckgl-helper.d.ts +14 -0
  39. package/lib/types/meta-atlas-sdk/3DMap/legacy/deckgl-helper.d.ts.map +1 -0
  40. package/lib/types/meta-atlas-sdk/3DMap/legacy/helper-utils.d.ts +4 -0
  41. package/lib/types/meta-atlas-sdk/3DMap/legacy/helper-utils.d.ts.map +1 -0
  42. package/lib/types/meta-atlas-sdk/3DMap/legacy/hotspot-utils.d.ts +13 -0
  43. package/lib/types/meta-atlas-sdk/3DMap/legacy/hotspot-utils.d.ts.map +1 -0
  44. package/lib/types/meta-atlas-sdk/3DMap/legacy/loader.d.ts +3 -0
  45. package/lib/types/meta-atlas-sdk/3DMap/legacy/loader.d.ts.map +1 -0
  46. package/lib/types/meta-atlas-sdk/3DMap/legacy/mapIcons.d.ts +12 -0
  47. package/lib/types/meta-atlas-sdk/3DMap/legacy/mapIcons.d.ts.map +1 -0
  48. package/lib/types/meta-atlas-sdk/3DMap/legacy/markers.d.ts +4 -0
  49. package/lib/types/meta-atlas-sdk/3DMap/legacy/markers.d.ts.map +1 -0
  50. package/lib/types/meta-atlas-sdk/3DMap/legacy/timestampUtils.d.ts +6 -0
  51. package/lib/types/meta-atlas-sdk/3DMap/legacy/timestampUtils.d.ts.map +1 -0
  52. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/aeroport-legacy.d.ts +65 -0
  53. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/aeroport-legacy.d.ts.map +1 -0
  54. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/apiParams.d.ts +25 -0
  55. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/apiParams.d.ts.map +1 -0
  56. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/cameraMatrix.d.ts +8 -0
  57. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/cameraMatrix.d.ts.map +1 -0
  58. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/extrusionSettings.d.ts +32 -0
  59. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/extrusionSettings.d.ts.map +1 -0
  60. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/marker-data.d.ts +12 -0
  61. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/marker-data.d.ts.map +1 -0
  62. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/modelSettings.d.ts +7 -0
  63. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/modelSettings.d.ts.map +1 -0
  64. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/panoramaSettings.d.ts +18 -0
  65. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/panoramaSettings.d.ts.map +1 -0
  66. package/lib/types/meta-atlas-sdk/3DMap/meta-atlas-sdk-3D.d.ts +80 -0
  67. package/lib/types/meta-atlas-sdk/3DMap/meta-atlas-sdk-3D.d.ts.map +1 -0
  68. package/lib/types/meta-atlas-sdk/3DMap/threejs/ThreeJSManager.d.ts +92 -0
  69. package/lib/types/meta-atlas-sdk/3DMap/threejs/ThreeJSManager.d.ts.map +1 -0
  70. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/CameraSync.d.ts.map +1 -0
  71. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/CameraUtils.d.ts.map +1 -0
  72. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/constants.d.ts.map +1 -0
  73. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/suncalc.d.ts.map +1 -0
  74. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/utils.d.ts +1 -1
  75. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/utils.d.ts.map +1 -0
  76. package/lib/types/meta-atlas-sdk/3DMap/types/aeroport.d.ts +14 -0
  77. package/lib/types/meta-atlas-sdk/3DMap/types/aeroport.d.ts.map +1 -0
  78. package/lib/types/meta-atlas-sdk/3DMap/types/render-manager.interface.d.ts +130 -0
  79. package/lib/types/meta-atlas-sdk/3DMap/types/render-manager.interface.d.ts.map +1 -0
  80. package/lib/types/meta-atlas-sdk/3DMap/utils/EventBus.d.ts +35 -0
  81. package/lib/types/meta-atlas-sdk/3DMap/utils/EventBus.d.ts.map +1 -0
  82. package/lib/types/meta-atlas-sdk/3DMap/utils/colors.d.ts +8 -0
  83. package/lib/types/meta-atlas-sdk/3DMap/utils/colors.d.ts.map +1 -0
  84. package/lib/types/meta-atlas-sdk/3DMap/utils/feature-transform.d.ts +12 -0
  85. package/lib/types/meta-atlas-sdk/3DMap/utils/feature-transform.d.ts.map +1 -0
  86. package/lib/types/meta-atlas-sdk/3DMap/utils/helper.d.ts +2 -0
  87. package/lib/types/meta-atlas-sdk/3DMap/utils/helper.d.ts.map +1 -0
  88. package/lib/types/meta-atlas-sdk/IfcModelLoader/index.d.ts +14 -0
  89. package/lib/types/meta-atlas-sdk/IfcModelLoader/index.d.ts.map +1 -0
  90. package/lib/types/meta-atlas-sdk/MetaAtlasCore/custom-map-objects-manager.d.ts +57 -0
  91. package/lib/types/meta-atlas-sdk/MetaAtlasCore/custom-map-objects-manager.d.ts.map +1 -0
  92. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-state.d.ts +4 -0
  93. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-state.d.ts.map +1 -0
  94. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-types.d.ts +45 -0
  95. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-types.d.ts.map +1 -0
  96. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-utils.d.ts +72 -0
  97. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-utils.d.ts.map +1 -0
  98. package/lib/types/meta-atlas-sdk/MetaAtlasCore/{focustree.d.ts → focus-core/focustree.d.ts} +376 -131
  99. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focustree.d.ts.map +1 -0
  100. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/index.d.ts +661 -0
  101. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/index.d.ts.map +1 -0
  102. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts +37 -407
  103. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts.map +1 -1
  104. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.d.ts.map +1 -1
  105. package/lib/types/meta-atlas-sdk/{customerLayer.d.ts → MetaAtlasCore/shared-layers/customerLayer.d.ts} +530 -536
  106. package/lib/types/meta-atlas-sdk/{customerLayer.d.ts.map → MetaAtlasCore/shared-layers/customerLayer.d.ts.map} +1 -1
  107. package/lib/types/meta-atlas-sdk/MetaAtlasCore/shared-layers/customerLayerService.d.ts +108 -0
  108. package/lib/types/meta-atlas-sdk/MetaAtlasCore/shared-layers/customerLayerService.d.ts.map +1 -0
  109. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts +52 -413
  110. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts.map +1 -1
  111. package/lib/types/meta-atlas-sdk/utils/helpers.d.ts.map +1 -1
  112. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts +5 -0
  113. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts.map +1 -1
  114. package/lib/types/react/MetaAtlasMap.d.ts.map +1 -1
  115. package/lib/types/react/hooks/useCustomMapObject/index.d.ts +3 -0
  116. package/lib/types/react/hooks/useCustomMapObject/index.d.ts.map +1 -0
  117. package/lib/types/react/hooks/useCustomMapObject/types.d.ts +30 -0
  118. package/lib/types/react/hooks/useCustomMapObject/types.d.ts.map +1 -0
  119. package/lib/types/react/hooks/useFocus/index.d.ts.map +1 -1
  120. package/lib/types/react/hooks/useFocus/types.d.ts +11 -0
  121. package/lib/types/react/hooks/useFocus/types.d.ts.map +1 -1
  122. package/lib/types/react/hooks/useMapEvents/index.d.ts.map +1 -1
  123. package/lib/types/react/hooks/useMapOverlays/index.d.ts.map +1 -1
  124. package/lib/types/react/hooks/useMapOverlays/types.d.ts +16 -0
  125. package/lib/types/react/hooks/useMapOverlays/types.d.ts.map +1 -1
  126. package/lib/types/react/hooks/useMetaAtlas/index.d.ts.map +1 -1
  127. package/lib/types/react/index.d.ts +3 -0
  128. package/lib/types/react/index.d.ts.map +1 -1
  129. package/lib/types/react/stores/useMapDataStore.d.ts +2 -0
  130. package/lib/types/react/stores/useMapDataStore.d.ts.map +1 -1
  131. package/lib/types/react/stores/useMetaAtlasStore.d.ts +2 -0
  132. package/lib/types/react/stores/useMetaAtlasStore.d.ts.map +1 -1
  133. package/lib/types/react/types/index.d.ts +8 -0
  134. package/lib/types/react/types/index.d.ts.map +1 -1
  135. package/package.json +18 -9
  136. package/lib/cjs/index.js +0 -642
  137. package/lib/cjs/react/index.js +0 -642
  138. package/lib/esm/index.js +0 -642
  139. package/lib/esm/react/index.js +0 -642
  140. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts.map +0 -1
  141. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts.map +0 -1
  142. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts.map +0 -1
  143. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts.map +0 -1
  144. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts.map +0 -1
  145. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.d.ts.map +0 -1
  146. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts +0 -28
  147. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts.map +0 -1
  148. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focustree.d.ts.map +0 -1
  149. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts +0 -5156
  150. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts.map +0 -1
  151. /package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/CameraSync.d.ts +0 -0
  152. /package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/CameraUtils.d.ts +0 -0
  153. /package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/constants.d.ts +0 -0
  154. /package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/suncalc.d.ts +0 -0
@@ -0,0 +1,314 @@
1
+ import { Map as MaplibreMap, CustomLayerInterface, MapOptions, LngLatBounds } from 'maplibre-gl';
2
+ import * as THREE from 'three';
3
+ import { ModelSettings } from './types/modelSettings';
4
+ import { CameraMatrix } from './types/cameraMatrix';
5
+ import { PanoramaSettings } from './types/panoramaSettings';
6
+ import { ExtrusionSettings } from './types/extrusionSettings';
7
+ import Jewel from './Jewel';
8
+ import { LegacyFloor as Floor } from './types/aeroport-legacy';
9
+ import AppMarker from './Marker';
10
+ import CustomThreeJSWrapper from './CustomThreeJsWrapper/CustomThreeJsWrapper';
11
+ import { IfcModelLoader } from '../../IfcModelLoader';
12
+ import { MetaAtlasCore } from '../../MetaAtlasCore/meta-atlas-sdk-core';
13
+ import { MetaAtlasSdk } from '../../meta-atlas-sdk';
14
+ type RenderingMode = '2d' | '3d';
15
+ type MapObjectFeature = 'extrusion' | 'marker';
16
+ export declare enum ViewMode {
17
+ MODE_2D = "2D",
18
+ MODE_3D = "3D",
19
+ MODE_3D_WITH_EXTRUSION = "MODE_3D_WITH_EXTRUSION"
20
+ }
21
+ export declare enum CameraFeedStatus {
22
+ READY = "ready",
23
+ NOT_READY = "not_ready"
24
+ }
25
+ export default class MainMap {
26
+ static mainInstance: MainMap | null;
27
+ /**
28
+ * Maplibre instance of the map. Can use all of Maplibre methods and properties from
29
+ * this public property
30
+ */
31
+ map: MaplibreMap;
32
+ /**
33
+ * ThreeBox property instance. Can use all of ThreeBox methods and properties
34
+ * from this public property
35
+ */
36
+ threebox: CustomThreeJSWrapper;
37
+ ifcLoader: IfcModelLoader;
38
+ metaAtlasCore: MetaAtlasCore;
39
+ metaAtlasSDK: MetaAtlasSdk;
40
+ marker: AppMarker;
41
+ jewel: Jewel;
42
+ mapCameraMatrix: CameraMatrix;
43
+ activeModel: THREE.Group;
44
+ removedObject: MapObjectFeature;
45
+ floorsModel: Map<string, any>;
46
+ extrusions: Map<string, any[]>;
47
+ lines: Map<string, any[]>;
48
+ activeExtrusions: any[];
49
+ segments: any[];
50
+ boundedZoom: any;
51
+ private hiddenWhatTaxonomies;
52
+ private animationFeatures;
53
+ private activeMicrophoneBubbles;
54
+ private microphonePositions;
55
+ private bubbleTimeouts;
56
+ /**
57
+ * Default Zoom Settings
58
+ */
59
+ zoomSettings: {
60
+ far: number;
61
+ mediumStart: number;
62
+ mediumEnd: number;
63
+ near: number;
64
+ close: number;
65
+ maxClose: number;
66
+ inside3DModel: number;
67
+ };
68
+ defaultModelId: string;
69
+ is3D: boolean;
70
+ selectedExtrusion: THREE.Group;
71
+ currentBuildingID: string;
72
+ currentExploreMode: string;
73
+ private iconLayers;
74
+ private viewMode;
75
+ /**
76
+ * Default Maplibre settings. Can override if added into the contstructor of
77
+ * `MainMap()`
78
+ */
79
+ private _mapDefaultSettings;
80
+ private _defaultExtrusionSettins;
81
+ private animationsDuration;
82
+ private selectedFloor;
83
+ cameraFeedStatus: CameraFeedStatus;
84
+ onClick: (isOpen: boolean) => void;
85
+ private transitionHeight;
86
+ private fadeOutHeight;
87
+ private _stats;
88
+ private _selectedExtrusionBound;
89
+ private jewel3DMapLayer;
90
+ showTooltips: boolean;
91
+ currentIndex: number;
92
+ excludeRoute: boolean;
93
+ securityPlacesHit: any;
94
+ securityFloorsComing: any;
95
+ constructor(metaAtlasSDK: MetaAtlasSdk);
96
+ init(map2D: MaplibreMap): void;
97
+ loadIfcModel(path: string, coordinates: number[]): Promise<any>;
98
+ private initJewel;
99
+ private onExtrusionClick;
100
+ getViewMode(): ViewMode;
101
+ setViewMode(viewMode: ViewMode): void;
102
+ filterWhatTaxonomy(whatTaxonomies: string[]): void;
103
+ getSelectedFloor(): Floor;
104
+ private toggleLayersVisibility;
105
+ removeCurrentBuilding(): void;
106
+ private setupJewel3DMap;
107
+ setupLiveRTLSAssetsLayer(assetData: any): void;
108
+ clearLiveRTLSAssetsLayer(): void;
109
+ clearLiveRTLSPathLayer(): void;
110
+ clearLiveHeatmapLayer(): void;
111
+ clearHistoricalHeatmapLayer(): void;
112
+ setupLiveHeatmapLayer(cameraData: any[]): void;
113
+ setupHistoricalHeatmapLayer(cameraData: any[]): void;
114
+ private generateRandomPointsInPolygon;
115
+ private isPointInPolygon;
116
+ private generateHeatmapPointsFromCameraData;
117
+ setupLiveRTLSPathLayer(assetData: any): void;
118
+ private setupRTLSAssetsLayer;
119
+ clearAssetPath(): void;
120
+ updateAssetPath(lineFeature: any): void;
121
+ private startAnimation;
122
+ private showFloorsBasedOnSelectedFloor;
123
+ private showFloorsBelow;
124
+ private hideFloorsAbove;
125
+ private createSelectedBuildingPlace;
126
+ /**
127
+ * Creates extrusions for a given place and returns an array of created extrusions.
128
+ * @param place The Place object to create extrusions for.
129
+ * @param floor The Floor object the place belongs to.
130
+ * @param layerId The layer ID to use for afterLayerId.
131
+ * @returns An array of created extrusion objects.
132
+ */
133
+ private createExtrusionsForPlace;
134
+ private showSegmentsOnCurrentFloor;
135
+ updateNavigationButtons(): void;
136
+ private updateNavigationContent;
137
+ getLastValueFromTaxonomy: (taxonomy: string) => string;
138
+ setActiveSegment(index: number): void;
139
+ moveCameraToSegment(segment: any): void;
140
+ changeSegmentColor(segment: any): void;
141
+ setDefaultSegmentsColor(): void;
142
+ private showNavigationBar;
143
+ private initNavigationComponentClickEvent;
144
+ private createSelectedBuildingFloor;
145
+ private showFloor;
146
+ private showExtrusionsOnFloor;
147
+ private hideFloor;
148
+ private hideExtrusions;
149
+ private fadeIn;
150
+ private fadeOut;
151
+ showBackToMapButton(): void;
152
+ /**
153
+ * Creates a Threebox instance of the class.
154
+ * @param map Maplibre instance to initialize threebox
155
+ * @returns Threebox class instance created
156
+ */
157
+ private initThreebox;
158
+ private initIfcLoader;
159
+ /**
160
+ * Handles different zoom events based on current zoom and preferred one.
161
+ * Usually used when we want to show a model at a certain zoom distance.
162
+ */
163
+ private _onMapZoom;
164
+ /**
165
+ * Add a new location to the map. Creates a button click event to go to selected location.
166
+ * @param id Id of the button element added to handle the click event to go to this location
167
+ * @param options Map Options for this location
168
+ */
169
+ addLocation(id: string, name: string, options: Partial<MapOptions>): void;
170
+ private _createButtonElement;
171
+ /**
172
+ * Creates a custom layer based on maplibre CustomLayerInterface.
173
+ * @param id ID of the layer
174
+ * @param rendering Rendering mode
175
+ * @param onAdd Callback function that handles the event when the layer is added
176
+ * @returns Layer
177
+ */
178
+ createCustomLayer(id: string, rendering: RenderingMode): CustomLayerInterface;
179
+ addExtrusion(settings: ExtrusionSettings, hasMouseEvents?: boolean, isReAdding?: boolean): THREE.Mesh<THREE.ExtrudeGeometry, any, THREE.Object3DEventMap>;
180
+ private _onExtrusionMouseHover;
181
+ private _onExtrusionMouseOut;
182
+ private _onSelectedExtrusion;
183
+ private _createOutlineOnExtrusion;
184
+ /**
185
+ * Creates a 3D model and adds it on maplibre based on the position, rotation, height and other settings defined in this method.
186
+ * @param id ID of the model
187
+ * @param modelUrl Model full path
188
+ * @param modelSettings Model settings; type of `ModelSettings`
189
+ * @param panoramaSettings Panorama settings (optional); type of `PanoramaSettings`. If no panorama is added, 3D Model click event will do nothing.
190
+ */
191
+ addModelOnMap(id: string, modelUrl: string, modelSettings: ModelSettings, panoramaSettings?: PanoramaSettings[]): void;
192
+ setMapBoundsConstraints(bounds: LngLatBounds): void;
193
+ /**
194
+ * Get model settings transformed from LngLat from MercatorCoordinate.
195
+ * @param modelSettings Model settings to pass to MercatorCoordinate
196
+ * @returns Model rotation and transformation.
197
+ */
198
+ getModelSettingsAsMercatorCoordinates(modelSettings: ModelSettings): {
199
+ modelTransform: {
200
+ translateX: number;
201
+ translateY: number;
202
+ translateZ: number;
203
+ rotateX: number;
204
+ rotateY: number;
205
+ rotateZ: number;
206
+ scale: number;
207
+ };
208
+ modelRotate: THREE.Vector3;
209
+ };
210
+ /**
211
+ * Removes a 3D model from maplibre. The model should be already added on the map.
212
+ * @param id ID of the model to remove.
213
+ */
214
+ removeModelById(id: string): Promise<void>;
215
+ /**
216
+ * Handles 3D model click event. If there is a panorama texture present,
217
+ * it will zoom in the model and open the POI, else will do nothing (TBD)
218
+ * @param event Mouse event coming from Threebox
219
+ */
220
+ private _on3DModelClick;
221
+ /**
222
+ * Creates a webgl canvas element to use for the POI
223
+ * @returns Canvas element
224
+ */
225
+ private _createMainCanvas;
226
+ /**
227
+ * Destroys the webgl canvas element created.
228
+ */
229
+ private destroyMainCanvas;
230
+ private exitVirtualTourEvent;
231
+ private backToMapEvent;
232
+ handleFloorChange(selectedValue: string): Promise<void>;
233
+ private changeFloor;
234
+ private hideAllMaplibreLayers;
235
+ private _showButton;
236
+ private _hideButton;
237
+ private _onExitVirtualTour;
238
+ private _onBackToMap;
239
+ /**
240
+ * Saves camera matrix property if needed to be used for previous/next camera position
241
+ * when using map.flyTo or easeTo methods
242
+ */
243
+ saveCameraMatrix(): void;
244
+ private _easing;
245
+ private _animate;
246
+ private animate;
247
+ private _toggleButtonContainers;
248
+ /**
249
+ * Applies color coding to security extrusions based on camera count data.
250
+ */
251
+ private applySecurityLayerColorCoding;
252
+ /**
253
+ * Sets up security layer with camera data for color coding based on count.
254
+ */
255
+ setupSecurityLayerWithCameraData(cameraData: any[]): void;
256
+ /**
257
+ * Clears the security layer from the map.
258
+ */
259
+ clearSecurityLayer(): void;
260
+ /**
261
+ * Shows a microphone event bubble at the specified microphone location in 3D space
262
+ * @param eventData - The microphone event data
263
+ */
264
+ showMicrophoneEventBubble(eventData: any): void;
265
+ /**
266
+ * Hides the bubble for a specific microphone
267
+ * @param microphoneNumber - The microphone number
268
+ */
269
+ hideMicrophoneEventBubble(microphoneNumber: string): void;
270
+ /**
271
+ * Clears all active microphone bubbles
272
+ */
273
+ clearAllMicrophoneBubbles(): void;
274
+ /**
275
+ * Sets the position for a specific microphone
276
+ * @param microphoneNumber - The microphone number
277
+ * @param coordinates - [longitude, latitude] coordinates
278
+ * @param height - Height above ground (default 1.5m)
279
+ */
280
+ setMicrophonePosition(microphoneNumber: string, coordinates: [number, number], height?: number): void;
281
+ /**
282
+ * Extracts microphone number from various name formats like "Mic 1", "Microphone 4", etc.
283
+ * @param input - Input string or object containing microphone identifier
284
+ * @returns Microphone number as string or null if not found
285
+ */
286
+ private extractMicrophoneNumber;
287
+ /**
288
+ * Extracts coordinates from property_geojson features
289
+ * @param geojson - GeoJSON object from asset
290
+ * @returns Coordinates array [lng, lat] or null if not found
291
+ */
292
+ private extractCoordinatesFromGeojson;
293
+ /**
294
+ * Builds a map of microphone positions from microphone assets
295
+ * @param microphoneAssets - Array of microphone assets from mbsMicrophoneAssets
296
+ * @returns Map of microphone numbers to 3D positions
297
+ */
298
+ setMicrophonePositionsFromAssets(microphoneAssets: any[]): void;
299
+ /**
300
+ * Calculates a default position for a microphone based on its number
301
+ * This is a fallback when no explicit position is provided
302
+ * @param microphoneNumber - The microphone number
303
+ * @returns Default Vector3 position
304
+ */
305
+ private calculateDefaultMicrophonePosition;
306
+ /**
307
+ * Sets up microphone event layer with positioning from assets and event data
308
+ * @param microphoneData - Event data for microphones
309
+ * @param microphoneAssets - Asset data containing positions (optional, uses mbsMicrophoneAssets)
310
+ */
311
+ setupMicrophoneEventLayer(microphoneData: any[], microphoneAssets?: any[]): void;
312
+ }
313
+ export {};
314
+ //# sourceMappingURL=MainMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainMap.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/MainMap.ts"],"names":[],"mappings":"AACA,OAAO,EACL,GAAG,IAAI,WAAW,EAClB,oBAAoB,EAIpB,UAAU,EAEV,YAAY,EACb,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB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GAAG,IAAI;CAsEjF"}
@@ -0,0 +1,17 @@
1
+ import { Marker } from "maplibre-gl";
2
+ import { MarkerData } from "./types/marker-data";
3
+ export default class AppMarker {
4
+ selectedMarker: Marker;
5
+ private _mainMap;
6
+ private _map;
7
+ private _selectedMarkerData;
8
+ private _markers;
9
+ constructor();
10
+ addMarker(data: MarkerData): Marker;
11
+ removeMarker(marker: Marker): void;
12
+ addMultipleMarkers(data: MarkerData[]): void;
13
+ showMarkerOnBackClick(): void;
14
+ private _onMarkerClick;
15
+ private showModelOnMarkerSelect;
16
+ }
17
+ //# sourceMappingURL=Marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/Marker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMjD,MAAM,CAAC,OAAO,OAAO,SAAS;IACtB,cAAc,EAAE,MAAM,CAAC;IAE9B,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,mBAAmB,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAgB;;IAOzB,SAAS,CAAE,IAAI,EAAE,UAAU;IAqB3B,YAAY,CAAE,MAAM,EAAE,MAAM;IAW5B,kBAAkB,CAAE,IAAI,EAAE,UAAU,EAAE;IAMtC,qBAAqB;YAMd,cAAc;IA6B5B,OAAO,CAAC,uBAAuB;CAM/B"}
@@ -0,0 +1,71 @@
1
+ import { Vector3, Scene } from 'three';
2
+ import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer.js';
3
+ export type BubbleSeverity = 'normal' | 'warning' | 'critical' | 'severe';
4
+ export interface BubbleEventData {
5
+ event: string;
6
+ microphoneNumber: string;
7
+ severity?: BubbleSeverity;
8
+ timestamp?: string;
9
+ }
10
+ /**
11
+ * Factory class for creating microphone event bubbles as HTML elements
12
+ * that can be positioned in 3D space using CSS2DRenderer
13
+ */
14
+ export declare class MicrophoneBubbleFactory {
15
+ /**
16
+ * Creates a styled HTML bubble element for displaying microphone events
17
+ * @param eventText - The event text to display
18
+ * @param microphoneNumber - The microphone number/ID
19
+ * @param severity - The severity level of the event
20
+ * @returns HTML div element styled as a chat bubble
21
+ */
22
+ static createBubbleElement(eventText: string, microphoneNumber: string, severity?: BubbleSeverity): HTMLDivElement;
23
+ /**
24
+ * Creates a CSS2DObject from a bubble element and positions it in 3D space
25
+ * @param bubbleElement - The HTML bubble element
26
+ * @param position3D - The 3D world position for the bubble
27
+ * @returns CSS2DObject that can be added to the THREE.js scene
28
+ */
29
+ static createBubbleCSS2DObject(bubbleElement: HTMLDivElement, position3D: Vector3): CSS2DObject;
30
+ /**
31
+ * Updates the content of an existing bubble element
32
+ * @param bubbleElement - The bubble element to update
33
+ * @param newText - The new event text
34
+ * @param newSeverity - Optional new severity level
35
+ */
36
+ static updateBubbleContent(bubbleElement: HTMLDivElement, newText: string, newSeverity?: BubbleSeverity): void;
37
+ /**
38
+ * Safely removes a bubble element and its CSS2DObject from the scene
39
+ * @param css2dObject - The CSS2DObject to remove
40
+ * @param scene - The THREE.js scene to remove from
41
+ */
42
+ static destroyBubbleElement(css2dObject: CSS2DObject, scene: Scene): void;
43
+ /**
44
+ * Determines the appropriate severity level based on event text
45
+ * @param eventText - The event text to analyze
46
+ * @returns BubbleSeverity level
47
+ */
48
+ static determineSeverity(eventText: string): BubbleSeverity;
49
+ /**
50
+ * Gets auto-dismiss timeout based on severity
51
+ * @param severity - The bubble severity level
52
+ * @returns Timeout in milliseconds
53
+ */
54
+ static getAutoDissmissTimeout(severity: BubbleSeverity): number;
55
+ /**
56
+ * Sanitizes text content to prevent XSS
57
+ * @param text - Raw text input
58
+ * @returns Sanitized text
59
+ */
60
+ private static sanitizeText;
61
+ /**
62
+ * Creates a bubble with automatic severity detection
63
+ * @param eventData - The event data containing text and microphone info
64
+ * @returns Object containing the HTML element and detected severity
65
+ */
66
+ static createBubbleFromEventData(eventData: BubbleEventData): {
67
+ element: HTMLDivElement;
68
+ severity: BubbleSeverity;
69
+ };
70
+ }
71
+ //# sourceMappingURL=MicrophoneBubbleFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MicrophoneBubbleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/MicrophoneBubbleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE1E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,qBAAa,uBAAuB;IAClC;;;;;;OAMG;IACH,MAAM,CAAC,mBAAmB,CACxB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,EACxB,QAAQ,GAAE,cAAyB,GAClC,cAAc;IA8BjB;;;;;OAKG;IACH,MAAM,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,GAAG,WAAW;IAmB/F;;;;;OAKG;IACH,MAAM,CAAC,mBAAmB,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI;IAuB9G;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IA+BzE;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc;IA2B3D;;;;OAIG;IACH,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAa/D;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAM3B;;;;OAIG;IACH,MAAM,CAAC,yBAAyB,CAAC,SAAS,EAAE,eAAe,GAAG;QAC5D,OAAO,EAAE,cAAc,CAAC;QACxB,QAAQ,EAAE,cAAc,CAAC;KAC1B;CASF"}
@@ -0,0 +1,6 @@
1
+ import { MapOptions } from "maplibre-gl";
2
+ export declare const jewelPosition: Partial<MapOptions>;
3
+ export declare const t1Position: Partial<MapOptions>;
4
+ export declare const yioChuKangPosition: Partial<MapOptions>;
5
+ export declare const constructionSitePosition: Partial<MapOptions>;
6
+ //# sourceMappingURL=aeroport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aeroport.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/aeroport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,UAAU,CAM7C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,UAAU,CAM1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,UAAU,CAKlD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,UAAU,CAKxD,CAAC"}
@@ -0,0 +1,14 @@
1
+ interface MapObjectClickEvent {
2
+ mapObjectId?: string;
3
+ coordinates?: number[];
4
+ name?: string;
5
+ whatDimension?: string;
6
+ whereDimension?: string;
7
+ geometry?: Record<string, unknown>;
8
+ properties?: Record<string, unknown>;
9
+ metaData?: string;
10
+ direction?: string;
11
+ }
12
+ export declare function createMapObject(info: any): MapObjectClickEvent;
13
+ export {};
14
+ //# sourceMappingURL=deckgl-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deckgl-helper.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/deckgl-helper.ts"],"names":[],"mappings":"AAAA,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAa9D"}
@@ -0,0 +1,4 @@
1
+ import { Map } from "maplibre-gl";
2
+ export declare function getBiggestArray(arr: number[][][][]): number[][][];
3
+ export declare function changeBackgroundColor(map: Map, color?: string): void;
4
+ //# sourceMappingURL=helper-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper-utils.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/helper-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,wBAAgB,eAAe,CAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,GAAI,MAAM,EAAE,EAAE,EAAE,CAInE;AAED,wBAAgB,qBAAqB,CAAE,GAAG,EAAE,GAAG,EAAE,KAAK,SAAY,QAEjE"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @param {*} pos this is the name of viewpoint ex: "MainAnim_002"
3
+ * @param {*} type this is day or night
4
+ *
5
+ * sceneConfig.path = folder location of images. +
6
+ * pos <MainAnim_002 which is folder of this group of photos of this viewpoint> + / + pos<Mainpoint jpg img> +
7
+ * @<name of img> + type <day> + i <number of img> + _ + quality<name of jpg> + '.jpg' <extension
8
+ *
9
+ * @returns Cube map urls array
10
+ */
11
+ export declare function getCubemapUrls(fileName: string): string[];
12
+ export declare function getCubemapUrl(fileName: string): string;
13
+ //# sourceMappingURL=hotspot-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hotspot-utils.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/hotspot-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAE,QAAQ,EAAE,MAAM,YAO/C;AAED,wBAAgB,aAAa,CAAE,QAAQ,EAAE,MAAM,UAE9C"}
@@ -0,0 +1,3 @@
1
+ export declare function showLoader(): void;
2
+ export declare function hideLoader(): void;
3
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/loader.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,IAAI,IAAI,CAKjC;AAED,wBAAgB,UAAU,IAAI,IAAI,CAKjC"}
@@ -0,0 +1,12 @@
1
+ import { Color, IconLayer, Position, TripsLayer } from 'deck.gl';
2
+ import { LegacyFloor as Floor } from './types/aeroport-legacy';
3
+ type Trip = {
4
+ color: Color;
5
+ path: Position[];
6
+ };
7
+ export declare const createPathLayers: (floor: Floor) => TripsLayer<Trip, {}>[];
8
+ export declare const createPathLayer: (trips: Trip[]) => TripsLayer<Trip, {}>;
9
+ export declare const createLiveCameraIconLayer: (connectionStatus: string, onClick: (isOpen: boolean) => void, isVisible?: boolean) => IconLayer;
10
+ export declare const createLiveCameraIconLayers: (connectionStatus: string, onClick: (isOpen: boolean) => void, isVisible?: boolean) => IconLayer[];
11
+ export {};
12
+ //# sourceMappingURL=mapIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapIcons.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/mapIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAa,UAAU,EAAE,MAAM,SAAS,CAAC;AAI5E,OAAO,EAAE,WAAW,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAW/D,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,KAAK,2BAM5C,CAAC;AA4FF,eAAO,MAAM,eAAe,UAAW,IAAI,EAAE,yBAY5C,CAAC;AAEF,eAAO,MAAM,yBAAyB,qBAClB,MAAM,oBACN,OAAO,KAAK,IAAI,cACvB,OAAO,KACjB,SA6BF,CAAC;AAEF,eAAO,MAAM,0BAA0B,qBACnB,MAAM,oBACN,OAAO,KAAK,IAAI,cACvB,OAAO,KACjB,SAAS,EAGX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MarkerData } from "./types/marker-data";
2
+ export declare const yioChuKangMarkers: MarkerData[];
3
+ export declare const constructionSiteMarkers: MarkerData[];
4
+ //# sourceMappingURL=markers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/markers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,eAAO,MAAM,iBAAiB,EAAE,UAAU,EAyCzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,EAa/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const generateAssetMovementTimestamps: (startDate: string, endDate: string, totalSteps: number, assetWhatTaxonomy: any) => {
2
+ time: string;
3
+ date: string;
4
+ speed: number;
5
+ }[];
6
+ //# sourceMappingURL=timestampUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestampUtils.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/timestampUtils.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,+BAA+B,cAC/B,MAAM,WACR,MAAM,cACH,MAAM,qBACC,GAAG;;;;GA+BvB,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { metaFeature } from "../../../MetaAtlasCore/meta-atlas-sdk-core";
2
+ /**
3
+ * Legacy Floor interface with places array
4
+ * Used by legacy code that loads floor data from API
5
+ */
6
+ export interface LegacyFloor {
7
+ id: string;
8
+ name: string;
9
+ groundStackHeight: number;
10
+ levelIndex: number;
11
+ zoomLevel: number;
12
+ places: Place[];
13
+ isHidden: boolean;
14
+ }
15
+ export interface Place {
16
+ id: string;
17
+ name: string;
18
+ floor: string;
19
+ originalColor?: string;
20
+ geoData: any;
21
+ taxonomy1Path: string;
22
+ taxonomy2Path: string;
23
+ metaFeature: metaFeature;
24
+ }
25
+ export interface Building {
26
+ name: string;
27
+ taxonomyPath: string;
28
+ properties: BuildingProperties;
29
+ floors: Map<string, LegacyFloor>;
30
+ }
31
+ export interface BuildingProperties {
32
+ zoom: number;
33
+ center: number[];
34
+ bearing: number;
35
+ }
36
+ export interface AeroportData {
37
+ buildings: Building[];
38
+ }
39
+ export interface CategoriesData {
40
+ id: string;
41
+ userId: string;
42
+ tenancierId: string;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ deletedAt: string;
46
+ name: {
47
+ cn: string;
48
+ en: string;
49
+ };
50
+ taxonomyId: string;
51
+ subCategoryId: string;
52
+ key: string;
53
+ depth: number;
54
+ version: string;
55
+ taxonomyPath: string;
56
+ properties: BuildingProperties;
57
+ property_camera: string;
58
+ isSearchableInSdk: boolean;
59
+ property_type: string;
60
+ }
61
+ export interface FloorLayout {
62
+ defaultFloorIndex: number;
63
+ floorById: LegacyFloor;
64
+ }
65
+ //# sourceMappingURL=aeroport-legacy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aeroport-legacy.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/legacy/types/aeroport-legacy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,OAAO,EAAE,GAAG,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC5B,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;KACX,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,WAAW,CAAC;CACvB"}
@@ -0,0 +1,25 @@
1
+ export interface UrlParams {
2
+ /**
3
+ * Object id
4
+ */
5
+ id?: string;
6
+ /**
7
+ * Limit fetched results
8
+ */
9
+ limit?: number;
10
+ /**
11
+ * Used for Pagination
12
+ */
13
+ skip?: number;
14
+ taxonomyPath?: string;
15
+ /**
16
+ * Taxonomy 1 path
17
+ */
18
+ taxonomy1Path?: string;
19
+ /**
20
+ * Taxonomy 2 path
21
+ */
22
+ taxonomy2Path?: string;
23
+ like?: boolean;
24
+ }
25
+ //# sourceMappingURL=apiParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiParams.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/legacy/types/apiParams.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf"}
@@ -0,0 +1,8 @@
1
+ import { LngLat } from "maplibre-gl";
2
+ export interface CameraMatrix {
3
+ center: LngLat;
4
+ zoom: number;
5
+ pitch?: number;
6
+ bearing?: number;
7
+ }
8
+ //# sourceMappingURL=cameraMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cameraMatrix.d.ts","sourceRoot":"","sources":["../../../../../../src/meta-atlas-sdk/3DMap/legacy/types/cameraMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}