@mappedin/react-sdk 6.0.1-beta.4 → 6.0.1-beta.5

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.
@@ -6,10 +6,11 @@
6
6
  // ../react/@packages/internal/common/pubsub
7
7
  // ../react/@packages/internal/common/Mappedin.Logger
8
8
  // ../react/geojson
9
- // ../react/@mappedin/core-sdk
10
9
  // ../react/@packages/internal/common
10
+ // ../react/@mappedin/core-sdk
11
11
  // ../react/@mappedin/core-sdk/src/camera
12
12
  // ../react/three
13
+ // ../react/zod
13
14
  // ../react/@packages/internal/shave-text/shave-text
14
15
  // ../react/@turf/turf
15
16
  // ../react/@packages/internal/quad-tree
@@ -247,7 +248,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
247
248
  import type { Shading, PaintStyle, LineStyle, WatermarkOptions } from '@mappedin/react-sdk/geojson/src';
248
249
  import { enableTestMode } from '@mappedin/react-sdk/geojson/src';
249
250
  export type { PubSub } from '@packages/internal/common/pubsub';
250
- import { analytics } from '@mappedin/react-sdk/mappedin-js/src/analytics';
251
251
  import { MappedinMapLibreOverlay } from '@mappedin/react-sdk/mappedin-js/src/maplibre-overlay';
252
252
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
253
253
  /**
@@ -516,12 +516,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
516
516
  export type { MapView, MapData, MappedinMapLibreOverlay, TEvents, TEventPayload, TClickPayload, THoverPayload, TShow3DMapOptions, TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, TAmbientOcclusionOptions, TAntialiasingOptions, TMVF, PaintStyle, LineStyle, Shading, TMVFStyleCollection, TMVFStyle, TMVFLineStringStyle, TMVFPolygonStyle, TMVFPointStyle, };
517
517
  export type * from 'geojson';
518
518
  export type { TUpdateState, TLabelState, TGeometryState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TCameraFocusOnTarget, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, } from '@mappedin/react-sdk/mappedin-js/src/types';
519
+ export { WALLS, DOORS } from '@mappedin/react-sdk/mappedin-js/src/types';
519
520
  export type { Label, Marker, Path, Shape, CameraTransform, Model } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
520
521
  export type { Navigation, TNavigationOptions } from '@mappedin/react-sdk/mappedin-js/src/navigation';
521
522
  export type { TSpaceType } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
522
523
  export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink, } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
523
524
  export type { Camera, Models, Labels, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
524
- export { analytics };
525
525
  }
526
526
 
527
527
  declare module '@mappedin/react-sdk/react-sdk/src/type-utils' {
@@ -550,7 +550,12 @@ declare module '@mappedin/react-sdk/react-sdk/src' {
550
550
  }
551
551
 
552
552
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
553
+ import { PubSub } from '@packages/internal/common';
554
+ import { Analytics } from '@mappedin/react-sdk/mappedin-js/src/analytics';
553
555
  import type { Connection, Door, Floor, MapDataInternal, Space, MapObject, PointOfInterest, Annotation, Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
556
+ import type Category from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
557
+ import type Location from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
558
+ import type Venue from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue';
554
559
  /**
555
560
  * A WeakMap to associate {@link MapData} instances with their internal representation.
556
561
  * We need a way to get the internal data object from the API
@@ -562,8 +567,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
562
567
  * Represents the data for a map, providing access to map elements
563
568
  * like spaces, floors, and points of interest.
564
569
  */
565
- class MapData {
570
+ class MapData extends PubSub<{
571
+ 'language-change': {
572
+ code: string;
573
+ name: string;
574
+ };
575
+ }> {
566
576
  #private;
577
+ Analytics: Analytics;
567
578
  /**
568
579
  * Constructs a new instance of {@link MapData}.
569
580
  *
@@ -588,6 +599,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
588
599
  * @returns {string} The organization ID of the map.
589
600
  */
590
601
  get organizationId(): string;
602
+ /**
603
+ * @internal
604
+ */
605
+ get venue(): Venue | undefined;
591
606
  /**
592
607
  * The token is used to fetch outdoor tiles.
593
608
  *
@@ -645,6 +660,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
645
660
  * const annotations = mapData.getByType('annotation');
646
661
  */
647
662
  getByType(type: 'annotation'): Annotation[];
663
+ /**
664
+ * @internal
665
+ */
666
+ getByType(type: 'location'): Location[];
667
+ /**
668
+ * @internal
669
+ */
670
+ getByType(type: 'category'): Category[];
648
671
  /**
649
672
  * Retrieves a specific map feature by its type and ID.
650
673
  *
@@ -661,9 +684,26 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
661
684
  getById(type: 'object', id: string): MapObject | undefined;
662
685
  getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
663
686
  getById(type: 'annotation', id: string): Annotation | undefined;
687
+ getById(type: 'location', id: string): Location | undefined;
688
+ getById(type: 'category', id: string): Category | undefined;
664
689
  getById(type: string, id: string): object | undefined;
690
+ /**
691
+ * @internal
692
+ */
693
+ changeLanguage(languageCode: string): Promise<void>;
694
+ /**
695
+ * @internal
696
+ */
697
+ get currentLanguage(): {
698
+ code: string;
699
+ name: string;
700
+ };
665
701
  }
666
702
  export default MapData;
703
+ /**
704
+ * @internal
705
+ */
706
+ export function getMapDataInternal(mapData: MapData): MapDataInternal;
667
707
  }
668
708
 
669
709
  declare module '@mappedin/react-sdk/mappedin-js/src/events' {
@@ -787,15 +827,26 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
787
827
  import Annotation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/annotation';
788
828
  import Hyperlink from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink';
789
829
  import Image from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image';
790
- import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap } from '@mappedin/mvf';
830
+ import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap, EnterpriseLocation, EnterpriseCategory } from '@mappedin/mvf';
791
831
  import type { MapDataObjects } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types';
832
+ import type Location from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
833
+ import type Category from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
834
+ import Venue from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue';
835
+ import { PubSub } from '@packages/internal/common';
836
+ import { AnalyticsInternal } from '@mappedin/react-sdk/mappedin-js/src/analytics';
792
837
  /**
793
838
  * Internal class representing detailed map data.
794
839
  *
795
840
  * @internal
796
841
  */
797
- class MapDataInternal {
842
+ class MapDataInternal extends PubSub<{
843
+ 'language-change': {
844
+ code: string;
845
+ name: string;
846
+ };
847
+ }> {
798
848
  #private;
849
+ Analytics: AnalyticsInternal;
799
850
  /**
800
851
  * Represents the parsed Mappedin Venue Format (MVF) data.
801
852
  */
@@ -816,7 +867,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
816
867
  * Represents a map of entrance IDs to obstruction IDs.
817
868
  */
818
869
  readonly obstructionIdByEntranceId: Record<string, string>;
870
+ readonly venue?: Venue;
819
871
  doorsByNodeId: Record<string, Door>;
872
+ locationsBySpaceId: Record<string, EnterpriseLocation[]>;
820
873
  /**
821
874
  * @internal
822
875
  */
@@ -879,6 +932,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
879
932
  * @returns {Annotation[]} An array of Annotation objects.
880
933
  */
881
934
  get nodes(): Node[];
935
+ get locations(): Location[];
936
+ get categories(): Category[];
882
937
  /**
883
938
  * Retrieves an object by its type and ID.
884
939
  *
@@ -894,6 +949,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
894
949
  getById(type: 'object', id: string): MapObject | undefined;
895
950
  getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
896
951
  getById(type: 'annotation', id: string): Annotation | undefined;
952
+ getById(type: 'location', id: string): Location | undefined;
953
+ getById(type: 'category', id: string): Category | undefined;
897
954
  getMapDataById(id: string): MapDataObjects | undefined;
898
955
  /**
899
956
  * Retrieves a feature by its type and ID from the Mappedin Venue Format (MVF) data.
@@ -911,6 +968,25 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
911
968
  getMVFFeatureById(type: 'annotation', id: string): AnnotationCollection['features'][number] | undefined;
912
969
  getMVFFeatureById(type: string, id: string): object | undefined;
913
970
  getMVFFeatureByNodeId(type: 'connection', id: string): MVFConnection | undefined;
971
+ currentLanguage: {
972
+ code: string;
973
+ name: string;
974
+ };
975
+ /**
976
+ * These represent maps of diffed objects that are used to store the translated values
977
+ */
978
+ languagePacks: {
979
+ [key: string]: {
980
+ location: {
981
+ [key: string]: Partial<EnterpriseLocation>;
982
+ };
983
+ category: {
984
+ [key: string]: Partial<EnterpriseCategory>;
985
+ };
986
+ };
987
+ };
988
+ getPropTranslation(type: 'location' | 'category', prop: string, id: string, fallback: EnterpriseLocation[keyof EnterpriseLocation] | EnterpriseCategory[keyof EnterpriseCategory]): unknown;
989
+ changeLanguage(languageCode: string): Promise<void>;
914
990
  /**
915
991
  * Cleans up resources used by the instance.
916
992
  *
@@ -918,7 +994,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
918
994
  */
919
995
  destroy(): void;
920
996
  }
921
- export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, };
997
+ export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, Location, };
922
998
  export type { TSpaceType } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space';
923
999
  export type { MapDataObjects };
924
1000
  }
@@ -928,12 +1004,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
928
1004
  import { PubSub } from '@packages/internal/common';
