@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,322 @@
1
+ import type { Feature } from 'geojson';
2
+ import { HeatmapLayer } from '@deck.gl/aggregation-layers';
3
+ import { LegacyFloor as Floor } from './types/aeroport-legacy';
4
+ import { Color, IconLayer, TextLayer } from 'deck.gl';
5
+ import { MetaAtlasCore, metaFeature } from '../../MetaAtlasCore/meta-atlas-sdk-core';
6
+ import { DeckglLayerManager } from './DeckglLayerManager';
7
+ import { Layer } from '@deck.gl/core';
8
+ /**
9
+ * Interface representing icon data structure for map icons
10
+ */
11
+ interface IconData {
12
+ /** Height above ground level for the icon */
13
+ height: number;
14
+ /** Geographic coordinates [longitude, latitude, height] */
15
+ coordinates: [longitude: number, latitude: number, height: number];
16
+ /** Taxonomy path for categorization */
17
+ taxonomy: string;
18
+ /** Override taxonomy for special cases */
19
+ overRideTaxonomy: string;
20
+ /** Optional text label for the icon */
21
+ text?: string;
22
+ /** Optional color for the icon/text */
23
+ name?: string;
24
+ color?: Color;
25
+ geometry?: any;
26
+ whatDimension?: string;
27
+ whereDimension?: string;
28
+ mapObjectId?: string;
29
+ }
30
+ /**
31
+ * Constants defining layer IDs for consistent referencing
32
+ */
33
+ export declare const LAYER_IDS: {
34
+ /** Layer ID for person location markers */
35
+ PERSON: string;
36
+ /** Layer ID for device location markers */
37
+ DEVICE: string;
38
+ /** Layer ID for equipment location markers */
39
+ EQUIPMENT: string;
40
+ /** Layer ID for person accuracy circles */
41
+ PERSON_ACCURACY: string;
42
+ /** Layer ID for device accuracy circles */
43
+ DEVICE_ACCURACY: string;
44
+ /** Layer ID for equipment accuracy circles */
45
+ EQUIPMENT_ACCURACY: string;
46
+ /** Layer ID for mbs queue heatmap */
47
+ MBS_QUEUE: string;
48
+ /** Layer ID for non mbs queue heatmap */
49
+ NON_MBS_QUEUE: string;
50
+ /** Layer ID for mbs crowd heatmap */
51
+ MBS_CROWD: string;
52
+ /** Layer ID for non mbs crowd heatmap */
53
+ NON_MBS_CROWD: string;
54
+ /** Layer ID for asset path lines */
55
+ ASSET_PATH: string;
56
+ /** Layer ID for icon layers */
57
+ ICONS: string;
58
+ /** Layer ID for live camera icons */
59
+ LIVE_CAMERAS: string;
60
+ /** Group ID for RTLS layers */
61
+ RTLS_GROUP: string;
62
+ RTLS_GROUP_LIVE: string;
63
+ /** Layer ID for event hall text */
64
+ EVENT_HALL: string;
65
+ /** Layer ID for car park text */
66
+ CAR_PARK: string;
67
+ /** Layer ID for booth text */
68
+ BOOTH: string;
69
+ /** Layer ID for other text */
70
+ OTHERS: string;
71
+ };
72
+ /**
73
+ * Constants defining layer IDs for live layers
74
+ */
75
+ export declare const LIVE_LAYER_IDS: {
76
+ /** Layer ID for live person location markers */
77
+ PERSON: string;
78
+ /** Layer ID for live device location markers */
79
+ DEVICE: string;
80
+ /** Layer ID for live equipment location markers */
81
+ EQUIPMENT: string;
82
+ /** Layer ID for live person accuracy circles */
83
+ PERSON_ACCURACY: string;
84
+ /** Layer ID for live device accuracy circles */
85
+ DEVICE_ACCURACY: string;
86
+ /** Layer ID for live equipment accuracy circles */
87
+ EQUIPMENT_ACCURACY: string;
88
+ /** Layer ID for live asset path lines */
89
+ ASSET_PATH: string;
90
+ LIVE_HEATMAP: string;
91
+ HISTORICAL_HEATMAP: string;
92
+ };
93
+ /**
94
+ * Extended GeoJSON Feature interface for RTLS assets with animation capabilities
95
+ */
96
+ export interface RTLSFeature extends Feature {
97
+ /** Unique identifier for the map object */
98
+ mapObjectId?: string;
99
+ /** Current coordinates for animated features */
100
+ currentCoord?: number[];
101
+ /** Feature properties specific to RTLS assets */
102
+ properties: {
103
+ /** Type of asset (person, device, or equipment) */
104
+ assetType: 'person' | 'device' | 'equipment';
105
+ /** Confidence level of the location data (0-1) */
106
+ confidence: number;
107
+ /** Direction of movement */
108
+ direction: string;
109
+ /** Flag indicating if this is an animated icon */
110
+ isAnimationIcon: boolean;
111
+ /** Bearing/orientation of the asset */
112
+ bearing: number;
113
+ /** Timestamps for animation sequence */
114
+ timeStamps: any[];
115
+ /** Geometry object for the asset path */
116
+ geometryObj: any;
117
+ /** Additional dynamic properties */
118
+ [key: string]: any;
119
+ };
120
+ /** Flag indicating if this feature has animation */
121
+ isAnimation?: boolean;
122
+ /** Route data for animated movement */
123
+ route?: any;
124
+ /** Animation counter for current position */
125
+ counter?: number;
126
+ /** Total number of animation steps */
127
+ steps?: number;
128
+ }
129
+ /**
130
+ * Factory class for creating deck.gl layers with various visualization types
131
+ *
132
+ * Responsibilities:
133
+ * - Creates layer objects from different data sources
134
+ * - Processes data for layer consumption
135
+ * - Provides utilities for layer creation and management
136
+ * - Handles RTLS asset visualization with animation support
137
+ * - Manages icon and text layer generation for map features
138
+ */
139
+ export declare class DeckglLayerFactory {
140
+ /** Translation matrix for 3D positioning */
141
+ private translationMatrix;
142
+ /** Model matrix for coordinate transformations */
143
+ private modelMatrix;
144
+ private selectedLocation;
145
+ animationFeatures: any[];
146
+ layerManager: DeckglLayerManager;
147
+ /**
148
+ * Creates a new DeckglLayerFactory instance
149
+ * Initializes transformation matrices for 3D positioning
150
+ */
151
+ constructor(layerManager: DeckglLayerManager);
152
+ /**
153
+ * Creates a heatmap layer for visualizing data density
154
+ *
155
+ * @param id - Unique identifier for the layer
156
+ * @param data - Array of data points for the heatmap
157
+ * @param options - Optional configuration overrides for the HeatmapLayer
158
+ * @returns Configured HeatmapLayer instance
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * const heatmapLayer = factory.createHeatmapLayer(
163
+ * 'density-heatmap',
164
+ * sensorData,
165
+ * { radiusPixels: 50, intensity: 2 }
166
+ * );
167
+ * ```
168
+ */
169
+ createHeatmapLayer(id: string, data: any[], options?: Partial<HeatmapLayer<any>>): Layer[];
170
+ /**
171
+ * Creates icon and text layers for a given floor
172
+ *
173
+ * @param floor - Floor data containing places and their geometries
174
+ * @param zoom - Current zoom level for visibility control
175
+ * @param isVisible - Overall visibility flag for the layers
176
+ * @param hiddenWhatTaxonomies - Array of taxonomy paths to exclude from display
177
+ * @returns Array containing [IconLayer, TextLayer] or empty array if no data
178
+ */
179
+ createIconLayers: (floor: Floor, hiddenWhatTaxonomies: string[], zoom: number) => (IconLayer<IconData, {}> | TextLayer<IconData, {}>)[];
180
+ /**
181
+ * Generates icon data from floor places for security-related features
182
+ *
183
+ * @param floor - Floor data containing places and taxonomies
184
+ * @param hiddenWhatTaxonomies - Taxonomy paths to exclude from generation
185
+ * @returns Array of IconData objects or undefined if no floor data
186
+ * @private
187
+ */
188
+ private generateMapIconData;
189
+ /**
190
+ * Creates an IconLayer from icon data
191
+ *
192
+ * @param iconData - Array of IconData objects
193
+ * @param zoom - Current zoom level for size calculations
194
+ * @param isVisible - Visibility flag for the layer
195
+ * @returns Configured IconLayer instance
196
+ * @private
197
+ */
198
+ private createIconLayer;
199
+ /**
200
+ * Creates a TextLayer from icon data for labels
201
+ *
202
+ * @param iconData - Array of IconData objects containing text labels
203
+ * @param zoom - Current zoom level for visibility and size control
204
+ * @param isVisible - Visibility flag for the layer
205
+ * @returns Configured TextLayer instance
206
+ * @private
207
+ */
208
+ private createTextLayer;
209
+ /**
210
+ * Creates all RTLS visualization layers from features
211
+ *
212
+ * @param features - Array of RTLSFeature objects
213
+ * @returns Array of configured GeoJsonLayer instances for RTLS visualization
214
+ */
215
+ createRTLSLayers(features: metaFeature[], isLive: boolean): any[];
216
+ createAssetPathLayers(features: any): any;
217
+ /**
218
+ * Creates a GeoJsonLayer for person location markers
219
+ *
220
+ * @param data - FeatureCollection containing person and device features
221
+ * @param layerId - Layer ID for the person layer
222
+ * @returns Configured GeoJsonLayer for person locations
223
+ * @private
224
+ */
225
+ private createPersonLayer;
226
+ /**
227
+ * Creates a GeoJsonLayer for person accuracy visualization circles
228
+ *
229
+ * @param data - FeatureCollection containing person features
230
+ * @param layerId - Layer ID for the person accuracy layer
231
+ * @returns Configured GeoJsonLayer for person accuracy circles
232
+ * @private
233
+ */
234
+ private createPersonAccuracyLayer;
235
+ /**
236
+ * Creates a GeoJsonLayer for device location markers
237
+ *
238
+ * @param data - FeatureCollection containing person and device features
239
+ * @param layerId - Layer ID for the device layer
240
+ * @returns Configured GeoJsonLayer for device locations
241
+ * @private
242
+ */
243
+ private createDeviceLayer;
244
+ /**
245
+ * Creates a GeoJsonLayer for device accuracy visualization circles
246
+ *
247
+ * @param data - FeatureCollection containing device features
248
+ * @param layerId - Layer ID for the device accuracy layer
249
+ * @returns Configured GeoJsonLayer for device accuracy circles
250
+ * @private
251
+ */
252
+ private createDeviceAccuracyLayer;
253
+ /**
254
+ * Creates a GeoJsonLayer for equipment location markers
255
+ *
256
+ * @param data - FeatureCollection containing equipment features
257
+ * @param layerId - Layer ID for the equipment layer
258
+ * @returns Configured GeoJsonLayer for equipment locations
259
+ * @private
260
+ */
261
+ private createEquipmentLayer;
262
+ /**
263
+ * Creates a GeoJsonLayer for equipment accuracy visualization circles
264
+ *
265
+ * @param data - FeatureCollection containing equipment features
266
+ * @param layerId - Layer ID for the equipment accuracy layer
267
+ * @returns Configured GeoJsonLayer for equipment accuracy circles
268
+ * @private
269
+ */
270
+ private createEquipmentAccuracyLayer;
271
+ /**
272
+ * Creates a GeoJsonLayer for asset path visualization
273
+ *
274
+ * @param data - FeatureCollection containing LineString geometries
275
+ * @param layerId - Layer ID for the asset path layer
276
+ * @returns Configured GeoJsonLayer for asset paths
277
+ * @private
278
+ */
279
+ private createAssetPathLayer;
280
+ /**
281
+ * Create and add RTLS layers from asset data
282
+ */
283
+ createRTLSLayersFromAssets(assets: any[]): void;
284
+ createLiveRTLSLayersFromAssets(assets: any[]): void;
285
+ clearLiveRTLSLayers(): void;
286
+ clearLiveRTLSPathLayers(): void;
287
+ createLiveRTLSPathLayersFromAssets(asset: any): void;
288
+ private updateLiveRTLSLayers;
289
+ private updateRTLSLayers;
290
+ private updateRTLSPathLayers;
291
+ UpdateLayers: (metaAtlasCore: MetaAtlasCore) => void;
292
+ /**
293
+ * Converts THREE.Color to RGB array format
294
+ *
295
+ * @param color - THREE.Color instance to convert
296
+ * @returns RGB array [r, g, b, a] with values 0-255
297
+ * @private
298
+ */
299
+ private convertColorsToRGB;
300
+ /**
301
+ * Processes RTLS assets and creates animated features for visualization
302
+ *
303
+ * @param assets - Array of asset data with location coordinates
304
+ * @returns Array of RTLSFeature objects with animation data
305
+ *
306
+ * @example
307
+ * ```typescript
308
+ * const rtlsFeatures = factory.createRTLSFeaturesFromAssets(assetData);
309
+ * const rtlsLayers = factory.createRTLSLayers(rtlsFeatures);
310
+ * ```
311
+ */
312
+ private createRTLSFeaturesFromAssets;
313
+ private createLiveRTLSFeaturesFromAssets;
314
+ /**
315
+ * Determines the asset type based on the asset name
316
+ * @param name - The asset name
317
+ * @returns The asset type ('person', 'device', or 'equipment')
318
+ */
319
+ private determineAssetType;
320
+ }
321
+ export {};
322
+ //# sourceMappingURL=DeckglLayerFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckglLayerFactory.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/DeckglLayerFactory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,OAAO,EAAY,MAAM,SAAS,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,WAAW,IAAI,KAAK,EAAS,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAY,SAAS,EAAc,MAAM,SAAS,CAAC;AAG5E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD;;GAEG;AACH,UAAU,QAAQ;IAChB,6CAA6C;IAC7C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/aggregation-layers';
4
+ import { DeckglLayerFactory } from './DeckglLayerFactory';
5
+ import { MetaAtlasSdk } from '../../meta-atlas-sdk';
6
+ import { metaFeature } from '../../MetaAtlasCore/meta-atlas-sdk-core';
7
+ import { EventEmitter } from './EventEmitter';
8
+ import MainMap from './MainMap';
9
+ export declare enum LAYER_DATA {
10
+ HEATMAPS = "heatmaps",
11
+ RTLS = "rtls",
12
+ ICONS = "icons"
13
+ }
14
+ export declare enum HeatmapLayerType {
15
+ NON_MBS_QUEUE = "queue",
16
+ MBS_QUEUE = "mbs-queue",
17
+ NON_MBS_CROWD = "crowd",
18
+ MBS_CROWD = "mbs-crowd"
19
+ }
20
+ interface LayersData {
21
+ heatmaps: metaFeature[];
22
+ rtls: metaFeature[];
23
+ icons: metaFeature[];
24
+ }
25
+ /**
26
+ * Centralized manager for all deck.gl layers
27
+ * Responsibilities:
28
+ * - Maintains layer registry
29
+ * - Manages layer ordering and visibility
30
+ * - Controls deck.gl overlay updates
31
+ * - Handles layer group management
32
+ */
33
+ export declare class DeckglLayerManager extends EventEmitter {
34
+ private map;
35
+ private overlay;
36
+ private layers;
37
+ private layerGroups;
38
+ private layersData;
39
+ metaAtlasSDK: MetaAtlasSdk;
40
+ selectedLocation: string;
41
+ mainMap: MainMap | null;
42
+ iconVisibility: boolean;
43
+ textVisibility: boolean;
44
+ layerFactory: DeckglLayerFactory;
45
+ constructor(metaAtlasSDK: MetaAtlasSdk | null);
46
+ setSelectedLocation(location: string): void;
47
+ setLayerData(layerData: LAYER_DATA, value: metaFeature[]): void;
48
+ clearHeatmapsData(): void;
49
+ clearGeneratedHeatmaps(): void;
50
+ appendGeneratedHeatmapsData(heatmapType: HeatmapLayerType, value: metaFeature[]): void;
51
+ getLayersData(): LayersData;
52
+ /**
53
+ * Initialize the deck.gl overlay (lazy initialization)
54
+ */
55
+ private initOverlay;
56
+ /**
57
+ * Get the deck.gl overlay instance
58
+ */
59
+ getOverlay(): MapboxOverlay;
60
+ /**
61
+ * Clean up resources
62
+ */
63
+ destroy(): void;
64
+ /**
65
+ * Add an individual layer to the manager
66
+ */
67
+ addLayer(layer: Layer): void;
68
+ /**
69
+ * Remove an individual layer from the manager
70
+ */
71
+ removeLayer(layerId: string): void;
72
+ /**
73
+ * Toggle visibility of an individual layer
74
+ */
75
+ toggleLayer(layerId: string, on: boolean): void;
76
+ /**
77
+ * Set a group of layers (replaces existing group with same ID)
78
+ */
79
+ setLayerGroup(groupId: string, layers: Layer[]): void;
80
+ /**
81
+ * Get a layer group by ID
82
+ */
83
+ getLayerGroup(groupId: string): Layer[] | undefined;
84
+ /**
85
+ * Remove a layer group
86
+ */
87
+ removeLayerGroup(groupId: string): void;
88
+ /**
89
+ * Clear all layers and layer groups
90
+ */
91
+ clearAll(): void;
92
+ /**
93
+ * Clear layers by type (live vs non-live)
94
+ */
95
+ clearLayers(isLive: boolean): void;
96
+ /**
97
+ * Add a heatmap layer (convenience method)
98
+ */
99
+ addMbsQueueHeatmap(data: any[], options?: Partial<HeatmapLayer<any>>): void;
100
+ addNonMbsQueueHeatmap(data: any[], options?: Partial<HeatmapLayer<any>>): void;
101
+ addMbsCrowdHeatmap(data: any[], options?: Partial<HeatmapLayer<any>>): void;
102
+ addNonMbsCrowdHeatmap(data: any[], options?: Partial<HeatmapLayer<any>>): void;
103
+ /**
104
+ * Internal method to update the deck.gl overlay with all layers
105
+ */
106
+ private updateOverlay;
107
+ /**
108
+ * Create and set icon layers
109
+ */
110
+ addIconAndTextLayers(): void;
111
+ /**
112
+ * Update asset path layer
113
+ */
114
+ updateAssetPath(feature: any): void;
115
+ /**
116
+ * Clear asset path layer
117
+ */
118
+ clearAssetPath(): void;
119
+ }
120
+ export {};
121
+ //# sourceMappingURL=DeckglLayerManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckglLayerManager.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/DeckglLayerManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE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EG;IACI,eAAe,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAmB1C;;OAEG;IACI,cAAc,IAAI,IAAI;CAkB9B"}
@@ -0,0 +1,10 @@
1
+ type EventHandler<T = any> = (payload: T) => void;
2
+ export declare class EventEmitter {
3
+ private listeners;
4
+ on<T = any>(event: string, handler: EventHandler<T>): void;
5
+ off<T = any>(event: string, handler: EventHandler<T>): void;
6
+ emit<T = any>(event: string, payload: T): void;
7
+ }
8
+ export declare const eventEmitter: EventEmitter;
9
+ export {};
10
+ //# sourceMappingURL=EventEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/EventEmitter.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;AAElD,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAA0C;IAE3D,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;IAMnD,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;IAQpD,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;CAIxC;AAGD,eAAO,MAAM,YAAY,cAAqB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { Building, LegacyFloor as Floor, Place } from './types/aeroport-legacy';
2
+ type EventListener = () => void;
3
+ type EventName = 'load' | 'start';
4
+ export default class Jewel {
5
+ jewelBuilding: Building;
6
+ limit: number;
7
+ taxonomyPath: string;
8
+ currentFloorID: string;
9
+ places: Map<string, Place>;
10
+ floorStack: Map<string, Floor>;
11
+ private floorDataStack;
12
+ private events;
13
+ private _dataService;
14
+ constructor(floors: any);
15
+ loadData(): Promise<void>;
16
+ private getJewelPlacesData;
17
+ private getJewelFloors;
18
+ getFloors(): Map<string, Floor>;
19
+ getFloorsBelow(selectedFloor: Floor): Floor[];
20
+ getFloorsAbove(selectedFloor: Floor): Floor[];
21
+ isInStack(floor: Floor): boolean;
22
+ addToStack(floor: Floor): void;
23
+ removeFromStack(floor: Floor): void;
24
+ private setFloorDataStack;
25
+ private setJewelFloors;
26
+ private setPlaces;
27
+ selectFloor(floorId: string): Floor | undefined;
28
+ private updateFloorStack;
29
+ private getPlacesFromFloor;
30
+ private getFloorIDFromTaxonomy;
31
+ on(eventName: EventName, listener: EventListener): void;
32
+ private emit;
33
+ }
34
+ export {};
35
+ //# sourceMappingURL=Jewel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Jewel.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/3DMap/legacy/Jewel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAkB,WAAW,IAAI,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAOrG,KAAK,aAAa,GAAG,MAAM,IAAI,CAAC;AAChC,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,KAAK;IAClB,aAAa,EAAE,QAAQ,CAK5B;IAEK,KAAK,SAAQ;IACb,YAAY,SAAsC;IAClD,cAAc,EAAE,MAAM,CAAa;IAEnC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAa;IACvC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAa;IAElD,OAAO,CAAC,cAAc,CAAqC;IAE3D,OAAO,CAAC,MAAM,CAA6C;IAE3D,OAAO,CAAC,YAAY,CAAc;gBAEtB,MAAM,EAAE,GAAG;IAKV,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAoBxB,kBAAkB;YAalB,cAA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