@mappedin/react-sdk 6.0.1-beta.21 → 6.0.1-beta.23

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.
@@ -315,6 +315,15 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
315
315
  */
316
316
  wallTopColor?: string;
317
317
  };
318
+ /**
319
+ * @experimental
320
+ * @internal
321
+ */
322
+ multiFloorView?: {
323
+ enabled?: boolean;
324
+ floorHeight?: number;
325
+ updateCameraElevationOnFloorChange?: boolean;
326
+ };
318
327
  };
319
328
  /**
320
329
  * @internal
@@ -716,7 +725,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
716
725
  import { Analytics } from '@mappedin/react-sdk/mappedin-js/src/analytics';
717
726
  import { PubSub } from '@packages/internal/common';
718
727
  import type { TSearchOptions } from '@packages/internal/mvf-utils';
719
- import type { Connection, Door, Floor, MapDataInternal, Space, MapObject, PointOfInterest, Annotation, Coordinate, FloorStack, Node } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
728
+ import type { Connection, Door, Floor, MapDataInternal, Space, MapObject, PointOfInterest, Annotation, Coordinate, FloorStack, Node, Area } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
720
729
  import type EnterpriseCategory from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
721
730
  import type EnterpriseLocation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
722
731
  import type EnterpriseVenue from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue';
@@ -862,6 +871,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
862
871
  * const annotations = mapData.getByType('annotation');
863
872
  */
864
873
  getByType(type: 'annotation'): Annotation[];
874
+ /**
875
+ * @returns The areas ({@link Area}) on the map.
876
+ * @example
877
+ * const areas = mapData.getByType('area');
878
+ */
879
+ getByType(type: 'area'): Area[];
865
880
  /**
866
881
  * @returns The nodes ({@link Node}) on the map.
867
882
  * @example
@@ -895,7 +910,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
895
910
  * @example
896
911
  * const space = mapData.getById('space', 'space-id');
897
912
  */
898
- getById<T extends string>(type: T, id: string): T extends 'node' ? Node | undefined : T extends 'space' ? Space | undefined : T extends 'door' ? Door | undefined : T extends 'floor' ? Floor | undefined : T extends 'floor-stack' ? FloorStack | undefined : T extends 'connection' ? Connection | undefined : T extends 'object' ? MapObject | undefined : T extends 'point-of-interest' ? PointOfInterest | undefined : T extends 'annotation' ? Annotation | undefined : T extends 'enterprise-location' ? EnterpriseLocation | undefined : T extends 'enterprise-category' ? EnterpriseCategory | undefined : undefined;
913
+ getById<T extends string>(type: T, id: string): T extends 'node' ? Node | undefined : T extends 'space' ? Space | undefined : T extends 'door' ? Door | undefined : T extends 'floor' ? Floor | undefined : T extends 'floor-stack' ? FloorStack | undefined : T extends 'connection' ? Connection | undefined : T extends 'object' ? MapObject | undefined : T extends 'point-of-interest' ? PointOfInterest | undefined : T extends 'annotation' ? Annotation | undefined : T extends 'area' ? Area | undefined : T extends 'enterprise-location' ? EnterpriseLocation | undefined : T extends 'enterprise-category' ? EnterpriseCategory | undefined : undefined;
899
914
  getById(type: string, id: string): object | undefined;
900
915
  /**
901
916
  * Changes the language of the map data.
@@ -945,7 +960,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
945
960
  * @param to The destination point.
946
961
  * @returns The distance between the start and destination points in meters.
947
962
  */
948
- getDistance(from: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation, to: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation): number;
963
+ getDistance(from: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation | Area, to: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation | Area): number;
949
964
  /**
950
965
  * Creates a backup of the map data including language packs.
951
966
  * @internal
@@ -1113,6 +1128,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/events' {
1113
1128
 
1114
1129
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1115
1130
  import Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
1131
+ import Area from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/area';
1116
1132
  import Door from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door';
1117
1133
  import Space from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space';
1118
1134
  import Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
@@ -1125,7 +1141,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1125
1141
  import Image from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image';
1126
1142
  import FloorStack from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor-stack';
1127
1143
  import type { MapDataRecords } from '@mappedin/react-sdk/mappedin-js/src/utils/data-creation';
1128
- import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseCategory as MVFEnterpriseCategory, Language } from '@mappedin/mvf';
1144
+ import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseCategory as MVFEnterpriseCategory, Language, AreaCollection } from '@mappedin/mvf';
1129
1145
  import { AnalyticsInternal } from '@mappedin/react-sdk/mappedin-js/src/analytics';
1130
1146
  import EnterpriseLocation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
1131
1147
  import EnterpriseCategory from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
@@ -1171,6 +1187,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1171
1187
  */
1172
1188
  readonly obstructionIdByEntranceId: Record<string, string>;
1173
1189
  readonly venue?: EnterpriseVenue;
1190
+ readonly sasToken?: string;
1174
1191
  directions: DirectionsInternal;
1175
1192
  enterpriseMode: boolean;
1176
1193
  nodesById: MapDataRecords['nodesById'];
@@ -1182,6 +1199,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1182
1199
  doorsById: MapDataRecords['doorsById'];
1183
1200
  pointsOfInterestById: MapDataRecords['poisById'];
1184
1201
  annotationsById: MapDataRecords['annotationsById'];
1202
+ areasById: MapDataRecords['areasById'];
1185
1203
  locationsById: MapDataRecords['locationsById'];
1186
1204
  categoriesById: MapDataRecords['categoriesById'];
1187
1205
  doorsByNodeId: MapDataRecords['doorsByNodeId'];
@@ -1196,6 +1214,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1196
1214
  mvfSpacesById: MapDataRecords['mvfSpacesById'];
1197
1215
  mvfFloorsById: MapDataRecords['mvfFloorsById'];
1198
1216
  mvfFloorStacksById: MapDataRecords['mvfFloorStacksById'];
1217
+ mvfAreasById: MapDataRecords['mvfAreasById'];
1199
1218
  localePacksUrls: LocalePackUrls;
1200
1219
  currentLanguage?: Language;
1201
1220
  /**
@@ -1269,6 +1288,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1269
1288
  * @returns {Annotation[]} An array of Annotation objects.
1270
1289
  */
1271
1290
  get annotations(): Annotation[];
1291
+ get areas(): Area[];
1272
1292
  /**
1273
1293
  * Retrieves all nodes in the map.
1274
1294
  *
@@ -1295,6 +1315,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1295
1315
  getById(type: 'object', id: string): MapObject | undefined;
1296
1316
  getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
1297
1317
  getById(type: 'annotation', id: string): Annotation | undefined;
1318
+ getById(type: 'area', id: string): Area | undefined;
1298
1319
  getById(type: 'enterprise-location', id: string): EnterpriseLocation | undefined;
1299
1320
  getById(type: 'enterprise-category', id: string): EnterpriseCategory | undefined;
1300
1321
  getMapDataById(id: string): Places | undefined;
@@ -1313,6 +1334,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1313
1334
  getMVFFeatureById(type: 'connection', id: string): MVFConnection | undefined;
1314
1335
  getMVFFeatureById(type: 'entrance', id: string): EntranceCollection['features'][number] | undefined;
1315
1336
  getMVFFeatureById(type: 'annotation', id: string): AnnotationCollection['features'][number] | undefined;
1337
+ getMVFFeatureById(type: 'area', id: string): AreaCollection['features'][number] | undefined;
1316
1338
  getMVFFeatureById(type: string, id: string): object | undefined;
1317
1339
  getMVFFeatureByNodeId(type: 'connection', id: string): MVFConnection | undefined;
1318
1340
  /**
@@ -1329,7 +1351,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1329
1351
  getDirections: (from: TNavigationTarget | TNavigationTarget[], to: TNavigationTarget | (TNavigationTarget | TNavigationTarget[])[], opt?: TGetDirectionsOptions & {
1330
1352
  multiDestination?: true;
1331
1353
  }) => Directions | Directions[] | undefined;
1332
- getDistance(from: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation, to: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation): number;
1354
+ getDistance(from: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation | Area, to: Space | Door | Coordinate | MapObject | PointOfInterest | Annotation | Node | EnterpriseLocation | Area): number;
1333
1355
  toJSONBundle({ downloadLanguagePacks, }?: {
1334
1356
  downloadLanguagePacks?: boolean;
1335
1357
  }): Promise<THydrateMapDataBundle>;
@@ -1343,7 +1365,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
1343
1365
  */