929
1005
  import { type TEvents, type TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
930
1006
  import type { Navigation } from '@mappedin/react-sdk/mappedin-js/src/navigation';
931
- import type { Camera, Labels, Markers, Models, Paths, Exporter, Directions, Style, Outdoor } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
1007
+ import type { Camera, Labels, Markers, Models, Paths, Exporter, Directions, Style, Outdoor, Images } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
932
1008
  import type { BlueDot } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/blue-dot/blue-dot';
933
1009
  import type MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
934
- import type { Floor, MapObject, Space } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
935
- import type { TGetDirectionsOptions, TGetState, TNavigationTarget, TUpdateState, TUpdateStates } from '@mappedin/react-sdk/mappedin-js/src/types';
936
- import type { Label, Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
1010
+ import type { Door, Floor, MapObject, Space } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
1011
+ import type { DOORS, WALLS, TGetDirectionsOptions, TGetState, TNavigationTarget, TUpdateState, TUpdateStates } from '@mappedin/react-sdk/mappedin-js/src/types';
1012
+ import type { Label, Marker, Image } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
937
1013
  import type { TEventPayload } from '@mappedin/react-sdk/mappedin-js/src/events';
938
1014
  import type { Shapes } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/shapes';
939
1015
  export class MapView extends PubSub<TEvents> {
@@ -950,6 +1026,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
950
1026
  * Controls for the map's markers.
951
1027
  */
952
1028
  Markers: Markers;
1029
+ /**
1030
+ * Controls for the map's markers.
1031
+ */
1032
+ Images: Images;
953
1033
  /**
954
1034
  * Controls for the map's models.
955
1035
  */
@@ -1005,8 +1085,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
1005
1085
  * // Update the color of a space to red.
1006
1086
  * map.updateState(space, { color: 'red' });
1007
1087
  */
1008
- updateState<T extends Space | MapObject | Label | Marker>(target: T | string, state: TUpdateState<T>): any;
1009
- updateState<T extends 'walls' | (string & NonNullable<unknown>)>(target: T, state: TUpdateStates): any;
1088
+ updateState<T extends Space | MapObject | Label | Marker | Door | WALLS | DOORS>(target: T, state: TUpdateState<T>): any;
1089
+ updateState<T extends string & NonNullable<unknown>>(target: T, state: TUpdateStates): any;
1010
1090
  update: () => void;
1011
1091
  getMapData(): {
1012
1092
  [x: string]: MapData;
@@ -1054,7 +1134,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
1054
1134
  * @hidden
1055
1135
  */
1056
1136
  updateWatermark(options: Omit<WatermarkOptions, 'onClick'>): void;
1057
- getState<T extends Space | MapObject | Label | Marker | string>(target: T): TGetState<T> | undefined;
1137
+ getState<T extends Space | MapObject | Label | Marker | Image | string>(target: T): TGetState<T> | undefined;
1058
1138
  setHoverColor(c: string): void;
1059
1139
  getHoverColor(): string | undefined;
1060
1140
  /**
@@ -1144,9 +1224,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
1144
1224
  */
1145
1225
  destroy(): void;
1146
1226
  /**
1147
- * @internal
1148
1227
  * @experimental
1149
- * SDK debug mode wip
1228
+ * Enable debug interface
1150
1229
  */
1151
1230
  enableDebug(): Promise<void>;
1152
1231
  }
@@ -1189,11 +1268,6 @@ declare module '@mappedin/react-sdk/geojson/src' {
1189
1268
  }): Promise<RendererCore>;
1190
1269
  }
1191
1270
 
1192
- declare module '@mappedin/react-sdk/mappedin-js/src/analytics' {
1193
- export { analytics, analyticsInternal } from '@mappedin/react-sdk/mappedin-js/src/analytics/customer';
1194
- export type { CustomerAnalytics, AnalyticsOptions } from '@mappedin/react-sdk/mappedin-js/src/analytics/customer';
1195
- }
1196
-
1197
1271
  declare module '@mappedin/react-sdk/mappedin-js/src/maplibre-overlay' {
1198
1272
  import { MapView } from '@mappedin/react-sdk/mappedin-js/src/map-view';
1199
1273
  import type MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
@@ -1226,9 +1300,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/maplibre-overlay' {
1226
1300
  declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1227
1301
  import type { Feature, MultiPolygon, Polygon } from 'geojson';
1228
1302
  import type { Coordinate, Floor, Door, Space, MapObject, PointOfInterest, Connection, Annotation } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
1229
- import type { Label, Marker, Model } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
1303
+ import type { Label, Marker, Model, Image } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
1230
1304
  import type { EasingCurve } from '@mappedin/core-sdk/src/camera';
1231
- import { GeometryGroupState } from '@mappedin/core-sdk';
1232
1305
  export type DeepRequired<T> = Required<{
1233
1306
  [K in keyof T]: T[K] extends Required<T[K]> ? T[K] : DeepRequired<T[K]>;
1234
1307
  }>;
@@ -1293,6 +1366,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1293
1366
  * Defines the state for a label when its appearance is updated.
1294
1367
  */
1295
1368
  export type TLabelState = {
1369
+ text: string;
1296
1370
  type: 'label';
1297
1371
  /**
1298
1372
  * Appearance settings for the label.
@@ -1317,6 +1391,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1317
1391
  export type TModelState = {
1318
1392
  type: 'model';
1319
1393
  };
1394
+ /**
1395
+ * Defines the state for an image when its appearance is updated.
1396
+ */
1397
+ export type TImageState = {
1398
+ type: 'image';
1399
+ };
1320
1400
  export type TWallsState = {
1321
1401
  /**
1322
1402
  * Color of the walls.
@@ -1326,6 +1406,31 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1326
1406
  * Color of the top of walls, if not set, defaults to the color.
1327
1407
  */
1328
1408
  topColor?: string | 'initial';
1409
+ /**
1410
+ * Texture to apply to the geometry element.
1411
+ */
1412
+ texture?: {
1413
+ url?: string;
1414
+ };
1415
+ /**
1416
+ * Top texture to apply to the geometry element.
1417
+ */
1418
+ topTexture?: {
1419
+ url?: string;
1420
+ };
1421
+ /**
1422
+ * Visibility of the walls.
1423
+ */
1424
+ visible: boolean;
1425
+ };
1426
+ /**
1427
+ * @interface
1428
+ */
1429
+ export type TDoorsState = TWallsState & {
1430
+ /**
1431
+ * Opacity of the doors.
1432
+ */
1433
+ opacity: number;
1329
1434
  };
1330
1435
  export type TMarkerState = {
1331
1436
  type: 'marker';
@@ -1383,13 +1488,33 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1383
1488
  * Height of the geometry element in meters.
1384
1489
  */
1385
1490
  height: number;
1491
+ /**
1492
+ * Texture to apply to the geometry element.
1493
+ */
1494
+ texture?: {
1495
+ url: string;
1496
+ };
1497
+ /**
1498
+ * Top texture to apply to the geometry element.
1499
+ */
1500
+ topTexture?: {
1501
+ url: string;
1502
+ };
1386
1503
  };
1504
+ export enum WALLS {
1505
+ Exterior = "exterior-walls",
1506
+ Interior = "interior-walls"
1507
+ }
1508
+ export enum DOORS {
1509
+ Interior = "interior-doors",
1510
+ Exterior = "exterior-doors"
1511
+ }
1387
1512
  /**
1388
1513
  * The type for updating the state of map elements (colors, texts, etc.).
1389
1514
  */
1390
- export type TUpdateState<T> = T extends 'walls' ? Partial<Omit<GeometryGroupState, 'interactive' | 'hoverColor' | 'type'>> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends string ? Record<string, any> : never;
1515
+ export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS ? Partial<TDoorsState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends Door ? Partial<TGeometryState> : T extends string ? Record<string, any> : never;
1391
1516
  export type TUpdateStates = Partial<Omit<TGeometryState, 'interactive' | 'hoverColor' | 'type'>> | Partial<TMarkerState> | Partial<TLabelState> | Partial<TGeometryState>;
1392
- export type TGetEntityState<T> = T extends Marker ? TMarkerState : T extends Model ? TModelState : T extends Label ? TLabelState : T extends Space | MapObject ? TGeometryState : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | undefined : never;
1517
+ export type TGetEntityState<T> = T extends Marker ? TMarkerState : T extends Model ? TModelState : T extends Label ? TLabelState : T extends Image ? TImageState : T extends Space | MapObject ? TGeometryState : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | undefined : never;
1393
1518
  export type TGetState<T> = TGetEntityState<T> | undefined;
1394
1519
  /**
1395
1520
  * Options for {@link Camera} animations on the map.
@@ -1851,6 +1976,42 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1851
1976
  */
1852
1977
  url: string;
1853
1978
  };
1979
+ /**
1980
+ * Options for controlling the behavior of a {@link Marker}.
1981
+ * @interface
1982
+ */
1983
+ export type TAddImageOptions = {
1984
+ /**
1985
+ * @internal
1986
+ */
1987
+ id?: string;
1988
+ /**
1989
+ * Width of the image in meters.
1990
+ */
1991
+ width: number;
1992
+ /**
1993
+ * Height of the image in meters.
1994
+ */
1995
+ height: number;
1996
+ /**
1997
+ * Rotation of the image in degrees.
1998
+ *
1999
+ * @default 0
2000
+ */
2001
+ rotation?: number;
2002
+ /**
2003
+ * Vertical offset of the image in meters.
2004
+ *
2005
+ * @default 0
2006
+ */
2007
+ verticalOffset?: number;
2008
+ /**
2009
+ * Attempt to keep the image facing the camera as much as possible
2010
+ *
2011
+ * @default false
2012
+ */
2013
+ flipImageToFaceCamera?: boolean;
2014
+ };
1854
2015
  /**
1855
2016
  * Options for controlling the behavior of a {@link Marker}.
1856
2017
  * @interface
@@ -1945,6 +2106,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/types' {
1945
2106
  declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects' {
1946
2107
  export { Label } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/label';
1947
2108
  export { Marker } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker';
2109
+ export { Image } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/image';
1948
2110
  export { Model } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/model';
1949
2111
  export { Path } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/path';
1950
2112
  export { CameraTransform } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects/camera-transform';
@@ -2055,6 +2217,228 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson' {
2055
2217
  export { Directions } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/directions';
2056
2218
  export { Style } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/style';
2057
2219
  export { default as Outdoor } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/outdoor';
2220
+ export { Images } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/images';
2221
+ }
2222
+
2223
+ declare module '@mappedin/react-sdk/mappedin-js/src/analytics' {
2224
+ export { Analytics, AnalyticsInternal } from '@mappedin/react-sdk/mappedin-js/src/analytics/customer';
2225
+ export type { AnalyticsUpdateOptions } from '@mappedin/react-sdk/mappedin-js/src/analytics/customer';
2226
+ }
2227
+
2228
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
2229
+ import type { EnterpriseCategory } from '@mappedin/mvf';
2230
+ import type { MapDataInternal, Location } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
2231
+ import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
2232
+ /**
2233
+ * A class representing space data within the map.
2234
+ *
2235
+ * Spaces are used to represent different areas within a map, such as rooms, hallways, etc.
2236
+ */
2237
+ class Category extends BaseMapData implements Omit<EnterpriseCategory, 'children' | 'locations'> {
2238
+ #private;
2239
+ /**
2240
+ * @internal
2241
+ */
2242
+ static readonly __type = "category";
2243
+ /**
2244
+ * @internal
2245
+ */
2246
+ readonly __type = "category";
2247
+ name: string;
2248
+ color?: string | undefined;
2249
+ externalId: string;
2250
+ extra?: Record<string, unknown> | undefined;
2251
+ icon?: string | undefined;
2252
+ iconFromDefaultList?: string | null | undefined;
2253
+ sortOrder: number;
2254
+ /**
2255
+ * Checks if the provided instance is of type Category.
2256
+ *
2257
+ * @param instance The instance to check.
2258
+ * @returns {boolean} True if the instance is a Category, false otherwise.
2259
+ */
2260
+ static is(instance: object): instance is Category;
2261
+ /**
2262
+ * @internal
2263
+ */
2264
+ constructor(data: MapDataInternal, options: {
2265
+ mvfData: EnterpriseCategory;
2266
+ });
2267
+ get children(): Category[];
2268
+ get locations(): Location[];
2269
+ /**
2270
+ * Serializes the space data to JSON.
2271
+ *
2272
+ * @returns An object representing the space.
2273
+ */
2274
+ toJSON(): {
2275
+ id: string;
2276
+ name: string;
2277
+ };
2278
+ /**
2279
+ * Cleans up resources used by the instance.
2280
+ *
2281
+ * @internal
2282
+ */
2283
+ destroy(): void;
2284
+ }
2285
+ export default Category;
2286
+ }
2287
+
2288
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
2289
+ import type { EnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
2290
+ import type { Coordinate, MapDataInternal, Space } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
2291
+ import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
2292
+ import type Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
2293
+ /**
2294
+ * A class representing space data within the map.
2295
+ *
2296
+ * Spaces are used to represent different areas within a map, such as rooms, hallways, etc.
2297
+ */
2298
+ class Location extends BaseMapData implements Omit<EnterpriseLocation, 'polygons' | 'nodes' | 'links'> {
2299
+ #private;
2300
+ /**
2301
+ * @internal
2302
+ */
2303
+ static readonly __type = "location";
2304
+ /**
2305
+ * @internal
2306
+ */
2307
+ readonly __type = "location";
2308
+ description?: string | undefined;
2309
+ name: string;
2310
+ amenity?: string | undefined;
2311
+ externalId: string;
2312
+ extra?: Record<string, unknown> | undefined;
2313
+ gallery?: {
2314
+ caption?: string | null;
2315
+ image: string;
2316
+ embeddedUrl?: string | null;
2317
+ }[] | undefined;
2318
+ logo?: string | undefined;
2319
+ operationHours?: OperationHours[] | undefined;
2320
+ phone?: {
2321
+ number: string;
2322
+ extension?: string;
2323
+ } | undefined;
2324
+ picture?: string | undefined;
2325
+ shortName?: string | undefined;
2326
+ showFloatingLabelWhenImagePresent?: boolean | undefined;
2327
+ showLogo?: boolean | undefined;
2328
+ siblingGroups?: SiblingGroup[] | undefined;
2329
+ social?: {
2330
+ facebook?: string;
2331
+ instagram?: string;
2332
+ twitter?: string;
2333
+ website?: string;
2334
+ } | undefined;
2335
+ sortOrder: number;
2336
+ states?: LocationState[] | undefined;
2337
+ tags?: string[] | undefined;
2338
+ type: string;
2339
+ /**
2340
+ * Checks if the provided instance is of type Location.
2341
+ *
2342
+ * @param instance The instance to check.
2343
+ * @returns {boolean} True if the instance is a Location, false otherwise.
2344
+ */
2345
+ static is(instance: object): instance is Location;
2346
+ /**
2347
+ * @internal
2348
+ */
2349
+ constructor(data: MapDataInternal, options: {
2350
+ mvfData: EnterpriseLocation;
2351
+ });
2352
+ get coordinates(): Coordinate[];
2353
+ get nodes(): Node[];
2354
+ get spaces(): Space[];
2355
+ /**
2356
+ * Serializes the space data to JSON.
2357
+ *
2358
+ * @returns An object representing the space.
2359
+ */
2360
+ toJSON(): {
2361
+ id: string;
2362
+ name: string;
2363
+ };
2364
+ /**
2365
+ * Cleans up resources used by the instance.
2366
+ *
2367
+ * @internal
2368
+ */
2369
+ destroy(): void;
2370
+ }
2371
+ export default Location;
2372
+ }
2373
+
2374
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
2375
+ import type { EnterpriseVenue, Language } from '@mappedin/mvf';
2376
+ import type { Hyperlink, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
2377
+ import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
2378
+ /**
2379
+ * A class representing space data within the map.
2380
+ *
2381
+ * Spaces are used to represent different areas within a map, such as rooms, hallways, etc.
2382
+ */
2383
+ class Venue extends BaseMapData implements EnterpriseVenue {
2384
+ #private;
2385
+ /**
2386
+ * @internal
2387
+ */
2388
+ static readonly __type = "venue";
2389
+ /**
2390
+ * @internal
2391
+ */
2392
+ readonly __type = "venue";
2393
+ countrycode?: string | undefined;
2394
+ externalId: string;
2395
+ defaultLanguage: Language;
2396
+ defaultMap?: string | undefined;
2397
+ extra?: Record<string, unknown> | undefined;
2398
+ icon?: string | undefined;
2399
+ languages: Language[];
2400
+ links: Hyperlink[];
2401
+ logo?: string | undefined;
2402
+ mappedinWebUrl?: string | undefined;
2403
+ slug: string;
2404
+ topLocations?: string[] | undefined;
2405
+ tzid?: string | undefined;
2406
+ /**
2407
+ * Checks if the provided instance is of type Category.
2408
+ *
2409
+ * @param instance The instance to check.
2410
+ * @returns {boolean} True if the instance is a Category, false otherwise.
2411
+ */
2412
+ static is(instance: object): instance is Venue;
2413
+ /**
2414
+ * @internal
2415
+ */
2416
+ constructor(_data: MapDataInternal, options: {
2417
+ mvfData: EnterpriseVenue;
2418
+ });
2419
+ /**
2420
+ * Gets the name of the space.
2421
+ *
2422
+ * @returns {string} The name of the space.
2423
+ */
2424
+ get name(): string;
2425
+ /**
2426
+ * Serializes the space data to JSON.
2427
+ *
2428
+ * @returns An object representing the space.
2429
+ */
2430
+ toJSON(): {
2431
+ id: string;
2432
+ name: string;
2433
+ };
2434
+ /**
2435
+ * Cleans up resources used by the instance.
2436
+ *
2437
+ * @internal
2438
+ */
2439
+ destroy(): void;
2440
+ }
2441
+ export default Venue;
2058
2442
  }
2059
2443
 
2060
2444
  declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/stacked-maps' {
@@ -2293,7 +2677,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
2293
2677
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
2294
2678
  import type { Image, SpaceCollection } from '@mappedin/mvf';
2295
2679
  import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
2296
- import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
2680
+ import type { Location, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
2297
2681
  import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
2298
2682
  import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
2299
2683
  import Door from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door';
@@ -2351,6 +2735,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
2351
2735
  get type(): TSpaceType;
2352
2736
  get description(): string;
2353
2737
  get images(): Image[];
2738
+ /**
2739
+ * @internal
2740
+ */
2741
+ get locations(): Location[];
2354
2742
  /**
2355
2743
  * Gets the {@link Floor} object associated with the space.
2356
2744
  *
@@ -3108,12 +3496,12 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/shapes' {
3108
3496
  */
3109
3497
  add<T extends FeatureCollection<Polygon | MultiPolygon | LineString, any>>(geometry: T, style: T extends FeatureCollection<LineString, any> ? LineStyle : PaintStyle, floor?: Floor): Shape;
3110
3498
  /**
3111
- * Removes a specific shapes ({@link Shape}) from the map.
3112
- * @param shapes The shapes to be removed.
3499
+ * Removes a specific shape ({@link Shape}) from the map.
3500
+ * @param shape The shape to be removed.
3113
3501
  * @example
3114
3502
  * map.Shapes.remove(geo);
3115
3503
  */
3116
- remove(shapes: Shape): void;
3504
+ remove(shape: Shape): void;
3117
3505
  /**
3118
3506
  * Removes all Shapes ({@link Shape}) from the map.
3119
3507
  *
@@ -3132,6 +3520,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
3132
3520
  import type { Entity2DHTMLDivElement, EntityId, Position } from '@mappedin/react-sdk/geojson/src/types';
3133
3521
  import type { GroupContainerState } from '@mappedin/react-sdk/geojson/src/entities/group-container';
3134
3522
  import type { CollisionRankingTier } from '@mappedin/react-sdk/geojson/src/utils/collision-ranking-tier';
3523
+ import { z } from 'zod';
3135
3524
  /**
3136
3525
  * State reprsenting a Marker
3137
3526
  */
@@ -3178,6 +3567,26 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
3178
3567
  interactive?: boolean;
3179
3568
  };
3180
3569
  };
3570
+ export const addMarkerOptionsSchema: z.ZodObject<{
3571
+ rank: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "always-visible"]>, z.ZodNumber]>>;
3572
+ interactive: z.ZodOptional<z.ZodBoolean>;
3573
+ id: z.ZodOptional<z.ZodString>;
3574
+ anchor: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right", "center"]>>;
3575
+ dynamicResize: z.ZodOptional<z.ZodBoolean>;
3576
+ }, "strip", z.ZodTypeAny, {
3577
+ interactive?: boolean | undefined;
3578
+ id?: string | undefined;
3579
+ anchor?: "center" | "left" | "right" | "bottom" | "top" | undefined;
3580
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3581
+ dynamicResize?: boolean | undefined;
3582
+ }, {
3583
+ interactive?: boolean | undefined;
3584
+ id?: string | undefined;
3585
+ anchor?: "center" | "left" | "right" | "bottom" | "top" | undefined;
3586
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3587
+ dynamicResize?: boolean | undefined;
3588
+ }>;
3589
+ export function validateMarker(coordinate: Position, contentHTML: string, options: AddMarkerOptions): void;
3181
3590
  /**
3182
3591
  * Options for creating a new Marker
3183
3592
  */
@@ -3367,6 +3776,172 @@ declare module '@mappedin/react-sdk/geojson/src/components/label' {
3367
3776
  import type { GroupContainerState } from '@mappedin/react-sdk/geojson/src/entities/group-container';
3368
3777
  import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
3369
3778
  import type { CollisionRankingTier } from '@mappedin/react-sdk/geojson/src';
3779
+ import { z } from 'zod';
3780
+ export const addLabelOptionsSchema: z.ZodObject<{
3781
+ rank: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "always-visible"]>, z.ZodNumber]>>;
3782
+ interactive: z.ZodOptional<z.ZodBoolean>;
3783
+ appearance: z.ZodOptional<z.ZodObject<{
3784
+ margin: z.ZodOptional<z.ZodNumber>;
3785
+ text: z.ZodOptional<z.ZodObject<{
3786
+ numLines: z.ZodOptional<z.ZodNumber>;
3787
+ lineHeight: z.ZodOptional<z.ZodNumber>;
3788
+ size: z.ZodOptional<z.ZodNumber>;
3789
+ maxWidth: z.ZodOptional<z.ZodNumber>;
3790
+ foregroundColor: z.ZodOptional<z.ZodString>;
3791
+ backgroundColor: z.ZodOptional<z.ZodString>;
3792
+ }, "strip", z.ZodTypeAny, {
3793
+ size?: number | undefined;
3794
+ maxWidth?: number | undefined;
3795
+ lineHeight?: number | undefined;
3796
+ numLines?: number | undefined;
3797
+ foregroundColor?: string | undefined;
3798
+ backgroundColor?: string | undefined;
3799
+ }, {
3800
+ size?: number | undefined;
3801
+ maxWidth?: number | undefined;
3802
+ lineHeight?: number | undefined;
3803
+ numLines?: number | undefined;
3804
+ foregroundColor?: string | undefined;
3805
+ backgroundColor?: string | undefined;
3806
+ }>>;
3807
+ marker: z.ZodOptional<z.ZodObject<{
3808
+ size: z.ZodOptional<z.ZodNumber>;
3809
+ foregroundColor: z.ZodOptional<z.ZodObject<{
3810
+ active: z.ZodOptional<z.ZodString>;
3811
+ inactive: z.ZodOptional<z.ZodString>;
3812
+ }, "strip", z.ZodTypeAny, {
3813
+ active?: string | undefined;
3814
+ inactive?: string | undefined;
3815
+ }, {
3816
+ active?: string | undefined;
3817
+ inactive?: string | undefined;
3818
+ }>>;
3819
+ backgroundColor: z.ZodOptional<z.ZodObject<{
3820
+ active: z.ZodOptional<z.ZodString>;
3821
+ inactive: z.ZodOptional<z.ZodString>;
3822
+ }, "strip", z.ZodTypeAny, {
3823
+ active?: string | undefined;
3824
+ inactive?: string | undefined;
3825
+ }, {
3826
+ active?: string | undefined;
3827
+ inactive?: string | undefined;
3828
+ }>>;
3829
+ }, "strip", z.ZodTypeAny, {
3830
+ size?: number | undefined;
3831
+ foregroundColor?: {
3832
+ active?: string | undefined;
3833
+ inactive?: string | undefined;
3834
+ } | undefined;
3835
+ backgroundColor?: {
3836
+ active?: string | undefined;
3837
+ inactive?: string | undefined;
3838
+ } | undefined;
3839
+ }, {
3840
+ size?: number | undefined;
3841
+ foregroundColor?: {
3842
+ active?: string | undefined;
3843
+ inactive?: string | undefined;
3844
+ } | undefined;
3845
+ backgroundColor?: {
3846
+ active?: string | undefined;
3847
+ inactive?: string | undefined;
3848
+ } | undefined;
3849
+ }>>;
3850
+ }, "strip", z.ZodTypeAny, {
3851
+ text?: {
3852
+ size?: number | undefined;
3853
+ maxWidth?: number | undefined;
3854
+ lineHeight?: number | undefined;
3855
+ numLines?: number | undefined;
3856
+ foregroundColor?: string | undefined;
3857
+ backgroundColor?: string | undefined;
3858
+ } | undefined;
3859
+ marker?: {
3860
+ size?: number | undefined;
3861
+ foregroundColor?: {
3862
+ active?: string | undefined;
3863
+ inactive?: string | undefined;
3864
+ } | undefined;
3865
+ backgroundColor?: {
3866
+ active?: string | undefined;
3867
+ inactive?: string | undefined;
3868
+ } | undefined;
3869
+ } | undefined;
3870
+ margin?: number | undefined;
3871
+ }, {
3872
+ text?: {
3873
+ size?: number | undefined;
3874
+ maxWidth?: number | undefined;
3875
+ lineHeight?: number | undefined;
3876
+ numLines?: number | undefined;
3877
+ foregroundColor?: string | undefined;
3878
+ backgroundColor?: string | undefined;
3879
+ } | undefined;
3880
+ marker?: {
3881
+ size?: number | undefined;
3882
+ foregroundColor?: {
3883
+ active?: string | undefined;
3884
+ inactive?: string | undefined;
3885
+ } | undefined;
3886
+ backgroundColor?: {
3887
+ active?: string | undefined;
3888
+ inactive?: string | undefined;
3889
+ } | undefined;
3890
+ } | undefined;
3891
+ margin?: number | undefined;
3892
+ }>>;
3893
+ }, "strip", z.ZodTypeAny, {
3894
+ interactive?: boolean | undefined;
3895
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3896
+ appearance?: {
3897
+ text?: {
3898
+ size?: number | undefined;
3899
+ maxWidth?: number | undefined;
3900
+ lineHeight?: number | undefined;
3901
+ numLines?: number | undefined;
3902
+ foregroundColor?: string | undefined;
3903
+ backgroundColor?: string | undefined;
3904
+ } | undefined;
3905
+ marker?: {
3906
+ size?: number | undefined;
3907
+ foregroundColor?: {
3908
+ active?: string | undefined;
3909
+ inactive?: string | undefined;
3910
+ } | undefined;
3911
+ backgroundColor?: {
3912
+ active?: string | undefined;
3913
+ inactive?: string | undefined;
3914
+ } | undefined;
3915
+ } | undefined;
3916
+ margin?: number | undefined;
3917
+ } | undefined;
3918
+ }, {
3919
+ interactive?: boolean | undefined;
3920
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3921
+ appearance?: {
3922
+ text?: {
3923
+ size?: number | undefined;
3924
+ maxWidth?: number | undefined;
3925
+ lineHeight?: number | undefined;
3926
+ numLines?: number | undefined;
3927
+ foregroundColor?: string | undefined;
3928
+ backgroundColor?: string | undefined;
3929
+ } | undefined;
3930
+ marker?: {
3931
+ size?: number | undefined;
3932
+ foregroundColor?: {
3933
+ active?: string | undefined;
3934
+ inactive?: string | undefined;
3935
+ } | undefined;
3936
+ backgroundColor?: {
3937
+ active?: string | undefined;
3938
+ inactive?: string | undefined;
3939
+ } | undefined;
3940
+ } | undefined;
3941
+ margin?: number | undefined;
3942
+ } | undefined;
3943
+ }>;
3944
+ export function validateLabel(coordinate: Position, text: string, options: AddLabelOptions): void;
3370
3945
  export const labelThemes: {
3371
3946
  lightOnDark: {
3372
3947
  text: {
@@ -3808,9 +4383,17 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry-group' {
3808
4383
  * Whether the geometry and its children are outlined. This will affect all children of the geometry group and override their outline state.
3809
4384
  */
3810
4385
  outline?: boolean;
3811
- };
3812
- export type ChildUpdatable<T> = T extends LineStyle ? Partial<Pick<LineStyle, 'color' | 'opacity' | 'visible'>> : Partial<Pick<PaintStyle, 'color' | 'opacity' | 'visible'>>;
3813
- export class GeometryGroupObject3D extends Object3D {
4386
+ /**
4387
+ * The texture URL of the geometry
4388
+ */
4389
+ texture?: string;
4390
+ /**
4391
+ * The top texture URL of the geometry
4392
+ */
4393
+ topTexture?: string;
4394
+ };
4395
+ export type ChildUpdatable<T> = T extends LineStyle ? Partial<Pick<LineStyle, 'color' | 'opacity' | 'visible'>> : Partial<Pick<PaintStyle, 'color' | 'opacity' | 'visible'>>;
4396
+ export class GeometryGroupObject3D extends Object3D {
3814
4397
  visible: boolean;
3815
4398
  readonly type = "geometry-group";
3816
4399
  components: [GeometryGroupStyleComponent];
@@ -3909,8 +4492,6 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
3909
4492
  showImage?: boolean;
3910
4493
  flipImageToFaceCamera?: boolean;
3911
4494
  };
3912
- export type Cap = 'round' | 'square' | 'butt';
3913
- export type Join = 'round' | 'bevel' | 'miter';
3914
4495
  export type Shading = {
3915
4496
  start?: number;
3916
4497
  end?: number;
@@ -3924,8 +4505,8 @@ declare module '@mappedin/react-sdk/geojson/src/types' {
3924
4505
  height?: number;
3925
4506
  altitude?: number;
3926
4507
  visible?: boolean;
3927
- cap?: Cap;
3928
- join?: Join;
4508
+ cap?: 'round' | 'square' | 'butt';
4509
+ join?: 'round' | 'bevel' | 'miter';
3929
4510
  shading?: Shading;
3930
4511
  outline?: boolean;
3931
4512
  };
@@ -4129,6 +4710,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
4129
4710
  entities: {
4130
4711
  [key: number]: string | number;
4131
4712
  };
4713
+ detached?: boolean;
4132
4714
  };
4133
4715
  }
4134
4716
  /**
@@ -4194,6 +4776,14 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
4194
4776
  * The height of the geometry
4195
4777
  */
4196
4778
  height: number;
4779
+ /**
4780
+ * The texture URL of the geometry
4781
+ */
4782
+ texture?: string;
4783
+ /**
4784
+ * The top texture URL of the geometry
4785
+ */
4786
+ topTexture?: string;
4197
4787
  };