1344
1366
  destroy(): void;
1345
1367
  }
1346
- export { Node, MapDataInternal, Space, Floor, FloorStack, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, };
1368
+ export { Node, Area, MapDataInternal, Space, Floor, FloorStack, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, };
1347
1369
  export type { TSpaceType } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space';
1348
1370
  export type { Places };
1349
1371
  }
@@ -1744,7 +1766,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/maplibre-overlay' {
1744
1766
 
1745
1767
  declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1746
1768
  import type { Feature, MultiPolygon, Polygon } from 'geojson';
1747
- import type { Coordinate, Floor, Door, Space, MapObject, PointOfInterest, Connection, Annotation, EnterpriseLocation, Node } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
1769
+ import type { Coordinate, Floor, Door, Space, MapObject, PointOfInterest, Connection, Annotation, EnterpriseLocation, Node, Area } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
1748
1770
  import type { Label, Marker, Model, Image, Shape } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
1749
1771
  import type { Language, ParsedMVFLocalePack } from '@mappedin/mvf';
1750
1772
  import type { InsetPaddingOption, Position } from '@mappedin/core-sdk';
@@ -2112,7 +2134,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2112
2134
  /**
2113
2135
  * A map element that can be focused on by the camera.
2114
2136
  */
2115
- export type TFocusable = Floor | Space | Coordinate | MapObject | Connection | PointOfInterest | Door | Annotation | Node | EnterpriseLocation
2137
+ export type TFocusable = Floor | Space | Coordinate | MapObject | Connection | PointOfInterest | Door | Annotation | Area | Node | EnterpriseLocation
2116
2138
  /**
2117
2139
  * @experimental
2118
2140
  */
@@ -2147,7 +2169,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2147
2169
  /**
2148
2170
  * Defines the target for navigation operations.
2149
2171
  */
2150
- export type TNavigationTarget = Space | MapObject | Coordinate | Door | PointOfInterest | Connection | EnterpriseLocation | Node;
2172
+ export type TNavigationTarget = Space | MapObject | Coordinate | Door | PointOfInterest | Connection | EnterpriseLocation | Node | Area;
2151
2173
  /**
2152
2174
  * Defines the special zone for navigation operations.
2153
2175
  */
@@ -2387,6 +2409,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
2387
2409
  *
2388
2410
  * | Value | Description |
2389
2411
  * |--------|-----------------------------------------------------------------------------------------------------------------------------------------|
2412
+ * | low | Colliders with this ranking have a low visibility priority and will be hidden in favor of higher-ranked colliders in crowded areas. |
2390
2413
  * | medium | Colliders with this ranking have a standard visibility priority and may be hidden in favor of higher-ranked colliders in crowded areas. |
2391
2414
  * | high | These colliders are given higher visibility priority than 'medium' priority. |
2392
2415
  * | always-visible | Colliders with this ranking will not be hidden, ensuring their constant visibility regardless of crowding. |
@@ -3011,7 +3034,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/navigation' {
3011
3034
  import { type TDirectionInstruction } from '@mappedin/react-sdk/mappedin-js/src';