4198
4788
  export class MeshComponent {
4199
4789
  #private;
@@ -4228,12 +4818,16 @@ declare module '@mappedin/react-sdk/geojson/src/components/mesh' {
4228
4818
  set opacity(value: number);
4229
4819
  get texture(): string;
4230
4820
  set texture(texture: Texture);
4821
+ get textureInstance(): Texture | undefined;
4231
4822
  set topTexture(texture: Texture);
4232
4823
  get topTexture(): string;
4824
+ get topTextureInstance(): Texture | undefined;
4233
4825
  get featureBbox(): BBox;
4234
4826
  texturesVisible: boolean;
4235
4827
  showTextures(): void;
4236
4828
  hideTextures(): void;
4829
+ removeSideTexture(): void;
4830
+ removeTopTexture(): void;
4237
4831
  }
4238
4832
  }
4239
4833
 
@@ -4297,10 +4891,11 @@ declare module '@mappedin/react-sdk/geojson/src/components/model' {
4297
4891
  import type { LineSegments, Object3D } from 'three';
4298
4892
  import { Color, Vector3 } from 'three';
4299
4893
  import type { BatchedStandardMaterial } from '@mappedin/react-sdk/geojson/src/systems/mesh-creation-and-optimization/batched-material';
4300
- import type { Position, EntityId } from '@mappedin/react-sdk/geojson/src/types';
4301
- import type { Feature, Point } from 'geojson';
4894
+ import type { Position, EntityId, ModelProperties, ModelStyle } from '@mappedin/react-sdk/geojson/src/types';
4895
+ import type { Feature, FeatureCollection, Point } from 'geojson';
4302
4896
  import type { Geometry3DObject3D } from '@mappedin/react-sdk/geojson/src/entities/geometry3d';
4303
4897
  import type { GeometryGroupState } from '@mappedin/react-sdk/geojson/src/entities/geometry-group';
4898
+ import { z } from 'zod';
4304
4899
  /**
4305
4900
  * State representing a Model, typically loaded via a URL
4306
4901
  */
@@ -4325,6 +4920,190 @@ declare module '@mappedin/react-sdk/geojson/src/components/model' {
4325
4920
  */
4326
4921
  interactive: boolean;
4327
4922
  };
4923
+ export const modelPropertiesSchema: z.ZodObject<{
4924
+ rotation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
4925
+ altitude: z.ZodOptional<z.ZodNumber>;
4926
+ scale: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
4927
+ interactive: z.ZodOptional<z.ZodBoolean>;
4928
+ id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
4929
+ }, "strip", z.ZodTypeAny, {
4930
+ rotation?: number[] | undefined;
4931
+ altitude?: number | undefined;
4932
+ scale?: number[] | undefined;
4933
+ interactive?: boolean | undefined;
4934
+ id?: string | number | undefined;
4935
+ }, {
4936
+ rotation?: number[] | undefined;
4937
+ altitude?: number | undefined;
4938
+ scale?: number[] | undefined;
4939
+ interactive?: boolean | undefined;
4940
+ id?: string | number | undefined;
4941
+ }>;
4942
+ export const featureSchema: z.ZodObject<{
4943
+ type: z.ZodEnum<["Feature"]>;
4944
+ geometry: z.ZodObject<{
4945
+ type: z.ZodEnum<["Point"]>;
4946
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
4947
+ }, "strip", z.ZodTypeAny, {
4948
+ type: "Point";
4949
+ coordinates: number[];
4950
+ }, {
4951
+ type: "Point";
4952
+ coordinates: number[];
4953
+ }>;
4954
+ properties: z.ZodObject<{
4955
+ rotation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
4956
+ altitude: z.ZodOptional<z.ZodNumber>;
4957
+ scale: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
4958
+ interactive: z.ZodOptional<z.ZodBoolean>;
4959
+ id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
4960
+ }, "strip", z.ZodTypeAny, {
4961
+ rotation?: number[] | undefined;
4962
+ altitude?: number | undefined;
4963
+ scale?: number[] | undefined;
4964
+ interactive?: boolean | undefined;
4965
+ id?: string | number | undefined;
4966
+ }, {
4967
+ rotation?: number[] | undefined;
4968
+ altitude?: number | undefined;
4969
+ scale?: number[] | undefined;
4970
+ interactive?: boolean | undefined;
4971
+ id?: string | number | undefined;
4972
+ }>;
4973
+ }, "strip", z.ZodTypeAny, {
4974
+ type: "Feature";
4975
+ geometry: {
4976
+ type: "Point";
4977
+ coordinates: number[];
4978
+ };
4979
+ properties: {
4980
+ rotation?: number[] | undefined;
4981
+ altitude?: number | undefined;
4982
+ scale?: number[] | undefined;
4983
+ interactive?: boolean | undefined;
4984
+ id?: string | number | undefined;
4985
+ };
4986
+ }, {
4987
+ type: "Feature";
4988
+ geometry: {
4989
+ type: "Point";
4990
+ coordinates: number[];
4991
+ };
4992
+ properties: {
4993
+ rotation?: number[] | undefined;
4994
+ altitude?: number | undefined;
4995
+ scale?: number[] | undefined;
4996
+ interactive?: boolean | undefined;
4997
+ id?: string | number | undefined;
4998
+ };
4999
+ }>;
5000
+ export const addModelFeatureSchema: z.ZodObject<{
5001
+ type: z.ZodEnum<["FeatureCollection"]>;
5002
+ features: z.ZodArray<z.ZodObject<{
5003
+ type: z.ZodEnum<["Feature"]>;
5004
+ geometry: z.ZodObject<{
5005
+ type: z.ZodEnum<["Point"]>;
5006
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
5007
+ }, "strip", z.ZodTypeAny, {
5008
+ type: "Point";
5009
+ coordinates: number[];
5010
+ }, {
5011
+ type: "Point";
5012
+ coordinates: number[];
5013
+ }>;
5014
+ properties: z.ZodObject<{
5015
+ rotation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5016
+ altitude: z.ZodOptional<z.ZodNumber>;
5017
+ scale: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5018
+ interactive: z.ZodOptional<z.ZodBoolean>;
5019
+ id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
5020
+ }, "strip", z.ZodTypeAny, {
5021
+ rotation?: number[] | undefined;
5022
+ altitude?: number | undefined;
5023
+ scale?: number[] | undefined;
5024
+ interactive?: boolean | undefined;
5025
+ id?: string | number | undefined;
5026
+ }, {
5027
+ rotation?: number[] | undefined;
5028
+ altitude?: number | undefined;
5029
+ scale?: number[] | undefined;
5030
+ interactive?: boolean | undefined;
5031
+ id?: string | number | undefined;
5032
+ }>;
5033
+ }, "strip", z.ZodTypeAny, {
5034
+ type: "Feature";
5035
+ geometry: {
5036
+ type: "Point";
5037
+ coordinates: number[];
5038
+ };
5039
+ properties: {
5040
+ rotation?: number[] | undefined;
5041
+ altitude?: number | undefined;
5042
+ scale?: number[] | undefined;
5043
+ interactive?: boolean | undefined;
5044
+ id?: string | number | undefined;
5045
+ };
5046
+ }, {
5047
+ type: "Feature";
5048
+ geometry: {
5049
+ type: "Point";
5050
+ coordinates: number[];
5051
+ };
5052
+ properties: {
5053
+ rotation?: number[] | undefined;
5054
+ altitude?: number | undefined;
5055
+ scale?: number[] | undefined;
5056
+ interactive?: boolean | undefined;
5057
+ id?: string | number | undefined;
5058
+ };
5059
+ }>, "many">;
5060
+ }, "strip", z.ZodTypeAny, {
5061
+ type: "FeatureCollection";
5062
+ features: {
5063
+ type: "Feature";
5064
+ geometry: {
5065
+ type: "Point";
5066
+ coordinates: number[];
5067
+ };
5068
+ properties: {
5069
+ rotation?: number[] | undefined;
5070
+ altitude?: number | undefined;
5071
+ scale?: number[] | undefined;
5072
+ interactive?: boolean | undefined;
5073
+ id?: string | number | undefined;
5074
+ };
5075
+ }[];
5076
+ }, {
5077
+ type: "FeatureCollection";
5078
+ features: {
5079
+ type: "Feature";
5080
+ geometry: {
5081
+ type: "Point";
5082
+ coordinates: number[];
5083
+ };
5084
+ properties: {
5085
+ rotation?: number[] | undefined;
5086
+ altitude?: number | undefined;
5087
+ scale?: number[] | undefined;
5088
+ interactive?: boolean | undefined;
5089
+ id?: string | number | undefined;
5090
+ };
5091
+ }[];
5092
+ }>;
5093
+ export const modelStyleSchema: z.ZodObject<{
5094
+ url: z.ZodString;
5095
+ color: z.ZodOptional<z.ZodString>;
5096
+ opacity: z.ZodOptional<z.ZodNumber>;
5097
+ }, "strip", z.ZodTypeAny, {
5098
+ url: string;
5099
+ color?: string | undefined;
5100
+ opacity?: number | undefined;
5101
+ }, {
5102
+ url: string;
5103
+ color?: string | undefined;
5104
+ opacity?: number | undefined;
5105
+ }>;
5106
+ export function validateModelGroup(id: string | number, geometry: FeatureCollection<Point, ModelProperties>, style: ModelStyle): void;
4328
5107
  export class ModelComponent {
4329
5108
  #private;
4330
5109
  mesh?: Geometry3DObject3D;
@@ -4389,7 +5168,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
4389
5168
  import { OutdoorLayers } from '@mappedin/react-sdk/geojson/src/systems/outdoor-layers/system';
4390
5169
  import { PathSystem } from '@mappedin/react-sdk/geojson/src/systems/path';
4391
5170
  import { type ImageProperties, type ImageState, type ImageStyle } from '@mappedin/react-sdk/geojson/src/components/image';
4392
- import { MeshOpacitySystem } from '@mappedin/react-sdk/geojson/src/systems/mesh-opacity/system';
5171
+ import { MeshDetachmentSystem } from '@mappedin/react-sdk/geojson/src/systems/mesh-detachment/system';
4393
5172
  import { MeshModificationSystem } from '@mappedin/react-sdk/geojson/src/systems/mesh-modification/system';
4394
5173
  export type * from '@mappedin/react-sdk/geojson/src/types';
4395
5174
  export const raycaster: Raycaster;
@@ -4434,7 +5213,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
4434
5213
  pathSystem: PathSystem;
4435
5214
  imageSystem: ImageSystem;
4436
5215
  geometryInFocusSystem: GeometryInFocusSystem;
4437
- meshOpacitySystem: MeshOpacitySystem;
5216
+ meshDetachmentSystem: MeshDetachmentSystem;
4438
5217
  meshModificationSystem: MeshModificationSystem;
4439
5218
  };
4440
5219
  export type MapViewState = {
@@ -4497,15 +5276,15 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
4497
5276
  /**
4498
5277
  * Add a group of models from GeoJSON data. These will be instanced automatically for better performance.
4499
5278
  */
4500
- addModelGroup(id: string, geometry: FeatureCollection<Point, ModelProperties>, style: ModelStyle, parent?: EntityId<GroupContainerState> | string | null): EntityId<GeometryGroupState>;
5279
+ addModelGroup(id: string, geometry: FeatureCollection<Point, ModelProperties>, style: ModelStyle, parent?: EntityId<GroupContainerState> | string | null): EntityId<GeometryGroupState> | undefined;
4501
5280
  /**
4502
5281
  * Add an HTML Marker at a GeoJSON coordinate.
4503
5282
  */
4504
- addMarker2D(coordinate: Position, contentHTML: string, options?: AddMarkerOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<MarkerState>;
5283
+ addMarker2D(coordinate: Position, contentHTML: string, options?: AddMarkerOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<MarkerState> | undefined;
4505
5284
  /**
4506
5285
  * Add a 2D label at a GeoJSON coordinate.
4507
5286
  */
4508
- addLabel2D(coordinate: Position, text: string, options?: AddLabelOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<LabelState>;
5287
+ addLabel2D(coordinate: Position, text: string, options?: AddLabelOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<LabelState> | undefined;
4509
5288
  /**
4510
5289
  * Add a Path along a set of GeoJSON coordinates that can be animated.
4511
5290
  */
@@ -5146,126 +5925,6 @@ declare module '@mappedin/react-sdk/geojson/src/systems/html-controls/system' {
5146
5925
  }
5147
5926
  }
5148
5927
 
5149
- declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
5150
- /**
5151
- * Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
5152
- * If a set context is not in this list, it will default to the first VALID_CONTEXTS value.
5153
- */
5154
- export const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk"];
5155
- type ValidContext = (typeof VALID_CONTEXTS)[number];
5156
- export const DEFAULT_CONTEXT: "websdk";
5157
- export const ANALYTICS_URL = "https://api-gateway.mappedin.com/track-analytics/a/";
5158
- export class CustomerAnalytics {
5159
- #private;
5160
- constructor();
5161
- init(options?: AnalyticsOptions): void;
5162
- /**
5163
- * Reset state and options
5164
- */
5165
- reset(): void;
5166
- updateState(update: UpdateStateParam): void;
5167
- get authReady(): boolean;
5168
- getState(): AnalyticState;
5169
- capture<T extends keyof CaptureEventsPayloadMap>(eventName: T, query: CaptureEventsPayloadMap[T]): Promise<Response> | Promise<void>;
5170
- capture<T extends keyof CaptureEventsPayloadMap | (string & NonNullable<unknown>)>(target: T, query: T extends keyof CaptureEventsPayloadMap ? CaptureEventsPayloadMap[T] : Record<string, any>): Promise<Response> | Promise<void>;
5171
- /**
5172
- * @internal
5173
- */
5174
- sendGetMapDataEvent(payload: {
5175
- parseDuration: string;
5176
- downloadDuration: string;
5177
- viewId?: string;
5178
- }): Promise<void> | Promise<Response>;
5179
- sendWatchPositionDenied(): Promise<void> | Promise<Response>;
5180
- /**
5181
- * @internal
5182
- */
5183
- sendMapViewLoadedEvent({ firstRenderDuration, dimension, }: {
5184
- firstRenderDuration: string;
5185
- dimension: {
5186
- height: number;
5187
- width: number;
5188
- };
5189
- }): Promise<void> | Promise<Response>;
5190
- /**
5191
- * @internal
5192
- */
5193
- sendGetDirectionsEvent: (start: string, end: string) => void;
5194
- }
5195
- type AnalyticsUserPosition = {
5196
- bluedotTimestamp: number;
5197
- latitude: number;
5198
- longitude: number;
5199
- floorLevel?: number;
5200
- accuracy: number;
5201
- };
5202
- export type AnalyticsOptions = {
5203
- key?: string;
5204
- secret?: string;
5205
- accessToken?: string;
5206
- noAuth?: boolean;
5207
- mapId?: string;
5208
- logEvents?: boolean;
5209
- sendEvents?: boolean;
5210
- context?: string;
5211
- platformString?: string;
5212
- };
5213
- export type AnalyticState = {
5214
- accessToken?: string | undefined;
5215
- version: string;
5216
- platformString: string;
5217
- baseUrl: string;
5218
- noAuth: boolean;
5219
- geolocationMode: boolean;
5220
- mi_uuid: string;
5221
- mi_session: string;
5222
- context: ValidContext;
5223
- userPosition?: AnalyticsUserPosition;
5224
- mapId?: string;
5225
- key?: string;
5226
- secret?: string;
5227
- logEvents: boolean;
5228
- sendEvents: boolean;
5229
- };
5230
- type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken'>>;
5231
- type CaptureEventsPayloadMap = {
5232
- '$select-location': {
5233
- id: string;
5234
- };
5235
- '$select-category': {
5236
- id: string;
5237
- };
5238
- '$query-suggest': Record<string, any>;
5239
- '$query-search': Record<string, any>;
5240
- };
5241
- export const analyticsInternal: CustomerAnalytics;
5242
- export const analytics: {
5243
- /**
5244
- * Initializes the analytics with the provided options.
5245
- * @param args - The options to initialize the analytics.
5246
- */
5247
- init(options?: AnalyticsOptions | undefined): void;
5248
- /**
5249
- * Captures an analytic event with a custom target and query payload.
5250
- *
5251
- * @param target - The event name or target can be .
5252
- * @param query - The payload associated with the event.
5253
- * @returns A promise that resolves to the server response or void.
5254
- */
5255
- capture(target: keyof CaptureEventsPayloadMap | (string & {}), query: Record<string, any> | {
5256
- id: string;
5257
- } | {
5258
- id: string;
5259
- }): Promise<void> | Promise<Response>;
5260
- /**
5261
- * Updates the analytics state with the provided parameters.
5262
- * @param update - The state parameters to update.
5263
- */
5264
- updateState(update: Partial<Pick<AnalyticState, "logEvents" | "sendEvents" | "logEvents" | "accessToken">>): void;
5265
- };
5266
- export {};
5267
- }
5268
-
5269
5928
  declare module '@mappedin/react-sdk/geojson/src/maplibre-overlay' {
5270
5929
  import type { IControl, Map as MapLibreMap, CustomLayerInterface } from '@packages/internal/outdoor-context-v4';
5271
5930
  import type { Position } from '@mappedin/react-sdk/geojson/src/types';
@@ -5354,6 +6013,42 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/marker' {
5354
6013
  }
5355
6014
  }
5356
6015
 
6016
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/image' {
6017
+ /**
6018
+ * Class representing an Image on the {@link MapView}.
6019
+ */
6020
+ export class Image {
6021
+ #private;
6022
+ /**
6023
+ * @internal
6024
+ */
6025
+ static readonly __type = "Image";
6026
+ /**
6027
+ * @internal
6028
+ */
6029
+ readonly __type = "Image";
6030
+ /**
6031
+ * Checks if the provided instance is of type Marker"
6032
+ *
6033
+ * @param instance The instance to check.
6034
+ * @returns {boolean} True if the instance is a Marker, false otherwise.
6035
+ */
6036
+ static is(instance: object): instance is Image;
6037
+ /**
6038
+ * @internal
6039
+ */
6040
+ constructor(id: string, url: string);
6041
+ /**
6042
+ * The image's id
6043
+ */
6044
+ get id(): string;
6045
+ /**
6046
+ * The image's url
6047
+ */
6048
+ get url(): string;
6049
+ }
6050
+ }
6051
+
5357
6052
  declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/model' {
5358
6053
  /**
5359
6054
  * Class representing a 3D model on the {@link MapView}.
@@ -5446,10 +6141,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-view-objects/shape' {
5446
6141
  declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/api' {
5447
6142
  import type { Position, RendererCore, WatermarkOptions } from '@mappedin/core-sdk';
5448
6143
  import { type TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
6144
+ import { WALLS, DOORS } from '@mappedin/react-sdk/mappedin-js/src/types';
5449
6145
  import type MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
5450
- import { Coordinate, MapObject, Space, Floor } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
6146
+ import { Coordinate, MapObject, Space, Floor, type MapDataInternal, Door } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
5451
6147
  import type { MapView } from '@mappedin/react-sdk/mappedin-js/src/map-view';
5452
- import { Label, Marker, type Model } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
6148
+ import { Label, Marker, type Model, type Image } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
5453
6149
  import { Navigation } from '@mappedin/react-sdk/mappedin-js/src/navigation';
5454
6150
  import type { TGetDirectionsOptions, TGetState, TNavigationTarget, TUpdateState } from '@mappedin/react-sdk/mappedin-js/src/types';
5455
6151
  import { Camera } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/camera';
@@ -5458,6 +6154,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/api' {
5458
6154
  import { Labels } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/labels';
5459
6155
  import { GeojsonApiMapObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object';
5460
6156
  import { Markers } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/markers';
6157
+ import { Images } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/images';
5461
6158
  import { Models } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/models';
5462
6159
  import { Paths } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/paths';
5463
6160
  import { BlueDot } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/blue-dot/blue-dot';
@@ -5487,10 +6184,11 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/api' {
5487
6184
  BlueDot: BlueDot;
5488
6185
  Shapes: Shapes;
5489
6186
  Style: Style;
6187
+ Images: Images;
5490
6188
  constructor(rendererCore: RendererCore, mapView: MapView);
5491
- updateState<T extends Space | MapObject | Label | Marker | 'walls' | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
6189
+ updateState<T extends Space | MapObject | Label | Marker | Door | WALLS | DOORS | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
5492
6190
  update: () => void;
5493
- getMapDataInternal(): import("../map-data-objects").MapDataInternal | undefined;
6191
+ getMapDataInternal(): MapDataInternal | undefined;
5494
6192
  getMapData(): MapData | undefined;
5495
6193
  expand(opts?: {
5496
6194
  excludeFloors: Floor[];
@@ -5500,7 +6198,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/api' {
5500
6198
  setFloor(floor: Floor | string, reason?: TFloorChangeReason): void;
5501
6199
  updateWatermark(options: Omit<WatermarkOptions, 'onClick'>): void;
5502
6200
  get currentFloor(): Floor;
5503
- getState<T extends Space | MapObject | Label | Marker | Model | string>(target: T): TGetState<T> | undefined;
6201
+ getState<T extends Space | MapObject | Label | Marker | Model | Image | string>(target: T): TGetState<T> | undefined;
5504
6202
  setHoverColor(c: string): void;
5505
6203
  getHoverColor(): string | undefined;
5506
6204
  getDirections: (from: TNavigationTarget | TNavigationTarget[], to: TNavigationTarget | TNavigationTarget[], opt?: TGetDirectionsOptions) => Directions | undefined;
@@ -6014,17 +6712,249 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/outdoor' {
6014
6712
  }
6015
6713
  }
6016
6714
 
6715
+ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/images' {
6716
+ import type { TAddImageOptions } from '@mappedin/react-sdk/mappedin-js/src/types';
6717
+ import { Image } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
6718
+ import type { GeojsonApiMapObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object';
6719
+ import type { Space, Door, Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
6720
+ export class Images {
6721
+ #private;
6722
+ /**
6723
+ * @internal
6724
+ */
6725
+ get currentMap(): GeojsonApiMapObject | undefined;
6726
+ /**
6727
+ * @internal
6728
+ */
6729
+ constructor({ currentMapGetter }: {
6730
+ currentMapGetter: CurrentMapGetter;
6731
+ });
6732
+ /**
6733
+ * @internal
6734
+ */
6735
+ getById(id: string): {
6736
+ image: Image;
6737
+ entityId: string;
6738
+ } | undefined;
6739
+ /**
6740
+ * Adds an image to the map.
6741
+ *
6742
+ * @param target The target object ({@link Space}, {@link Door}, or {@link Coordinate}) for the image.
6743
+ * @param url The URL of the image.
6744
+ * @param options Optional additional options for the {@link Image}.
6745
+ * @returns {Image | undefined} The created {@link Image}, or undefined if creation failed.
6746
+ * @example
6747
+ * // Add an interactive {@link Image} to the map with custom HTML content.
6748
+ * map.Images.add(coordinate, '<div>Image Content</div>', { interactive: true });
6749
+ */
6750
+ add(target: Space | Door | Coordinate, url: string, options: TAddImageOptions): Image;
6751
+ /**
6752
+ * Removes a image from the map.
6753
+ *
6754
+ * @param image {Image} The {@link Image} which should be removed.
6755
+ * @example
6756
+ * mapView.Images.remove(image);
6757
+ */
6758
+ remove(image: Image): void;
6759
+ /**
6760
+ * Remove all the images from the map.
6761
+ *
6762
+ * @example
6763
+ * map.Images.removeAll();
6764
+ */
6765
+ removeAll(): Image[];
6766
+ }
6767
+ type CurrentMapGetter = () => GeojsonApiMapObject | undefined;
6768
+ export {};
6769
+ }
6770
+
6771
+ declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
6772
+ /**
6773
+ * Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
6774
+ * If a set context is not in this list, it will default to the first VALID_CONTEXTS value.
6775
+ */
6776
+ export const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk"];
6777
+ type ValidContext = (typeof VALID_CONTEXTS)[number];
6778
+ export const DEFAULT_CONTEXT: "websdk";
6779
+ export const ANALYTICS_URL = "https://api-gateway.mappedin.com/track-analytics/a/";
6780
+ export const FOUND_POSITION = "found-position";
6781
+ export const FOUND_FLOOR = "found-floor";
6782
+ type BlueDotEvents = typeof FOUND_FLOOR | typeof FOUND_POSITION;
6783
+ export class AnalyticsInternal {
6784
+ #private;
6785
+ constructor();
6786
+ init(options: AnalyticsUpdateOptions): void;
6787
+ /**
6788
+ * Reset state and options
6789
+ */
6790
+ reset(): void;
6791
+ updateState(update: UpdateStateParam): void;
6792
+ get authReady(): boolean;
6793
+ getState(): AnalyticState;
6794
+ capture<T extends keyof CaptureEventsPayloadMap>(eventName: T, query: CaptureEventsPayloadMap[T]): Promise<Response> | Promise<void>;
6795
+ capture<T extends keyof CaptureEventsPayloadMap | (string & NonNullable<unknown>)>(target: T, query: T extends keyof CaptureEventsPayloadMap ? CaptureEventsPayloadMap[T] : Record<string, any>): Promise<Response> | Promise<void>;
6796
+ /**
6797
+ * @internal
6798
+ */
6799
+ sendGetMapDataEvent(payload: {
6800
+ parseDuration: number;
6801
+ downloadDuration: number;
6802
+ viewId?: string;
6803
+ }): void | Promise<Response> | Promise<void>;
6804
+ sendWatchPositionDenied(): void | Promise<Response> | Promise<void>;
6805
+ /**
6806
+ * @internal
6807
+ */
6808
+ sendMapViewLoadedEvent({ firstRenderDuration, dimension, }: {
6809
+ firstRenderDuration: number;
6810
+ dimension: {
6811
+ height: number;
6812
+ width: number;
6813
+ };
6814
+ }): void | Promise<Response> | Promise<void>;
6815
+ /**
6816
+ * @internal
6817
+ */
6818
+ sendGetDirectionsEvent: (start: string, end: string) => void;
6819
+ sendBlueDotEvents(event: BlueDotEvents): void | Promise<Response> | Promise<void>;
6820
+ }
6821
+ type AnalyticsUserPosition = {
6822
+ bluedotTimestamp: number;
6823
+ latitude: number;
6824
+ longitude: number;
6825
+ floorLevel?: number;
6826
+ accuracy: number;
6827
+ };
6828
+ type AnalyticsOptions = {
6829
+ /** The ID of the map to be used for analytics. */
6830
+ mapId?: string;
6831
+ /** The API key for authentication. */
6832
+ key?: string;
6833
+ /** The API secret for authentication. */
6834
+ secret?: string;
6835
+ /** The access token for authentication. */
6836
+ accessToken?: string;
6837
+ /** Flag to disable authentication. */
6838
+ noAuth?: boolean;
6839
+ /** Flag to enable logging of events. */
6840
+ logEvents?: boolean;
6841
+ /** Flag to enable sending of events. */
6842
+ sendEvents?: boolean;
6843
+ /** The context in which the analytics are being used. */
6844
+ context?: string;
6845
+ /** The platform string to be included in analytics. */
6846
+ platformString?: string;
6847
+ /** The base URI for the analytics endpoint. */
6848
+ baseUri?: string;
6849
+ };
6850
+ export type AnalyticsUpdateOptions = Omit<AnalyticsOptions, 'mapId' | 'key' | 'secret' | 'accessToken'> & {
6851
+ /** The ID of the map to be used for analytics. */
6852
+ mapId: string;
6853
+ } & ({
6854
+ /** The API key for authentication. */
6855
+ key: string;
6856
+ /** The API secret for authentication. */
6857
+ secret: string;
6858
+ } | {
6859
+ /** The access token for authentication. */
6860
+ accessToken: string;
6861
+ });
6862
+ export type AnalyticState = {
6863
+ accessToken?: string | undefined;
6864
+ version: string;
6865
+ platformString: string;
6866
+ baseUri: string;
6867
+ analyticsBaseUrl: string;
6868
+ noAuth: boolean;
6869
+ geolocationMode: boolean;
6870
+ mi_uuid: string;
6871
+ mi_session: string;
6872
+ context: ValidContext;
6873
+ userPosition?: AnalyticsUserPosition;
6874
+ mapId?: string;
6875
+ key?: string;
6876
+ secret?: string;
6877
+ logEvents: boolean;
6878
+ sendEvents: boolean;
6879
+ };
6880
+ type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken'>>;
6881
+ type CaptureEventsPayloadMap = {
6882
+ '$select-location': {
6883
+ id: string;
6884
+ };
6885
+ '$select-category': {
6886
+ id: string;
6887
+ };
6888
+ '$query-suggest': {
6889
+ query: string;
6890
+ suggestions?: string[];
6891
+ };
6892
+ '$query-search': {
6893
+ query: string;
6894
+ hits?: string[];
6895
+ };
6896
+ };
6897
+ export const analyticsInternal: AnalyticsInternal;
6898
+ export class Analytics {
6899
+ #private;
6900
+ constructor(internalAnalytics: AnalyticsInternal);
6901
+ /**
6902
+ * Initializes the analytics with the provided options.
6903
+ * @param args - The options to initialize the analytics.
6904
+ */
6905
+ init(options: AnalyticsUpdateOptions): void;
6906
+ /**
6907
+ * Captures an analytic event with a custom target and query payload.
6908
+ *
6909
+ * @param target - The event name or target can be .
6910
+ * @param query - The payload associated with the event.
6911
+ * @returns A promise that resolves to the server response or void.
6912
+ */
6913
+ capture: typeof AnalyticsInternal.prototype.capture;
6914
+ /**
6915
+ * Updates the analytics state with the provided parameters.
6916
+ * @param update - The state parameters to update.
6917
+ */
6918
+ updateState: (update: Partial<Pick<AnalyticState, 'logEvents' | 'sendEvents' | 'logEvents' | 'baseUri' | 'accessToken'>>) => void;
6919
+ /**
6920
+ * Returns the current analytics state.
6921
+ * @internal
6922
+ * @returns the current analytics state
6923
+ */
6924
+ getState(): AnalyticState;
6925
+ }
6926
+ export {};
6927
+ }
6928
+
6929
+ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object' {
6930
+ import Hyperlink from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink';
6931
+ import type { Details } from '@mappedin/mvf';
6932
+ export default abstract class BaseMapData {
6933
+ /**
6934
+ * identity of the map object
6935
+ */
6936
+ readonly id: string;
6937
+ constructor(id: string, details?: Details);
6938
+ /**
6939
+ * Gets the links associated with this data type.
6940
+ *
6941
+ * @returns {Hyperlink[]} The links associated with this data type
6942
+ */
6943
+ links: Hyperlink[];
6944
+ }
6945
+ }
6946
+
6017
6947
  declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
6018
6948
  import type { ParsedMVF } from '@mappedin/mvf';
6019
- import { FloorObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object';
6949
+ import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
6950
+ import { PubSub } from '@packages/internal/common';
6020
6951
  import type { Position, AddLabelOptions, RendererCore, MarkerState, LineStyle, PaintStyle } from '@mappedin/core-sdk';
6952
+ import { FloorObject } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object';
6021
6953
  import type { Coordinate, TAddMarkerOptions, TAddPathOptions, TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
6022
- import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddModel } from '@mappedin/react-sdk/mappedin-js/src/types';
6954
+ import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddModel, TAddImageOptions } from '@mappedin/react-sdk/mappedin-js/src/types';
6023
6955
  import { type AggregatedStyleMap } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils';
6024
- import { PubSub } from '@packages/internal/common';
6025
6956
  import { StackedMaps } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
6026
6957
  import type { TFloorChangeReason } from '@mappedin/react-sdk/mappedin-js/src/events';
6027
- import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
6028
6958
  import type { Shape } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
6029
6959
  export class GeojsonApiMapObject extends PubSub<{
6030
6960
  'floor-change': {
@@ -6050,11 +6980,18 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/map-object' {
6050
6980
  }) => (import("@mappedin/core-sdk").GeometryState | import("@mappedin/core-sdk").ModelState)[];