3012
3035
  import type { Directions, GeoJsonApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
3013
3036
  import type { GeojsonApiMapObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object';
3014
- import type { FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3037
+ import type { Floor, FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3015
3038
  import { Path, Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
3016
3039
  import type { RendererCore } from '@mappedin/core-sdk';
3017
3040
  /**
@@ -3206,6 +3229,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/navigation' {
3206
3229
  * The current list of floor stacks along the navigation paths.
3207
3230
  */
3208
3231
  get floorStacks(): FloorStack[];
3232
+ /**
3233
+ * The current list of floors along the navigation paths.
3234
+ */
3235
+ get floors(): Floor[];
3209
3236
  /**
3210
3237
  * Sets the active path by index.
3211
3238
  */
@@ -3297,7 +3324,7 @@ declare module '@mappedin/react-sdk/react-sdk/src' {
3297
3324
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
3298
3325
  import type { EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf';
3299
3326
  import type { MapDataInternal, EnterpriseLocation } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3300
- import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
3327
+ import BaseMetaData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object';
3301
3328
  /**
3302
3329
  * An EnterpriseCategory groups one or more EnterpriseLocation. These allow similar locations to be sorted in a logical fashion.
3303
3330
  * For example a mall may group locations into Food Court, Footwear and Women's Fashion. They can be accessed using the {@link MapData.getByType()} method as shown below.
@@ -3308,7 +3335,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
3308
3335
  *
3309
3336
  * Refer to the [EnterpriseCategory Guide](https://developer.mappedin.com/web-sdk/enterprise-data#enterprise-categories) for more information and interactive examples.
3310
3337
  */
3311
- class EnterpriseCategory extends BaseMapData implements Omit<MVFEnterpriseCategory, 'children' | 'locations'> {
3338
+ class EnterpriseCategory extends BaseMetaData implements Omit<MVFEnterpriseCategory, 'children' | 'locations'> {
3312
3339
  #private;
3313
3340
  /**
3314
3341
  * @internal
@@ -3389,8 +3416,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
3389
3416
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
3390
3417
  import type { EnterpriseLocation as MVFEnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
3391
3418
  import type { Coordinate, EnterpriseCategory, MapDataInternal, Space } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3392
- import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
3393
3419
  import type Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
3420
+ import BaseMetaData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object';
3394
3421
  /**
3395
3422
  * An EnterpriseLocation contains metadata about a location, such as its name, description, logo, phone number, social medial links, hours of operation and more.
3396
3423
  * They can be accessed using the {@link MapData.getByType()} method as shown below.
@@ -3401,7 +3428,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
3401
3428
  *
3402
3429
  * Refer to the [EnterpriseLocation Guide](https://developer.mappedin.com/web-sdk/enterprise-data#enterprise-locations) for more information and interactive examples.
3403
3430
  */
3404
- class EnterpriseLocation extends BaseMapData implements Omit<MVFEnterpriseLocation, 'polygons' | 'nodes' | 'links'> {
3431
+ class EnterpriseLocation extends BaseMetaData implements Omit<MVFEnterpriseLocation, 'polygons' | 'nodes' | 'links'> {
3405
3432
  #private;
3406
3433
  /**
3407
3434
  * @internal
@@ -3478,10 +3505,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
3478
3505
  * Example use cases:
3479
3506
  * - A Mall may have a location with two nodes and one polygon. It may then have an instance with one of the nodes, and operating hours
3480
3507
  * that are different from the parent. This indicates that this instance is an entrance for the location that is accessible at different times, perhaps for an interior mall entrance, when the main location (and other, exterior entrance) is open later than the rest of the mall.
3481
- * - An aiport may have a location with several polygons and nodes, and an instance for each node (and corrisponding polygon, if any) with a different siblingGroup. The location in the sibling group may be the airport terminal, or airside vs landside.
3508
+ * - An airport may have a location with several polygons and nodes, and an instance for each node (and corresponding polygon, if any) with a different siblingGroup. The location in the sibling group may be the airport terminal, or airside vs landside.
3482
3509
  * This would allow an application to show the location once in a search result, but offer UX to select the instance that is in the right terminal.
3483
3510
  *
3484
- * Note: Instances are actual EnterpriseLocations. This means they have all the properties of a normal EnterpriseLocation, including an `instances` property, that will always be undefined. They also do NOT have a parent proprty, or any other explicit reference to the parent location. These instances are
3511
+ * Note: Instances are actual EnterpriseLocations. This means they have all the properties of a normal EnterpriseLocation, including an `instances` property, that will always be undefined. They also do NOT have a parent property, or any other explicit reference to the parent location. These instances are
3485
3512
  * only referenced from their parent location, and will not show up in other places in the map data. However, they should otherwise behave like normal EnterpriseLocations, being targetable for things like navigation and focus.
3486
3513
  */
3487
3514
  instances?: EnterpriseLocation[] | undefined;
@@ -3559,6 +3586,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
3559
3586
  mvfData: MVFEnterpriseLocation;
3560
3587
  categoryIds: string[];
3561
3588
  locationInstances?: EnterpriseLocation[];
3589
+ parentId?: string;
3562
3590
  });
3563
3591
  get categories(): EnterpriseCategory[];
3564
3592
  get coordinates(): Coordinate[];
@@ -3586,18 +3614,18 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
3586
3614
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
3587
3615
  import type { EnterpriseVenue as MVFEnterpriseVenue, Language } from '@mappedin/mvf';
3588
3616
  import type { Hyperlink, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3589
- import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
3617
+ import BaseMetaData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object';
3590
3618
  /**
3591
3619
  * The EnterpriseVenue class holds metadata bout the map, which includes the map name, supported languages, default language, top locations and more.
3592
3620
  * It can be accessed using the {@link MapData.getByType()} method as shown below.
3593
3621
  *
3594
3622
  * ```typescript
3595
- * const venue = mapData.getByType('venue');
3623
+ * const venue = mapData.getByType('enterprise-venue');
3596
3624
  * ```
3597
3625
  *
3598
3626
  * Refer to the [EnterpriseVenue Guide](https://developer.mappedin.com/web-sdk/enterprise-data#enterprise-venue) for more information.
3599
3627
  */
3600
- class EnterpriseVenue extends BaseMapData implements MVFEnterpriseVenue {
3628
+ class EnterpriseVenue extends BaseMetaData implements MVFEnterpriseVenue {
3601
3629
  #private;
3602
3630
  /**
3603
3631
  * @internal
@@ -3818,14 +3846,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node' {
3818
3846
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
3819
3847
  import type { EnterpriseLocation, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3820
3848
  import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
3821
- import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
3849
+ import BaseMetaData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object';
3822
3850
  /**
3823
3851
  * A class representing {@link Path} node data within the map.
3824
3852
  *
3825
3853
  * Nodes are used to define points in the map's pathfinding graph.
3826
3854
  *
3827
3855
  */
3828
- class Node extends BaseMapData {
3856
+ class Node extends BaseMetaData {
3829
3857
  #private;
3830
3858
  /**
3831
3859
  * @internal
@@ -3900,8 +3928,95 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node' {
3900
3928
  export default Node;
3901
3929
  }
3902
3930
 
3931
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/area' {
3932
+ import type { AreaCollection } from '@mappedin/mvf';
3933
+ import { Coordinate, type MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
3934
+ import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
3935
+ import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
3936
+ /**
3937
+ * An Area represents some grouping of multiple pieces of geometry, not
3938
+ * necessarily bounded by walls or any other physical feature of the map.
3939
+ *
3940
+ * Areas are currently in a preview state, and may have changes to existing
3941
+ * functionality or new features added in the future.
3942
+ */
3943
+ class Area extends BaseMapData {
3944
+ #private;
3945
+ /**
3946
+ * @internal
3947
+ */
3948
+ static readonly __type = "area";
3949
+ /**
3950
+ * @internal
3951
+ */
3952
+ readonly __type = "area";
3953
+ /**
3954
+ * Checks if the provided instance is of type Area.
3955
+ *
3956
+ * @param instance The instance to check.
3957
+ * @returns {boolean} True if the instance is a Area, false otherwise.
3958
+ */
3959
+ static is(instance: object): instance is Area;
3960
+ /**
3961
+ * @internal
3962
+ */
3963
+ constructor(data: MapDataInternal, options: {
3964
+ floorId: string;
3965
+ mvfData: AreaCollection['features'][number];
3966
+ });
3967
+ /**
3968
+ * Gets the name of the area.
3969
+ *
3970
+ * @returns {string} The name of the area.
3971
+ */
3972
+ get name(): string;
3973
+ /**
3974
+ * Gets the external identifier of the area.
3975
+ *
3976
+ * @returns {string} The external ID of the area, or an empty string if no external ID exists.
3977
+ */
3978
+ get externalId(): string;
3979
+ /**
3980
+ * Gets the description of the area.
3981
+ *
3982
+ * @returns {string} The description of the area, or an empty string if no description exists.
3983
+ */
3984
+ get description(): string;
3985
+ /**
3986
+ * Gets the center {@link Coordinate} of the area.
3987
+ *
3988
+ * @returns {Coordinate} The area's center coordinate.
3989
+ */
3990
+ get center(): Coordinate;
3991
+ /**
3992
+ * Gets the {@link Floor} object associated with the area.
3993
+ *
3994
+ * @returns {Floor} The floor object.
3995
+ * @throws Will throw an error if the floor is not found.
3996
+ */
3997
+ get floor(): Floor;
3998
+ /**
3999
+ * Serializes the space data to JSON.
4000
+ *
4001
+ * @returns An object representing the space.
4002
+ */
4003
+ toJSON(): {
4004
+ id: string;
4005
+ name: string;
4006
+ floor: string;
4007
+ };
4008
+ /**
4009
+ * Cleans up resources used by the instance.
4010
+ *
4011
+ * @internal
4012
+ */
4013
+ destroy(): void;
4014
+ }
4015
+ export default Area;
4016
+ }
4017
+
3903
4018
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
3904
- import type { EntranceCollection, Image } from '@mappedin/mvf';
4019
+ import type { EntranceCollection } from '@mappedin/mvf';
3905
4020
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
3906
4021
  import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
3907
4022
  import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
@@ -3976,12 +4091,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
3976
4091
  * @returns {string} The description of the door.
3977
4092
  */
3978
4093
  get description(): string;
3979
- /**
3980
- * Gets the images of the door.
3981
- *
3982
- * @returns {Image[]} The images of the door.
3983
- */
3984
- get images(): Image[];
3985
4094
  /**
3986
4095
  * Gets the {@link Floor} object associated with the door.
3987
4096
  *
@@ -4025,7 +4134,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
4025
4134
  }
4026
4135
 
4027
4136
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
4028
- import type { Image, SpaceCollection } from '@mappedin/mvf';
4137
+ import type { SpaceCollection } from '@mappedin/mvf';
4029
4138
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
4030
4139
  import type { EnterpriseLocation, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4031
4140
  import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
@@ -4090,12 +4199,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
4090
4199
  * @returns {string} The description of the space, or an empty string if no description exists.
4091
4200
  */
4092
4201
  get description(): string;
4093
- /**
4094
- * Gets the array of images associated with the space.
4095
- *
4096
- * @returns {Image[]} An array of Image objects, or an empty array if no images exist.
4097
- */
4098
- get images(): Image[];
4099
4202
  /**
4100
4203
  * Gets the external identifier of the space.
4101
4204
  *
@@ -4275,7 +4378,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor' {
4275
4378
  }
4276
4379
 
4277
4380
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection' {
4278
- import type { Feature, FeatureCollection, Image, Point, SpaceProperties, Connection as MVFConnection } from '@mappedin/mvf';
4381
+ import type { Feature, FeatureCollection, Point, SpaceProperties, Connection as MVFConnection } from '@mappedin/mvf';
4279
4382
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
4280
4383
  import type Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
4281
4384
  import type { Floor, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
@@ -4316,7 +4419,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection'
4316
4419
  */
4317
4420
  get name(): string;
4318
4421
  get description(): string;
4319
- get images(): Image[];
4320
4422
  /**
4321
4423
  * Whether the connection is accessible. For example elevators are accessible while stairs are not.
4322
4424
  *
@@ -4380,7 +4482,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection'
4380
4482
  }
4381
4483
 
4382
4484
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object' {
4383
- import type { Image, ObstructionCollection } from '@mappedin/mvf';
4485
+ import type { ObstructionCollection } from '@mappedin/mvf';
4384
4486
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
4385
4487
  import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4386
4488
  import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
@@ -4435,7 +4537,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object' {
4435
4537
  * @returns {string} The description of the object.
4436
4538
  */
4437
4539
  get description(): string;
4438
- get images(): Image[];
4439
4540
  /**
4440
4541
  * Gets the type of the MapObject.
4441
4542
  *
@@ -4557,7 +4658,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/poi' {
4557
4658
  import type { Floor, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4558
4659
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
4559
4660
  import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
4560
- import Image from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image';
4561
4661
  /**
4562
4662
  * A class representing point of interest data within the map.
4563
4663
  *
@@ -4600,12 +4700,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/poi' {
4600
4700
  * @returns {string} The description of the POI.
4601
4701
  */
4602
4702
  get description(): string;
4603
- /**
4604
- * Gets the images associated with the POI.
4605
- *
4606
- * @returns {Image[]} The images associated with the POI.
4607
- */
4608
- get images(): Image[];
4609
4703
  /**
4610
4704
  * Gets the {@link Floor} object associated with the POI.
4611
4705
  *
@@ -4831,11 +4925,18 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
4831
4925
  */
4832
4926
  get url(): string | undefined;
4833
4927
  /**
4834
- * Gets the name of the image.
4928
+ * Gets the alt text of the image.
4835
4929
  *
4836
- * @returns {string | undefined } The name of the image.
4930
+ * @returns {string | undefined } The alt text of the image.
4931
+ * @deprecated Use {@link altText} instead.
4837
4932
  */
4838
4933
  get name(): string | undefined;
4934
+ /**
4935
+ * Gets the alt text of the image.
4936
+ *
4937
+ * @returns {string | undefined } The alt text of the image.
4938
+ */
4939
+ get altText(): string | undefined;
4839
4940
  /**
4840
4941
  /**
4841
4942
  * Serializes the image data to JSON.
@@ -4931,9 +5032,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor-stack
4931
5032
  }
4932
5033
 
4933
5034
  declare module '@mappedin/react-sdk/mappedin-js/src/utils/data-creation' {
4934
- import type { Feature, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, NodeCollection, ObstructionCollection, Point, SpaceCollection, SpaceProperties, Connection as MVFConnection, EntranceCollection, AnnotationCollection, ParsedMVF, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseLocationId as MVFEnterpriseLocationId, EnterpriseCategoryId as MVFEnterpriseCategoryId, EnterpriseCategory as MVFEnterpriseCategory, EnterpriseVenue as MVFEnterpriseVenue } from '@mappedin/mvf';
5035
+ import type { Feature, FloorProperties as MVFFloor, FloorStack as MVFFloorStack, NodeCollection, ObstructionCollection, Point, SpaceCollection, SpaceProperties, Connection as MVFConnection, EntranceCollection, AnnotationCollection, ParsedMVF, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseLocationId as MVFEnterpriseLocationId, EnterpriseCategoryId as MVFEnterpriseCategoryId, EnterpriseCategory as MVFEnterpriseCategory, EnterpriseVenue as MVFEnterpriseVenue, AreaCollection, AreaId, EnterpriseLocationInstance } from '@mappedin/mvf';
4935
5036
  import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4936
- import { Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
5037
+ import { Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Area } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
4937
5038
  import Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
4938
5039
  import EnterpriseLocation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
4939
5040
  import EnterpriseCategory from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
@@ -4952,6 +5053,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/utils/data-creation' {
4952
5053
  locationsById: Record<MVFEnterpriseLocationId, EnterpriseLocation>;
4953
5054
  categoriesById: Record<MVFEnterpriseCategoryId, EnterpriseCategory>;
4954
5055
  locationIdsByNodeId: Record<string, MVFEnterpriseLocationId[]>;
5056
+ areasById: Record<AreaId, Area>;
4955
5057
  venue: MVFEnterpriseVenue;
4956
5058
  spaceIdsByDestinationNodeId: Record<string, string[]>;
4957
5059
  objectEntranceNodeIdsByObstructionId: Record<string, string[]>;
@@ -4969,9 +5071,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/utils/data-creation' {
4969
5071
  mvfCategoriesById: Record<string, MVFEnterpriseCategory>;
4970
5072
  mvfLocationsById: Record<string, MVFEnterpriseLocation>;
4971
5073
  mvfLocationsBySpaceId: Record<string, MVFEnterpriseLocation[]>;
5074
+ mvfAreasById: Record<AreaId, AreaCollection['features'][number]>;
4972
5075
  };
4973
5076
  export const processMVFFloors: (mvf: ParsedMVF, data: MapDataInternal) => Pick<MapDataRecords, "floorsById" | "mvfFloorsById">;
4974
5077
  export const processMVFFloorStacks: (mvf: ParsedMVF, data: MapDataInternal) => Pick<MapDataRecords, "floorStacksById" | "mvfFloorStacksById">;
5078
+ export const processMVFAreas: (mvf: ParsedMVF, data: MapDataInternal) => Pick<MapDataRecords, "areasById" | "mvfAreasById">;
4975
5079
  /**
4976
5080
  * @internal
4977
5081
  */
@@ -4981,6 +5085,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/utils/data-creation' {
4981
5085
  mvfLocationsById: Record<string, MVFEnterpriseLocation>;
4982
5086
  mvfCategoriesById: Record<string, MVFEnterpriseCategory>;
4983
5087
  locationsById: Record<string, EnterpriseLocation>;
5088
+ locationInstancesById: Record<string, EnterpriseLocationInstance>;
4984
5089
  categoriesById: Record<string, EnterpriseCategory>;
4985
5090
  venue: MVFEnterpriseVenue;
4986
5091
  };
@@ -4998,6 +5103,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/utils/data-creation' {
4998
5103
  doorsByNodeId: Record<string, Door>;
4999
5104
  poisById: Record<string, PointOfInterest>;
5000
5105
  annotationsById: Record<string, Annotation>;
5106
+ areasById: Record<string, Area>;
5001
5107
  spaceIdsByDestinationNodeId: Record<string, string[]>;
5002
5108
  objectEntranceNodeIdsByObstructionId: Record<string, string[]>;
5003
5109
  obstructionIdByEntranceId: Record<string, string>;
@@ -5015,10 +5121,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/utils/data-creation' {
5015
5121
  geometry: Point;
5016
5122
  properties: import("@mappedin/mvf").AnnotationProperties;
5017
5123
  }>;
5124
+ mvfAreasById: Record<string, import("@mappedin/mvf").Area>;
5018
5125
  };
5019
5126
  }
5020
5127
 
5021
5128
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
5129
+ import type Area from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/area';
5022
5130
  import type Door from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door';
5023
5131
  import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
5024
5132
  import type Space from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space';
@@ -5034,7 +5142,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
5034
5142
  /**
5035
5143
  * Places are the main objects that can be searched for.
5036
5144
  */
5037
- export type Places = Space | Floor | Door | Connection | MapObject | PointOfInterest | Annotation;
5145
+ export type Places = Space | Floor | Door | Connection | MapObject | PointOfInterest | Annotation | Area;
5038
5146
  export type LocationWithLocale = PartialExcept<MvfEnterpriseLocation, 'id'>;
5039
5147
  export type CategoryWithLocale = PartialExcept<MvfEnterpriseCategory, 'id'>;
5040
5148
  export type LanguagePack = {
@@ -5058,6 +5166,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
5058
5166
  localePacksUrls?: LocalePackUrls;
5059
5167
  languagePacks?: LanguagePackHydrationItem[];
5060
5168
  binaryBundle?: Uint8Array;
5169
+ sasToken?: string;
5061
5170
  };
5062
5171
  }
5063
5172
 
@@ -5148,6 +5257,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
5148
5257
  import type { GroupContainerState } from '@mappedin/react-sdk/geojson/src/entities/group-container';
5149
5258
  import type { CollisionRankingTier } from '@mappedin/react-sdk/geojson/src/utils/collision-ranking-tier';
5150
5259
  import { z } from 'zod';
5260
+ import type { PackedBBoxes } from '@mappedin/react-sdk/geojson/src/systems/collisions/system';
5151
5261
  /**
5152
5262
  * State reprsenting a Marker
5153
5263
  */
@@ -5257,6 +5367,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
5257
5367
  options: Required<AddMarkerOptions>;
5258
5368
  projection: Vector2;
5259
5369
  enabled: boolean;
5370
+ offscreen: boolean;
5260
5371
  activeStrategyIndex: number;
5261
5372
  strategyIndex: number;
5262
5373
  activeBoundingBox: {
@@ -5274,7 +5385,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
5274
5385
  };
5275
5386
  dirty: boolean;
5276
5387
  collisionDirty: boolean;
5277
- visibilityNeedsUpdate: boolean;
5388
+ visibilityNeedsUpdate: 'show' | 'hide' | false;
5278
5389
  constructor(contentHtml: string, options?: AddMarkerOptions);
5279
5390
  updateDimensions(width?: number, height?: number): void;
5280
5391
  visible: boolean;
@@ -5285,16 +5396,13 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
5285
5396
  name: MarkerAnchor;
5286
5397
  getBoundingBox: () => number[];
5287
5398
  }[];
5288
- toJSON(): {
5399
+ toPackedMessage(lockToCurrentStrategy?: boolean): {
5289
5400
  x: number;
5290
5401
  y: number;
5291
5402
  enabled: boolean;
5292
- id: string | number;
5293
5403
  rank: number;
5294
- bboxes: {
5295
- index: number;
5296
- boundingBox: any;
5297
- }[];
5404
+ bboxes: PackedBBoxes;
5405
+ lockedToStrategyIndex: number;
5298
5406
  shouldCollideWithScreenEdges: boolean;
5299
5407
  };
5300
5408
  destroy(): void;
@@ -5518,6 +5626,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
5518
5626
  import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
5519
5627
  import type { CollisionRankingTier } from '@mappedin/react-sdk/geojson/src';
5520
5628
  import { z } from 'zod';
5629
+ import type { PackedBBoxes } from '@mappedin/react-sdk/geojson/src/systems/collisions/system';
5521
5630
  export const addLabelOptionsSchema: z.ZodObject<{
5522
5631
  rank: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "always-visible"]>, z.ZodNumber]>>;
5523
5632
  interactive: z.ZodOptional<z.ZodBoolean>;
@@ -5964,7 +6073,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
5964
6073
  newStyle: TStyle;
5965
6074
  static testId: number;
5966
6075
  opacity: number;
5967
- visibilityNeedsUpdate: boolean;
6076
+ visibilityNeedsUpdate: 'show' | 'hide' | false;
5968
6077
  activeStrategyIndex: number;
5969
6078
  text: string;
5970
6079
  style: TStyle;
@@ -5974,6 +6083,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
5974
6083
  options: LabelOptions;
5975
6084
  visible: boolean;
5976
6085
  enabled: boolean;
6086
+ offscreen: boolean;
5977
6087
  activeBoundingBox: {
5978
6088
  x: number;
5979
6089
  y: number;
@@ -5997,21 +6107,20 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
5997
6107
  setEntity(): void;
5998
6108
  constructor(text: string, options: AddLabelOptions, state: RendererState);
5999
6109
  calculateMarkerSize(): void;
6110
+ get lowPriorityStrategyIndex(): 3 | -1;
6000
6111
  get strategies(): any[];
6112
+ animate: boolean;
6001
6113
  onStrategySelected: (strategyIndex: any) => void;
6002
6114
  updatePosition(): void;
6003
6115
  disable(): void;
6004
- toJSON(): {
6116
+ toPackedMessage(lockToCurrentStrategy?: boolean): {
6005
6117
  x: number;
6006
6118
  y: number;
6007
6119
  enabled: boolean;
6008
- id: string;
6009
6120
  rank: number;
6010
- bboxes: {
6011
- index: number;
6012
- boundingBox: any;
6013
- }[];
6121
+ bboxes: PackedBBoxes;
6014
6122
  shouldCollideWithScreenEdges: boolean;
6123
+ lockedToStrategyIndex: number;
6015
6124
  };
6016
6125
  destroy(): void;
6017
6126
  }
@@ -6136,6 +6245,10 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry-group' {
6136
6245
  * altitude of the geometry group
6137
6246
  */
6138
6247
  altitude?: number;
6248
+ /**
6249
+ * height of the geometry group
6250
+ */
6251
+ height?: number;
6139
6252
  };
6140
6253
  export type ChildUpdatable<T> = T extends LineStyle ? Partial<Pick<LineStyle, 'color' | 'opacity' | 'visible'>> : Partial<Pick<PaintStyle, 'color' | 'opacity' | 'visible'>>;
6141
6254
  export class GeometryGroupObject3D extends Object3D {
@@ -6171,7 +6284,7 @@ declare module '@mappedin/react-sdk/geojson/src/types/geometry' {
6171
6284
  }
6172
6285
 
6173
6286
  declare module '@mappedin/react-sdk/geojson/src/types' {
6174
- import { Mesh, Object3D, InstancedMesh } from 'three';
6287
+ import { Mesh, Object3D, InstancedMesh, Camera } from 'three';
6175
6288
  import type { Geometry2D } from '@mappedin/react-sdk/geojson/src/entities/geometry2d';
6176
6289
  import type { Position } from '@mappedin/react-sdk/geojson/src/types/geometry';
6177
6290
  import type { GeometryState } from '@mappedin/react-sdk/geojson/src/components/mesh';
@@ -6185,6 +6298,7 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
6185
6298
  import type { ShapeState } from '@mappedin/react-sdk/geojson/src/components/custom';
6186
6299
  import type { Geometry3D } from '@mappedin/react-sdk/geojson/src/entities';
6187
6300
  import type { Group as TweenGroup } from '@tweenjs/tween.js';
6301
+ import { MaterialSide } from '@mappedin/react-sdk/geojson/src/components/style';
6188
6302
  /**
6189
6303
  * The state of an entity, which can be a geometry, geometry group, group container, path, model, label, or marker.
6190
6304
  */
@@ -6239,6 +6353,7 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
6239
6353
  outline?: boolean;
6240
6354
  showImage?: boolean;
6241
6355
  flipImageToFaceCamera?: boolean;
6356
+ side?: MaterialSide;
6242
6357
  };
6243
6358
  export type Shading = {
6244
6359
  start?: number;
@@ -6257,6 +6372,7 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
6257
6372
  join?: 'round' | 'bevel' | 'miter';
6258
6373
  shading?: Shading;
6259
6374
  outline?: boolean;
6375
+ side?: MaterialSide;
6260
6376
  };
6261
6377
  export type Layer = {
6262
6378
  id: string;
@@ -6472,6 +6588,7 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
6472
6588
  canvasHeight: number;
6473
6589
  /** Global group for all tweens */
6474
6590
  tweenGroup: TweenGroup;
6591
+ cameraObject: Camera;
6475
6592
  };
6476
6593
  }
6477
6594
 
@@ -7537,6 +7654,7 @@ declare module '@mappedin/react-sdk/geojson/src/utils' {
7537
7654
  export function cyrb53(str: string, seed?: number): number;
7538
7655
  export const linearEase: (t: number) => number;
7539
7656
  export const quadEaseIn: (t: number) => number;
7657
+ export const easeIn: (x: number) => number;
7540
7658
  export const quadEaseOut: (t: number) => number;
7541
7659
  export function interpolate(value: number, inputMin: number, inputMax: number, outputMin: number, outputMax: number, easeFunc?: (t: number) => number): number;
7542
7660
  export function interpolateMulti(value: number, inputRange: number[], outputRange: number[], easeFunc?: (t: number) => number): number;
@@ -7853,6 +7971,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
7853
7971
  import type { Space, Door, PointOfInterest, MapObject, Node, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
7854
7972
  import { type GeoJsonApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/api';
7855
7973
  import { FloorStackObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-stack-object';
7974
+ export const FLOOR_HEIGHT = 5;
7856
7975
  export class GeojsonApiMapObject extends PubSub<{
7857
7976
  'floor-change': {
7858
7977
  reason?: TFloorChangeReason;
@@ -7871,6 +7990,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
7871
7990
  path: Path;
7872
7991
  };
7873
7992
  }> {
7993
+ #private;
7874
7994
  floorStacksById: Map<string, FloorStackObject>;
7875
7995
  floorsById: Map<string, FloorObject>;
7876
7996
  currentFloorId: string;
@@ -7886,6 +8006,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
7886
8006
  get currentFloor(): FloorObject;
7887
8007
  /** @deprecated use `currentFloorStack.floorObjects` or `floorsById` instead */
7888
8008
  get floors(): FloorObject[];
8009
+ processFloorChange(floorId: string): void;
7889
8010
  setFloor(floorId: string, reason?: TFloorChangeReason): void;
7890
8011
  Models: {
7891
8012
  add: (id: string, targets: TAddModel[], opts: TAddModelOptions & {
@@ -7997,6 +8118,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker' {
7997
8118
  * Refer to the [Markers Guide](https://developer.mappedin.com/web-sdk/markers) for more information and interactive examples.
7998
8119
  */
7999
8120
  export class Marker {
8121
+ #private;
8000
8122
  /**
8001
8123
  * The marker's id
8002
8124
  */
@@ -8005,7 +8127,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker' {
8005
8127
  * @internal
8006
8128
  */
8007
8129
  static readonly __type = "Marker";
8008
- readonly target: Space | Door | Coordinate | Node;
8130
+ get target(): Coordinate | Space | Door | Node;
8009
8131
  /**
8010
8132
  * @internal
8011
8133
  */
@@ -8025,6 +8147,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker' {
8025
8147
  * @internal
8026
8148
  */
8027
8149
  constructor(id: string, contentEl: HTMLElement, target: Space | Door | Coordinate | Node);
8150
+ /**
8151
+ * @internal
8152
+ */
8153
+ updateTarget(target: Space | Door | Coordinate | Node): void;
8028
8154
  }
8029
8155
  }
8030
8156
 
@@ -8634,7 +8760,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/navigation/index' {
8634
8760
  import { type TDirectionInstruction } from '@mappedin/react-sdk/mappedin-js/src';
8635
8761
  import type { Directions, GeoJsonApi } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
8636
8762
  import type { GeojsonApiMapObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object';
8637
- import type { FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
8763
+ import type { Floor, FloorStack } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
8638
8764
  import { Path, Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
8639
8765
  import type { RendererCore } from '@mappedin/core-sdk';
8640
8766
  /**
@@ -8829,6 +8955,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/navigation/index' {
8829
8955
  * The current list of floor stacks along the navigation paths.
8830
8956
  */
8831
8957
  get floorStacks(): FloorStack[];
8958
+ /**
8959
+ * The current list of floors along the navigation paths.
8960
+ */
8961
+ get floors(): Floor[];
8832
8962
  /**
8833
8963
  * Sets the active path by index.
8834
8964
  */
@@ -9577,32 +9707,124 @@ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
9577
9707
  export {};
9578
9708
  }
9579
9709
 
9710
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object' {
9711
+ export default abstract class BaseMetaData {
9712
+ /**
9713
+ * The identity of the map metadata.
9714
+ */
9715
+ readonly id: string;
9716
+ constructor(id: string);
9717
+ }
9718
+ }
9719
+
9580
9720
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object' {
9721
+ import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
9581
9722
  import Hyperlink from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink';
9723
+ import Image from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image';
9582
9724
  import type { Details } from '@mappedin/mvf';
9583
9725
  export default abstract class BaseMapData {
9584
9726
  /**
9585
- * identity of the map object
9727
+ * The identity of the map data.
9586
9728
  */
9587
9729
  readonly id: string;
9588
- constructor(id: string, details?: Details);
9730
+ constructor(id: string, data: MapDataInternal, details?: Details);
9589
9731
  /**
9590
9732
  * Gets the links associated with this data type.
9591
9733
  *
9592
9734
  * @returns {Hyperlink[]} The links associated with this data type
9593
9735
  */
9594
9736
  links: Hyperlink[];
9737
+ /**
9738
+ * Gets the array of images associated with this data type.
9739
+ *
9740
+ * @returns {Image[]} An array of Image objects, or an empty array if no images exist.
9741
+ */
9742
+ images: Image[];
9595
9743
  }
9596
9744
  }
9597
9745
 
9598
- declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object' {
9599
- export default abstract class BaseMetaData {
9746
+ declare module '@mappedin/react-sdk/geojson/src/systems/collisions/system' {
9747
+ import { QuadTree } from '@packages/internal/quad-tree';
9748
+ import './style.scss';
9749
+ import type { MarkerComponent } from '@mappedin/react-sdk/geojson/src/components/marker';
9750
+ import type LabelComponent from '@mappedin/react-sdk/geojson/src/components/label';
9751
+ import { PubSub } from '@mappedin/react-sdk/packages/common/pubsub';
9752
+ import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
9753
+ import type { TSerializedCollider, TSerializedColliderResponse } from '@mappedin/react-sdk/geojson/src/systems/collisions/collider-processor';
9754
+ import type { WatermarkPosition } from '@mappedin/react-sdk/geojson/src/systems/watermark/system';
9755
+ export type TMessageEvent = MessageEvent<{
9756
+ msgId: string;
9757
+ colliders: TSerializedColliderResponse[];
9758
+ debug: {
9759
+ x: number;
9760
+ y: number;
9761
+ w: number;
9762
+ h: number;
9763
+ }[];
9764
+ }>;
9765
+ export type TMessage = {
9766
+ msgId: string;
9767
+ totalWidth: number;
9768
+ totalHeight: number;
9769
+ watermarkWidth: number;
9770
+ watermarkHeight: number;
9771
+ watermarkPosition: WatermarkPosition;
9772
+ colliders: TSerializedCollider[];
9773
+ devicePixelRatio: number;
9774
+ };
9775
+ type TCollisionSystemEvent = {
9776
+ 'visibility-changed': undefined;
9777
+ };
9778
+ export type PackedBBox = [x: number, y: number, w: number, h: number, index: number];
9779
+ export type PackedBBoxes = PackedBBox[];
9780
+ export type PackedCollider = [
9781
+ bboxes: PackedBBoxes,
9782
+ enabled: 0 | 1,
9783
+ alwaysVisible: 0 | 1,
9784
+ x: number,
9785
+ y: number,
9786
+ shouldCollideWithScreenEdges?: 0 | 1,
9787
+ onlyExposeStrategyIndex?: number
9788
+ ];
9789
+ export type PackedMessage = [
9790
+ colliders: PackedCollider[],
9791
+ devicePixelRatio: number,
9792
+ totalHeight: number,
9793
+ totalWidth: number,
9794
+ watermarkWidth: number,
9795
+ watermarkHeight: number,
9796
+ watermarkPosition: WatermarkPosition
9797
+ ];
9798
+ export class CollisionSystem extends PubSub<TCollisionSystemEvent, keyof TCollisionSystemEvent> {
9799
+ collidersDirty: boolean;
9800
+ packedMessage: PackedMessage;
9801
+ visibleCollidersQTree: QuadTree<{
9802
+ entityId: string | number;
9803
+ }>;
9804
+ interactiveCollidersQTree: QuadTree<{
9805
+ entityId: string | number;
9806
+ }>;
9807
+ coreState: RendererState;
9808
+ constructor(debugCanvas: HTMLCanvasElement, coreState: RendererState, worker?: Worker);
9809
+ postMessage: () => void;
9810
+ showCollisionBoxes: () => void;
9811
+ hideCollisionBoxes: () => void;
9812
+ currentMsgId: string;
9813
+ working: boolean;
9814
+ componentArray: (MarkerComponent | LabelComponent)[];
9815
+ update: (watermarkWidth: number, watermarkHeight: number, watermarkPosition?: WatermarkPosition, useAllStrategies?: boolean) => void;
9816
+ resize(watermarkWidth: number, watermarkHeight: number, watermarkPosition: WatermarkPosition): void;
9600
9817
  /**
9601
- * identity of the map object
9818
+ * Resolve collisions
9602
9819
  */
9603
- readonly id: string;
9604
- constructor(id: string);
9820
+ resolve: (e: MessageEvent<{
9821
+ msgId: string;
9822
+ colliders: TSerializedColliderResponse[];
9823
+ }>) => void;
9824
+ drawDebug: () => void;
9825
+ destroy: () => void;
9605
9826
  }
9827
+ export {};
9606
9828
  }
9607
9829
 
9608
9830
  declare module '@mappedin/react-sdk/geojson/src/entities/geometry3d' {
@@ -9940,6 +10162,62 @@ declare module '@mappedin/react-sdk/geojson/src/entities' {
9940
10162
  export { Geometry3D, Geometry3DComponents, type PathMesh, type PatMeshContainer, type PathMaterial, } from '@mappedin/react-sdk/geojson/src/entities/geometry3d';
9941
10163
  }
9942
10164
 
10165
+ declare module '@mappedin/react-sdk/geojson/src/components/style' {
10166
+ import type { LineStyle } from '@mappedin/react-sdk/geojson/src/renderer';
10167
+ export const DEFAULT_COLOR = "#ffffff";
10168
+ export const DEFAULT_HEIGHT = 0.1;
10169
+ /**
10170
+ * Determines how a material is rendered, back face, front face or both (default)
10171
+ */
10172
+ export type MaterialSide = 'back' | 'front' | 'double';
10173
+ type Style = {
10174
+ color: string;
10175
+ width: number;
10176
+ opacity: number;
10177
+ visible: boolean;
10178
+ height: number;
10179
+ altitude: number;
10180
+ join: LineStyle['join'];
10181
+ cap: LineStyle['cap'];
10182
+ topColor?: string;
10183
+ texture?: string;
10184
+ topTexture?: string;
10185
+ outline: boolean;
10186
+ showImage: boolean;
10187
+ showTextLabel: boolean;
10188
+ flipImageToFaceCamera: boolean;
10189
+ flipTextToFaceCamera: boolean;
10190
+ url?: string;
10191
+ side?: MaterialSide;
10192
+ };
10193
+ export class StyleComponent implements Style {
10194
+ initialColor: string;
10195
+ color: string;
10196
+ topColor?: string;
10197
+ topTexture?: string;
10198
+ texture?: string;
10199
+ hoverColor?: string;
10200
+ dirty: boolean;
10201
+ visible: boolean;
10202
+ opacity: number;
10203
+ width: number;
10204
+ height: number;
10205
+ initialHeight: number;
10206
+ altitude: number;
10207
+ join: LineStyle['join'];
10208
+ cap: LineStyle['cap'];
10209
+ outline: boolean;
10210
+ showImage: boolean;
10211
+ showTextLabel: boolean;
10212
+ flipImageToFaceCamera: boolean;
10213
+ flipTextToFaceCamera: boolean;
10214
+ url?: string;
10215
+ side: MaterialSide;
10216
+ constructor(style?: Partial<Style>);
10217
+ }
10218
+ export {};
10219
+ }
10220
+
9943
10221
  declare module '@mappedin/react-sdk/geojson/src/types/options' {
9944
10222
  import type { Position } from '@mappedin/react-sdk/geojson/src/types/geometry';
9945
10223
  import type { Map as MapLibreMap } from '@mappedin/react-sdk/packages/outdoor-context-v4';
@@ -10068,82 +10346,6 @@ declare module '@mappedin/react-sdk/packages/common/pubsub' {
10068
10346
  }
10069
10347
  }
10070
10348
 
10071
- declare module '@mappedin/react-sdk/geojson/src/systems/collisions/system' {
10072
- import { QuadTree } from '@packages/internal/quad-tree';
10073
- import './style.scss';
10074
- import type { MarkerComponent } from '@mappedin/react-sdk/geojson/src/components/marker';
10075
- import type LabelComponent from '@mappedin/react-sdk/geojson/src/components/label';
10076
- import { PubSub } from '@mappedin/react-sdk/packages/common/pubsub';
10077
- import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
10078
- import type { TSerializedCollider, TSerializedColliderResponse } from '@mappedin/react-sdk/geojson/src/systems/collisions/collider-processor';
10079
- import type { WatermarkPosition } from '@mappedin/react-sdk/geojson/src/systems/watermark/system';
10080
- export type TMessageEvent = MessageEvent<{
10081
- msgId: string;
10082
- colliders: TSerializedColliderResponse[];
10083
- debug: {
10084
- x: number;
10085
- y: number;
10086
- w: number;
10087
- h: number;
10088
- }[];
10089
- }>;
10090
- export type TMessage = {
10091
- msgId: string;
10092
- totalWidth: number;
10093
- totalHeight: number;
10094
- watermarkWidth: number;
10095
- watermarkHeight: number;
10096
- watermarkPosition: WatermarkPosition;
10097
- colliders: TSerializedCollider[];
10098
- devicePixelRatio: number;
10099
- };
10100
- type TCollisionSystemEvent = {
10101
- 'visibility-changed': undefined;
10102
- };
10103
- export type PackedBBox = [x: number, y: number, w: number, h: number];
10104
- export type PackedBBoxes = PackedBBox[];
10105
- export type PackedCollider = [bboxes: PackedBBoxes, enabled: 0 | 1, alwaysVisible: 0 | 1, x: number, y: number];
10106
- export type PackedMessage = [
10107
- colliders: PackedCollider[],
10108
- devicePixelRatio: number,
10109
- totalHeight: number,
10110
- totalWidth: number,
10111
- watermarkWidth: number,
10112
- watermarkHeight: number,
10113
- watermarkPosition: WatermarkPosition
10114
- ];
10115
- export class CollisionSystem extends PubSub<TCollisionSystemEvent, keyof TCollisionSystemEvent> {
10116
- dirty: boolean;
10117
- packedMessage: PackedMessage;
10118
- visibleCollidersQTree: QuadTree<{
10119
- entityId: string | number;
10120
- }>;
10121
- interactiveCollidersQTree: QuadTree<{
10122
- entityId: string | number;
10123
- }>;
10124
- coreState: RendererState;
10125
- constructor(debugCanvas: HTMLCanvasElement, coreState: RendererState, worker?: Worker);
10126
- postMessage: () => void;
10127
- showCollisionBoxes: () => void;
10128
- hideCollisionBoxes: () => void;
10129
- currentMsgId: string;
10130
- working: boolean;
10131
- componentArray: (MarkerComponent | LabelComponent)[];
10132
- update: (watermarkWidth: number, watermarkHeight: number, watermarkPosition?: WatermarkPosition) => void;
10133
- resize(watermarkWidth: number, watermarkHeight: number, watermarkPosition: WatermarkPosition): void;
10134
- /**
10135
- * Resolve collisions
10136
- */
10137
- resolve: (e: MessageEvent<{
10138
- msgId: string;
10139
- colliders: TSerializedColliderResponse[];
10140
- }>) => void;
10141
- drawDebug: () => void;
10142
- destroy: () => void;
10143
- }
10144
- export {};
10145
- }
10146
-
10147
10349
  declare module '@mappedin/react-sdk/geojson/src/systems/interactions' {
10148
10350
  export { InteractionSystem } from '@mappedin/react-sdk/geojson/src/systems/interactions/system';
10149
10351
  }
@@ -10221,6 +10423,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-projection/system' {
10221
10423
  declare module '@mappedin/react-sdk/geojson/src/systems/2d-draw/system' {
10222
10424
  import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
10223
10425
  import LabelComponent from '@mappedin/react-sdk/geojson/src/components/label';
10426
+ export const INACTIVE_MARKER_SIZE_NO_ICON = 3.5;
10224
10427
  enum TEXTALIGN {
10225
10428
  LEFT = "left",
10226
10429
  CENTER = "center",
@@ -10295,10 +10498,11 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-visibility/system' {
10295
10498
  }> {
10296
10499
  state: RendererState;
10297
10500
  constructor(state: RendererState);
10298
- animating: Map<LabelComponent, number>;
10501
+ animating: Map<LabelComponent, [number, number]>;
10299
10502
  isAnimating: boolean;
10300
10503
  startTime: number;
10301
- duration: number;
10504
+ showDuration: number;
10505
+ hideDuration: number;
10302
10506
  update: () => void;
10303
10507
  playAnimations: () => void;
10304
10508
  _playAnimations(): void;
@@ -10341,6 +10545,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/dom-draw/system' {
10341
10545
  import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
10342
10546
  export const ANIMATION_DURATION = 300;
10343
10547
  export class DOMDrawSystem {
10548
+ #private;
10344
10549
  state: RendererState;
10345
10550
  constructor(state: RendererState);
10346
10551
  update(isUserInteracting: boolean): void;
@@ -10813,10 +11018,15 @@ declare module '@mappedin/react-sdk/geojson/src/systems/exporter/exporter' {
10813
11018
  }
10814
11019
 
10815
11020
  declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object' {
10816
- import type { FloorProperties as MVFFloor, ParsedMVF } from '@mappedin/mvf';
11021
+ import type { Polygon, MultiPolygon, FloorProperties as MVFFloor, ParsedMVF, Feature } from '@mappedin/mvf';
10817
11022
  import type { RendererCore } from '@mappedin/core-sdk';
10818
11023
  import type { AggregatedStyleMap } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils';
10819
11024
  import type { TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
11025
+ class Layer {
11026
+ containerId: string;
11027
+ layers: Map<string, string>;
11028
+ constructor(containerId: string, layers?: Map<any, any>);
11029
+ }
10820
11030
  export class FloorObject implements MVFFloor {
10821
11031
  id: string;
10822
11032
  name?: string;
@@ -10826,11 +11036,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object' {
10826
11036
  metadata?: Partial<Record<string, unknown>> | undefined;
10827
11037
  shortName?: string | undefined;
10828
11038
  subtitle?: string | undefined;
10829
- layers: Map<string, string>;
11039
+ layers: Map<string, Layer>;
11040
+ footprint?: Feature<Polygon | MultiPolygon | null, MVFFloor>;
10830
11041
  floorStackId: string;
10831
- constructor(parentId: string, floor: MVFFloor, renderer: RendererCore, options: TShow3DMapOptions, mvf?: ParsedMVF, styleMap?: AggregatedStyleMap);
11042
+ constructor(parentId: string, floor: MVFFloor, renderer: RendererCore, multiFloorView: Required<TShow3DMapOptions['multiFloorView']>, options: TShow3DMapOptions, mvf?: ParsedMVF, styleMap?: AggregatedStyleMap);
10832
11043
  load: () => this;
10833
11044
  }
11045
+ export {};
10834
11046
  }
10835
11047
 
10836
11048
  declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils' {
@@ -10896,54 +11108,33 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-stack-obje
10896
11108
  }
10897
11109
  }
10898
11110
 
10899
- declare module '@mappedin/react-sdk/geojson/src/components/style' {
10900
- import type { LineStyle } from '@mappedin/react-sdk/geojson/src/renderer';
10901
- export const DEFAULT_COLOR = "#ffffff";
10902
- export const DEFAULT_HEIGHT = 0.1;
10903
- type Style = {
10904
- color: string;
10905
- width: number;
10906
- opacity: number;
10907
- visible: boolean;
10908
- height: number;
10909
- altitude: number;
10910
- join: LineStyle['join'];
10911
- cap: LineStyle['cap'];
10912
- topColor?: string;
10913
- texture?: string;
10914
- topTexture?: string;
10915
- outline: boolean;
10916
- showImage: boolean;
10917
- showTextLabel: boolean;
10918
- flipImageToFaceCamera: boolean;
10919
- flipTextToFaceCamera: boolean;
10920
- url?: string;
11111
+ declare module '@mappedin/react-sdk/geojson/src/systems/collisions/collider-processor' {
11112
+ import { Rectangle } from '@packages/internal/quad-tree';
11113
+ export type TSerializedCollider = {
11114
+ rank: number;
11115
+ enabled: boolean;
11116
+ x: number;
11117
+ y: number;
11118
+ bboxes: {
11119
+ index: number;
11120
+ boundingBox: [number, number, number, number];
11121
+ boundingRect?: Rectangle;
11122
+ }[];
11123
+ shouldCollideWithScreenEdges?: boolean;
11124
+ lockedToStrategyIndex?: number;
11125
+ visible?: boolean;
11126
+ };
11127
+ export type TSerializedColliderResponse = [number, 1 | 0, Rectangle?];
11128
+ export function processColliders(colliders: TSerializedCollider[], totalWidth: any, totalHeight: any, watermarkWidth: any, watermarkHeight: any, watermarkPosition: any, msgId?: string): {
11129
+ msgId: string;
11130
+ colliders: TSerializedColliderResponse[];
11131
+ debug: {
11132
+ x: number;
11133
+ y: number;
11134
+ w: number;
11135
+ h: number;
11136
+ }[];
10921
11137
  };
10922
- export class StyleComponent implements Style {
10923
- initialColor: string;
10924
- color: string;
10925
- topColor?: string;
10926
- topTexture?: string;
10927
- texture?: string;
10928
- hoverColor?: string;
10929
- dirty: boolean;
10930
- visible: boolean;
10931
- opacity: number;
10932
- width: number;
10933
- height: number;
10934
- initialHeight: number;
10935
- altitude: number;
10936
- join: LineStyle['join'];
10937
- cap: LineStyle['cap'];
10938
- outline: boolean;
10939
- showImage: boolean;
10940
- showTextLabel: boolean;
10941
- flipImageToFaceCamera: boolean;
10942
- flipTextToFaceCamera: boolean;
10943
- url?: string;
10944
- constructor(style?: Partial<Style>);
10945
- }
10946
- export {};
10947
11138
  }
10948
11139
 
10949
11140
  declare module '@mappedin/react-sdk/geojson/src/entities/utils' {
@@ -10961,7 +11152,7 @@ declare module '@mappedin/react-sdk/geojson/src/entities/utils' {
10961
11152
  export function updateGroupColor(entity: GeometryGroupObject3D, state: RendererState, update: Partial<Pick<GeometryGroupState, 'color' | 'topColor'>>): boolean | undefined;
10962
11153
  export function updateGroupShading(entity: GeometryGroupObject3D, update?: GeometryGroupState['shading']): boolean;
10963
11154
  export function updateImageProps(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: Partial<GeometryState>): void;
10964
- export function updateHeight(entity: Geometry3D, update?: number): boolean;
11155
+ export function updateHeight(entity: Geometry3D | GeometryGroupObject3D, state: RendererState, update?: number): boolean;
10965
11156
  export function updateColor(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: Partial<GeometryState>): void;
10966
11157
  export function updatePosition(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Position | undefined, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition']): void;
10967
11158
  export function updateParent(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: GroupContainerObject3D | undefined): boolean;
@@ -10982,33 +11173,6 @@ declare module '@mappedin/react-sdk/geojson/src/entities/utils' {
10982
11173
  export function pickPathOptions(update: PathUpdateState): Partial<PathUpdateState>;
10983
11174
  }
10984
11175
 
10985
- declare module '@mappedin/react-sdk/geojson/src/systems/collisions/collider-processor' {
10986
- import { Rectangle } from '@packages/internal/quad-tree';
10987
- export type TSerializedCollider = {
10988
- rank: number;
10989
- enabled: boolean;
10990
- x: number;
10991
- y: number;
10992
- bboxes: {
10993
- index: number;
10994
- boundingBox: [number, number, number, number];
10995
- boundingRect?: Rectangle;
10996
- }[];
10997
- shouldCollideWithScreenEdges?: boolean;
10998
- };
10999
- export type TSerializedColliderResponse = [number, boolean, Rectangle?];
11000
- export function processColliders(colliders: TSerializedCollider[], totalWidth: any, totalHeight: any, watermarkWidth: any, watermarkHeight: any, watermarkPosition: any, msgId?: string): {
11001
- msgId: string;
11002
- colliders: TSerializedColliderResponse[];
11003
- debug: {
11004
- x: number;
11005
- y: number;
11006
- w: number;
11007
- h: number;
11008
- }[];
11009
- };
11010
- }
11011
-
11012
11176
  declare module '@mappedin/react-sdk/geojson/src/systems/interactions/system' {
11013
11177
  import type { PerspectiveCamera, Vector3, Object3D, Mesh } from 'three';
11014
11178
  import { Raycaster } from 'three';
@@ -11060,7 +11224,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/interactions/system' {
11060
11224
  entityId: Geometry2D['id'];
11061
11225
  }>;
11062
11226
  _container: HTMLCanvasElement;
11063
- constructor(container: HTMLCanvasElement, coreState: RendererState, camera: PerspectiveCamera, cameraPlane: Mesh);
11227
+ constructor(container: HTMLCanvasElement, coreState: RendererState, camera: PerspectiveCamera, cameraPlane: Mesh, isUserInteracting: () => boolean);
11064
11228
  updateQuadtree(takeIT: QuadTree<{
11065
11229
  entityId: Geometry2D['id'];
11066
11230
  }>): void;
@@ -11140,6 +11304,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/camera/system' {
11140
11304
  #private;
11141
11305
  dirty: boolean;
11142
11306
  zoomDirty: boolean;
11307
+ rotationDirty: boolean;
11143
11308
  /**
11144
11309
  * Factor that controls how fast zooming in and out happens in response to mouse wheel events
11145
11310
  *