6051
6981
  remove: (_id: string, _groupId: string) => void;
6052
6982
  };
6983
+ Images: {
6984
+ add: (target: Position, url: string, opts: TAddImageOptions & {
6985
+ floorId?: string;
6986
+ }) => import("@mappedin/core-sdk").EntityId<import("@mappedin/core-sdk/src/components/image").ImageState> | undefined;
6987
+ remove: (id: string) => void;
6988
+ removeAll: () => void;
6989
+ };
6053
6990
  Markers: {
6054
6991
  add: (coordinate: Position, html: string, opts?: TAddMarkerOptions & {
6055
6992
  floorId?: string;
6056
- }) => import("@mappedin/core-sdk").EntityId<MarkerState>;
6057
- remove: (_id: string) => void;
6993
+ }) => import("@mappedin/core-sdk").EntityId<MarkerState> | undefined;
6994
+ remove: (id: string) => void;
6058
6995
  getContentEl: (id: string) => HTMLElement | undefined;
6059
6996
  removeAll: () => void;
6060
6997
  setPosition: (id: string, coordinate: Position, targetFloorId: string) => void;
@@ -6107,24 +7044,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/floor-object' {
6107
7044
  }
6108
7045
  }
6109
7046
 
6110
- declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object' {
6111
- import Hyperlink from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink';
6112
- import type { Details } from '@mappedin/mvf';
6113
- export default abstract class BaseMapData {
6114
- /**
6115
- * identity of the map object
6116
- */
6117
- readonly id: string;
6118
- constructor(id: string, details?: Details);
6119
- /**
6120
- * Gets the links associated with this data type.
6121
- *
6122
- * @returns {Hyperlink[]} The links associated with this data type
6123
- */
6124
- links: Hyperlink[];
6125
- }
6126
- }
6127
-
6128
7047
  declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-metadata-object' {
6129
7048
  export default abstract class BaseMetaData {
6130
7049
  /**
@@ -6161,7 +7080,7 @@ declare module '@mappedin/react-sdk/geojson/src/entities/geometry3d' {
6161
7080
  export class Geometry3D {
6162
7081
  id: string | number;
6163
7082
  components: [MeshComponentTypes, StyleComponent, InteractionComponent?];
6164
- get object3d(): import("../components/mesh").EntityBatchedMesh | Geometry3DObject3D | undefined;
7083
+ get object3d(): Geometry3DObject3D | import("../components/mesh").EntityBatchedMesh | undefined;
6165
7084
  get parent(): GroupContainerObject3D | GeometryGroupObject3D | null;
6166
7085
  get type(): 'geometry' | 'path' | 'model' | 'custom-geometry' | 'image';
6167
7086
  constructor(meshComponent: MeshComponent | PathComponent | ModelComponent | CustomGeometryComponent | ImageComponent, styleComponent: StyleComponent);
@@ -6220,6 +7139,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/geometry-group-style'
6220
7139
  opacity: number;
6221
7140
  shading?: Shading;
6222
7141
  outline: boolean;
7142
+ texture?: string;
7143
+ topTexture?: string;
6223
7144
  };
6224
7145
  export class GeometryGroupStyleComponent implements GeometryGroupStyle {
6225
7146
  #private;
@@ -6227,6 +7148,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/geometry-group-style'
6227
7148
  topColor?: string;
6228
7149
  opacity: number;
6229
7150
  outline: boolean;
7151
+ texture?: string;
7152
+ topTexture?: string;
6230
7153
  /**
6231
7154
  * Ideally for handling all style component changes. However, it's only used for handling outline for now.
6232
7155
  * Color update is handled separately in each child. See: https://github.com/MappedIn/sdk/blob/v6.0.1-beta.1/sdks/geojson/src/entities/utils.ts#L70
@@ -6245,6 +7168,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/image' {
6245
7168
  import type { Position } from '@mappedin/react-sdk/geojson/src/types';
6246
7169
  import type { Feature, Point } from 'geojson';
6247
7170
  import { Geometry3DObject3D } from '@mappedin/react-sdk/geojson/src/entities/geometry3d';
7171
+ import { z } from 'zod';
6248
7172
  export class EntityMesh extends Mesh {
6249
7173
  userData: {
6250
7174
  entityId: string | number;
@@ -6266,7 +7190,70 @@ declare module '@mappedin/react-sdk/geojson/src/components/image' {
6266
7190
  rotation?: number;
6267
7191
  verticalOffset?: number;
6268
7192
  };
6269
- export function validImageFeature(feature: Feature<Point, ImageProperties>): feature is Feature<Point, ImageProperties>;
7193
+ export const addImageFeatureStyleSchema: z.ZodObject<{
7194
+ flipImageToFaceCamera: z.ZodOptional<z.ZodBoolean>;
7195
+ url: z.ZodString;
7196
+ }, "strip", z.ZodTypeAny, {
7197
+ url: string;
7198
+ flipImageToFaceCamera?: boolean | undefined;
7199
+ }, {
7200
+ url: string;
7201
+ flipImageToFaceCamera?: boolean | undefined;
7202
+ }>;
7203
+ export const addImageFeatureSchema: z.ZodObject<{
7204
+ type: z.ZodEnum<["Feature"]>;
7205
+ properties: z.ZodObject<{
7206
+ width: z.ZodNumber;
7207
+ height: z.ZodNumber;
7208
+ rotation: z.ZodOptional<z.ZodNumber>;
7209
+ verticalOffset: z.ZodOptional<z.ZodNumber>;
7210
+ }, "strip", z.ZodTypeAny, {
7211
+ height: number;
7212
+ width: number;
7213
+ rotation?: number | undefined;
7214
+ verticalOffset?: number | undefined;
7215
+ }, {
7216
+ height: number;
7217
+ width: number;
7218
+ rotation?: number | undefined;
7219
+ verticalOffset?: number | undefined;
7220
+ }>;
7221
+ geometry: z.ZodObject<{
7222
+ type: z.ZodEnum<["Point"]>;
7223
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
7224
+ }, "strip", z.ZodTypeAny, {
7225
+ type: "Point";
7226
+ coordinates: number[];
7227
+ }, {
7228
+ type: "Point";
7229
+ coordinates: number[];
7230
+ }>;
7231
+ }, "strip", z.ZodTypeAny, {
7232
+ type: "Feature";
7233
+ geometry: {
7234
+ type: "Point";
7235
+ coordinates: number[];
7236
+ };
7237
+ properties: {
7238
+ height: number;
7239
+ width: number;
7240
+ rotation?: number | undefined;
7241
+ verticalOffset?: number | undefined;
7242
+ };
7243
+ }, {
7244
+ type: "Feature";
7245
+ geometry: {
7246
+ type: "Point";
7247
+ coordinates: number[];
7248
+ };
7249
+ properties: {
7250
+ height: number;
7251
+ width: number;
7252
+ rotation?: number | undefined;
7253
+ verticalOffset?: number | undefined;
7254
+ };
7255
+ }>;
7256
+ export function validateImage(id: string | number, feature: Feature<Point, ImageProperties>, style: ImageStyle): void;
6270
7257
  /**
6271
7258
  * State representing an Image
6272
7259
  */
@@ -6352,7 +7339,14 @@ declare module '@mappedin/react-sdk/geojson/src/types/constants' {
6352
7339
  declare module '@mappedin/react-sdk/geojson/src/systems/mesh-creation-and-optimization/batched-material' {
6353
7340
  import { MeshLambertMaterial, type Color, type Texture, type MeshLambertMaterialParameters } from 'three';
6354
7341
  export class BatchedStandardMaterial extends MeshLambertMaterial {
6355
- constructor(params: MeshLambertMaterialParameters, geometryCount: number);
7342
+ constructor(params: MeshLambertMaterialParameters, geometryCount: number, scaleFactor?: number);
7343
+ /**
7344
+ * These control the repeat factor of the texture in the Y direction.
7345
+ * So when we scale a geometry, it needs to scale the texture as well.
7346
+ * For now this only applies to detached geometries.
7347
+ */
7348
+ get repeatYFactor(): number;
7349
+ set repeatYFactor(value: number);
6356
7350
  get texture(): Texture;
6357
7351
  set texture(texture: Texture);
6358
7352
  get topTexture(): Texture;
@@ -6365,6 +7359,8 @@ declare module '@mappedin/react-sdk/geojson/src/systems/mesh-creation-and-optimi
6365
7359
  };
6366
7360
  showTextures: (batchId: number) => void;
6367
7361
  hideTextures(batchId: number): void;
7362
+ removeSideTexture(batchId: number): void;
7363
+ removeTopTexture(batchId: number): void;
6368
7364
  dispose(): void;
6369
7365
  }
6370
7366
  }
@@ -6630,13 +7626,18 @@ declare module '@mappedin/react-sdk/geojson/src/systems/2d-draw/system' {
6630
7626
 
6631
7627
  declare module '@mappedin/react-sdk/geojson/src/systems/draw/system' {
6632
7628
  import { PubSub } from '@packages/internal/common';
7629
+ import { MeshComponent } from '@mappedin/react-sdk/geojson/src/components/mesh';
7630
+ import { StyleComponent } from '@mappedin/react-sdk/geojson/src/components/style';
6633
7631
  import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
7632
+ import { InteractionComponent } from '@mappedin/react-sdk/geojson/src/components/interaction';
7633
+ import type { GeometryGroupStyleComponent } from '@mappedin/react-sdk/geojson/src/components/geometry-group-style';
6634
7634
  export class DrawSystem extends PubSub<{
6635
7635
  'texture-loaded': void;
6636
7636
  }> {
6637
7637
  #private;
6638
7638
  state: RendererState;
6639
7639
  constructor(state: RendererState);
7640
+ processTextures(component: MeshComponent, styleComponent: StyleComponent | GeometryGroupStyleComponent, interactionComponent?: InteractionComponent): void;
6640
7641
  update(): void;
6641
7642
  destroy(): void;
6642
7643
  }
@@ -6934,6 +7935,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/outline-interpolation/sy
6934
7935
 
6935
7936
  declare module '@mappedin/react-sdk/geojson/src/systems/image/system' {
6936
7937
  import type { RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
7938
+ import { type Texture } from 'three';
6937
7939
  import type { RendererCore } from '@mappedin/react-sdk/geojson/src';
6938
7940
  import { PubSub } from '@packages/internal/common';
6939
7941
  export const DEFAULT_VERTICAL_OFFSET = 0.01;
@@ -6941,6 +7943,7 @@ declare module '@mappedin/react-sdk/geojson/src/systems/image/system' {
6941
7943
  'image-loaded': void;
6942
7944
  }> {
6943
7945
  constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition']);
7946
+ imageLoadingCache: Map<string, Promise<Texture>>;
6944
7947
  update(cameraRotationRadians: number): void;
6945
7948
  }
6946
7949
  }
@@ -6978,13 +7981,13 @@ declare module '@mappedin/react-sdk/geojson/src/systems/path' {
6978
7981
  export { PathSystem } from '@mappedin/react-sdk/geojson/src/systems/path/system';
6979
7982
  }
6980
7983
 
6981
- declare module '@mappedin/react-sdk/geojson/src/systems/mesh-opacity/system' {
7984
+ declare module '@mappedin/react-sdk/geojson/src/systems/mesh-detachment/system' {
6982
7985
  import { type Geometry3DTypes, type RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
6983
7986
  /**
6984
7987
  * This system is responsible for updating the opacity of the mesh, which results in the mesh
6985
7988
  * being detached from the parent's optimized geometry group and rendered as a separate mesh.
6986
7989
  */
6987
- export class MeshOpacitySystem {
7990
+ export class MeshDetachmentSystem {
6988
7991
  #private;
6989
7992
  rendererState: RendererState;
6990
7993
  dirty: boolean;
@@ -7126,15 +8129,20 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils' {
7126
8129
  import { Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
7127
8130
  import type { Position, EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf';
7128
8131
  import type { WithPolygonImage } from '@packages/internal/mvf-utils';
7129
- import type { MultiLineString } from 'geojson';
8132
+ import type { FeatureCollection, MultiLineString } from 'geojson';
7130
8133
  import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle } from '@mappedin/core-sdk';
7131
8134
  import type { TGeometryState, TLabelState, TDirectionInstructionAction, TShow3DMapOptions } from '@mappedin/react-sdk/mappedin-js/src';
7132
- import type { TMarkerState } from '@mappedin/react-sdk/mappedin-js/src/types';
8135
+ import type { TDoorsState, TMarkerState, TWallsState } from '@mappedin/react-sdk/mappedin-js/src/types';
7133
8136
  export function convertCoordinateToPosition(coord: Coordinate): Position;
7134
8137
  export function convertPositionToCoordinate(coord: Position): Coordinate;
7135
- export const cutEntrancesFromLineStrings: (lineStrings: ObstructionCollection["features"], entranceCollection: EntranceCollection["features"]) => Feature<MultiLineString, any>;
8138
+ export const cutEntrancesFromLineStrings: (lineStrings: ObstructionCollection["features"], entranceCollection: EntranceCollection["features"]) => {
8139
+ entrances: FeatureCollection<LineString, any>;
8140
+ walls: Feature<MultiLineString, any>;
8141
+ };
7136
8142
  export function translateLabelStateToGeojsonCore(state: Partial<TLabelState>, currentState: Partial<LabelState>): Partial<LabelState>;
7137
8143
  export function translateMarkerStateToGeojsonCore(state: Partial<TMarkerState>, currentState: Partial<MarkerState>): Partial<MarkerState>;
8144
+ export function translateDoorsStateToGeojsonCore(state: Partial<TDoorsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
8145
+ export function translateWallsStateToGeojsonCore(state: Partial<TWallsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
7138
8146
  export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
7139
8147
  export function differenceBetweenAngles(a: number, b: number): number;
7140
8148
  export function getRelativeBearing(relativeBearingAngle: number, threshold: number): TDirectionInstructionAction['bearing'];
@@ -7154,7 +8162,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/utils' {
7154
8162
  }
7155
8163
 
7156
8164
  declare module '@mappedin/react-sdk/geojson/src/components/style' {
7157
- import type { Cap, Join } from '@mappedin/react-sdk/geojson/src/types';
8165
+ import type { LineStyle } from '@mappedin/react-sdk/geojson/src/renderer';
8166
+ export const DEFAULT_COLOR = "#ffffff";
7158
8167
  export const DEFAULT_HEIGHT = 0.1;
7159
8168
  type Style = {
7160
8169
  color: string;
@@ -7163,8 +8172,8 @@ declare module '@mappedin/react-sdk/geojson/src/components/style' {
7163
8172
  visible: boolean;
7164
8173
  height: number;
7165
8174
  altitude: number;
7166
- join: Join;
7167
- cap: Cap;
8175
+ join: LineStyle['join'];
8176
+ cap: LineStyle['cap'];
7168
8177
  topColor?: string;
7169
8178
  texture?: string;
7170
8179
  topTexture?: string;
@@ -7185,9 +8194,10 @@ declare module '@mappedin/react-sdk/geojson/src/components/style' {
7185
8194
  opacity: number;
7186
8195
  width: number;
7187
8196
  height: number;
8197
+ initialHeight: number;
7188
8198
  altitude: number;
7189
- join: Join;
7190
- cap: Cap;
8199
+ join: LineStyle['join'];
8200
+ cap: LineStyle['cap'];
7191
8201
  outline: boolean;
7192
8202
  showImage: boolean;
7193
8203
  flipImageToFaceCamera: boolean;
@@ -7199,12 +8209,14 @@ declare module '@mappedin/react-sdk/geojson/src/components/style' {
7199
8209
 
7200
8210
  declare module '@mappedin/react-sdk/geojson/src/entities/utils' {
7201
8211
  import type { CollisionRankingTier, GeometryState, LabelState, PathState, RendererCore } from '@mappedin/react-sdk/geojson/src';
7202
- import type { MarkerState } from '@mappedin/react-sdk/geojson/src/components/marker';
8212
+ import { type MarkerState } from '@mappedin/react-sdk/geojson/src/components/marker';
7203
8213
  import type { Geometry3DTypes, Position, RendererState } from '@mappedin/react-sdk/geojson/src/renderer';
7204
8214
  import { GeometryGroupObject3D, type GeometryGroupState } from '@mappedin/react-sdk/geojson/src/entities/geometry-group';
7205
8215
  import { GroupContainerObject3D } from '@mappedin/react-sdk/geojson/src/entities/group-container';
7206
8216
  import { Geometry3D } from '@mappedin/react-sdk/geojson/src/entities/geometry3d';
7207
8217
  import { Geometry2D } from '@mappedin/react-sdk/geojson/src/entities/geometry2d';
8218
+ import type { StyleComponent } from '@mappedin/react-sdk/geojson/src/components/style';
8219
+ import type { GeometryGroupStyleComponent } from '@mappedin/react-sdk/geojson/src/components/geometry-group-style';
7208
8220
  export function updateInteractivity(entity: Geometry3DTypes | Geometry2D, update: boolean | undefined, state: RendererState): boolean;
7209
8221
  export function updateGroupColor(entity: GeometryGroupObject3D, state: RendererState, update: Partial<Pick<GeometryGroupState, 'color' | 'topColor'>>): boolean | undefined;
7210
8222
  export function updateGroupShading(entity: GeometryGroupObject3D, update?: GeometryGroupState['shading']): boolean;
@@ -7215,13 +8227,15 @@ declare module '@mappedin/react-sdk/geojson/src/entities/utils' {
7215
8227
  export function updateParent(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: GroupContainerObject3D | undefined): boolean;
7216
8228
  export function updateEnabled(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: boolean | undefined): void;
7217
8229
  export function updatePath(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<PathState> | undefined): void;
7218
- export function updateMarker(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<MarkerState> | undefined): boolean;
8230
+ export function updateMarker(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<MarkerState> | undefined, state: RendererState): boolean;
7219
8231
  export function updateRank(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: CollisionRankingTier | undefined): boolean;
7220
- export function updateLabel(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<LabelState> | undefined): void;
8232
+ export function updateLabel(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<LabelState> | undefined, state: RendererState): void;
7221
8233
  export function updateHoverColor(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: string): void;
7222
8234
  export function updateFlipImageToFaceCamera(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: boolean): void;
7223
8235
  export function updateVisibility(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: boolean): boolean;
7224
8236
  export function updateOpacity(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, state: RendererState, update?: number): void;
8237
+ export function updateGroupTexture(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: Pick<GeometryGroupStyleComponent, 'texture' | 'topTexture'>): void;
8238
+ export function updateIndividualGeometryTexture(entity: Geometry3D, update?: Pick<StyleComponent, 'texture' | 'topTexture'>): boolean;
7225
8239
  export function updateIndividualGeometryOpacity(entity: Geometry3D, update?: number): boolean;
7226
8240
  export function updateAltitude(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: number): void;
7227
8241
  export function updateOutline(entity: Geometry3DTypes, update?: boolean): boolean;