@mappedin/mappedin-js 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.
@@ -5,10 +5,11 @@
5
5
  // ../mappedin-js/@packages/internal/common/pubsub
6
6
  // ../mappedin-js/@packages/internal/common/Mappedin.Logger
7
7
  // ../mappedin-js/geojson
8
- // ../mappedin-js/@mappedin/core-sdk
9
8
  // ../mappedin-js/@packages/internal/common
9
+ // ../mappedin-js/@mappedin/core-sdk
10
10
  // ../mappedin-js/@mappedin/core-sdk/src/camera
11
11
  // ../mappedin-js/three
12
+ // ../mappedin-js/zod
12
13
  // ../mappedin-js/@packages/internal/shave-text/shave-text
13
14
  // ../mappedin-js/@turf/turf
14
15
  // ../mappedin-js/@packages/internal/quad-tree
@@ -37,7 +38,6 @@ declare module '@mappedin/mappedin-js' {
37
38
  import type { Shading, PaintStyle, LineStyle, WatermarkOptions } from '@mappedin/mappedin-js/geojson/src';
38
39
  import { enableTestMode } from '@mappedin/mappedin-js/geojson/src';
39
40
  export type { PubSub } from '@packages/internal/common/pubsub';
40
- import { analytics } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
41
41
  import { MappedinMapLibreOverlay } from '@mappedin/mappedin-js/mappedin-js/src/maplibre-overlay';
42
42
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
43
43
  /**
@@ -306,16 +306,21 @@ declare module '@mappedin/mappedin-js' {
306
306
  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, };
307
307
  export type * from 'geojson';
308
308
  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/mappedin-js/mappedin-js/src/types';
309
+ export { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
309
310
  export type { Label, Marker, Path, Shape, CameraTransform, Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
310
311
  export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
311
312
  export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
312
313
  export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
313
314
  export type { Camera, Models, Labels, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
314
- export { analytics };
315
315
  }
316
316
 
317
317
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
318
+ import { PubSub } from '@packages/internal/common';
319
+ import { Analytics } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
318
320
  import type { Connection, Door, Floor, MapDataInternal, Space, MapObject, PointOfInterest, Annotation, Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
321
+ import type Category from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category';
322
+ import type Location from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location';
323
+ import type Venue from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue';
319
324
  /**
320
325
  * A WeakMap to associate {@link MapData} instances with their internal representation.
321
326
  * We need a way to get the internal data object from the API
@@ -327,8 +332,14 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
327
332
  * Represents the data for a map, providing access to map elements
328
333
  * like spaces, floors, and points of interest.
329
334
  */
330
- class MapData {
335
+ class MapData extends PubSub<{
336
+ 'language-change': {
337
+ code: string;
338
+ name: string;
339
+ };
340
+ }> {
331
341
  #private;
342
+ Analytics: Analytics;
332
343
  /**
333
344
  * Constructs a new instance of {@link MapData}.
334
345
  *
@@ -353,6 +364,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
353
364
  * @returns {string} The organization ID of the map.
354
365
  */
355
366
  get organizationId(): string;
367
+ /**
368
+ * @internal
369
+ */
370
+ get venue(): Venue | undefined;
356
371
  /**
357
372
  * The token is used to fetch outdoor tiles.
358
373
  *
@@ -410,6 +425,14 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
410
425
  * const annotations = mapData.getByType('annotation');
411
426
  */
412
427
  getByType(type: 'annotation'): Annotation[];
428
+ /**
429
+ * @internal
430
+ */
431
+ getByType(type: 'location'): Location[];
432
+ /**
433
+ * @internal
434
+ */
435
+ getByType(type: 'category'): Category[];
413
436
  /**
414
437
  * Retrieves a specific map feature by its type and ID.
415
438
  *
@@ -426,9 +449,26 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
426
449
  getById(type: 'object', id: string): MapObject | undefined;
427
450
  getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
428
451
  getById(type: 'annotation', id: string): Annotation | undefined;
452
+ getById(type: 'location', id: string): Location | undefined;
453
+ getById(type: 'category', id: string): Category | undefined;
429
454
  getById(type: string, id: string): object | undefined;
455
+ /**
456
+ * @internal
457
+ */
458
+ changeLanguage(languageCode: string): Promise<void>;
459
+ /**
460
+ * @internal
461
+ */
462
+ get currentLanguage(): {
463
+ code: string;
464
+ name: string;
465
+ };
430
466
  }
431
467
  export default MapData;
468
+ /**
469
+ * @internal
470
+ */
471
+ export function getMapDataInternal(mapData: MapData): MapDataInternal;
432
472
  }
433
473
 
434
474
  declare module '@mappedin/mappedin-js/mappedin-js/src/events' {
@@ -552,15 +592,26 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
552
592
  import Annotation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotation';
553
593
  import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
554
594
  import Image from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image';
555
- import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap } from '@mappedin/mvf';
595
+ import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap, EnterpriseLocation, EnterpriseCategory } from '@mappedin/mvf';
556
596
  import type { MapDataObjects } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types';
597
+ import type Location from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location';
598
+ import type Category from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category';
599
+ import Venue from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue';
600
+ import { PubSub } from '@packages/internal/common';
601
+ import { AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
557
602
  /**
558
603
  * Internal class representing detailed map data.
559
604
  *
560
605
  * @internal
561
606
  */
562
- class MapDataInternal {
607
+ class MapDataInternal extends PubSub<{
608
+ 'language-change': {
609
+ code: string;
610
+ name: string;
611
+ };
612
+ }> {
563
613
  #private;
614
+ Analytics: AnalyticsInternal;
564
615
  /**
565
616
  * Represents the parsed Mappedin Venue Format (MVF) data.
566
617
  */
@@ -581,7 +632,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
581
632
  * Represents a map of entrance IDs to obstruction IDs.
582
633
  */
583
634
  readonly obstructionIdByEntranceId: Record<string, string>;
635
+ readonly venue?: Venue;
584
636
  doorsByNodeId: Record<string, Door>;
637
+ locationsBySpaceId: Record<string, EnterpriseLocation[]>;
585
638
  /**
586
639
  * @internal
587
640
  */
@@ -644,6 +697,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
644
697
  * @returns {Annotation[]} An array of Annotation objects.
645
698
  */
646
699
  get nodes(): Node[];
700
+ get locations(): Location[];
701
+ get categories(): Category[];
647
702
  /**
648
703
  * Retrieves an object by its type and ID.
649
704
  *
@@ -659,6 +714,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
659
714
  getById(type: 'object', id: string): MapObject | undefined;
660
715
  getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
661
716
  getById(type: 'annotation', id: string): Annotation | undefined;
717
+ getById(type: 'location', id: string): Location | undefined;
718
+ getById(type: 'category', id: string): Category | undefined;
662
719
  getMapDataById(id: string): MapDataObjects | undefined;
663
720
  /**
664
721
  * Retrieves a feature by its type and ID from the Mappedin Venue Format (MVF) data.
@@ -676,6 +733,25 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
676
733
  getMVFFeatureById(type: 'annotation', id: string): AnnotationCollection['features'][number] | undefined;
677
734
  getMVFFeatureById(type: string, id: string): object | undefined;
678
735
  getMVFFeatureByNodeId(type: 'connection', id: string): MVFConnection | undefined;
736
+ currentLanguage: {
737
+ code: string;
738
+ name: string;
739
+ };
740
+ /**
741
+ * These represent maps of diffed objects that are used to store the translated values
742
+ */
743
+ languagePacks: {
744
+ [key: string]: {
745
+ location: {
746
+ [key: string]: Partial<EnterpriseLocation>;
747
+ };
748
+ category: {
749
+ [key: string]: Partial<EnterpriseCategory>;
750
+ };
751
+ };
752
+ };
753
+ getPropTranslation(type: 'location' | 'category', prop: string, id: string, fallback: EnterpriseLocation[keyof EnterpriseLocation] | EnterpriseCategory[keyof EnterpriseCategory]): unknown;
754
+ changeLanguage(languageCode: string): Promise<void>;
679
755
  /**
680
756
  * Cleans up resources used by the instance.
681
757
  *
@@ -683,7 +759,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
683
759
  */
684
760
  destroy(): void;
685
761
  }
686
- export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, };
762
+ export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, Location, };
687
763
  export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space';
688
764
  export type { MapDataObjects };
689
765
  }
@@ -693,12 +769,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
693
769
  import { PubSub } from '@packages/internal/common';
694
770
  import { type TEvents, type TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
695
771
  import type { Navigation } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
696
- import type { Camera, Labels, Markers, Models, Paths, Exporter, Directions, Style, Outdoor } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
772
+ import type { Camera, Labels, Markers, Models, Paths, Exporter, Directions, Style, Outdoor, Images } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
697
773
  import type { BlueDot } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/blue-dot/blue-dot';
698
774
  import type MapData from '@mappedin/mappedin-js/mappedin-js/src/map-data';
699
- import type { Floor, MapObject, Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
700
- import type { TGetDirectionsOptions, TGetState, TNavigationTarget, TUpdateState, TUpdateStates } from '@mappedin/mappedin-js/mappedin-js/src/types';
701
- import type { Label, Marker } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
775
+ import type { Door, Floor, MapObject, Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
776
+ import type { DOORS, WALLS, TGetDirectionsOptions, TGetState, TNavigationTarget, TUpdateState, TUpdateStates } from '@mappedin/mappedin-js/mappedin-js/src/types';
777
+ import type { Label, Marker, Image } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
702
778
  import type { TEventPayload } from '@mappedin/mappedin-js/mappedin-js/src/events';
703
779
  import type { Shapes } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/shapes';
704
780
  export class MapView extends PubSub<TEvents> {
@@ -715,6 +791,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
715
791
  * Controls for the map's markers.
716
792
  */
717
793
  Markers: Markers;
794
+ /**
795
+ * Controls for the map's markers.
796
+ */
797
+ Images: Images;
718
798
  /**
719
799
  * Controls for the map's models.
720
800
  */
@@ -770,8 +850,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
770
850
  * // Update the color of a space to red.
771
851
  * map.updateState(space, { color: 'red' });
772
852
  */
773
- updateState<T extends Space | MapObject | Label | Marker>(target: T | string, state: TUpdateState<T>): any;
774
- updateState<T extends 'walls' | (string & NonNullable<unknown>)>(target: T, state: TUpdateStates): any;
853
+ updateState<T extends Space | MapObject | Label | Marker | Door | WALLS | DOORS>(target: T, state: TUpdateState<T>): any;
854
+ updateState<T extends string & NonNullable<unknown>>(target: T, state: TUpdateStates): any;
775
855
  update: () => void;
776
856
  getMapData(): {
777
857
  [x: string]: MapData;
@@ -819,7 +899,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
819
899
  * @hidden
820
900
  */
821
901
  updateWatermark(options: Omit<WatermarkOptions, 'onClick'>): void;
822
- getState<T extends Space | MapObject | Label | Marker | string>(target: T): TGetState<T> | undefined;
902
+ getState<T extends Space | MapObject | Label | Marker | Image | string>(target: T): TGetState<T> | undefined;
823
903
  setHoverColor(c: string): void;
824
904
  getHoverColor(): string | undefined;
825
905
  /**
@@ -909,9 +989,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
909
989
  */
910
990
  destroy(): void;
911
991
  /**
912
- * @internal
913
992
  * @experimental
914
- * SDK debug mode wip
993
+ * Enable debug interface
915
994
  */
916
995
  enableDebug(): Promise<void>;
917
996
  }
@@ -954,11 +1033,6 @@ declare module '@mappedin/mappedin-js/geojson/src' {
954
1033
  }): Promise<RendererCore>;
955
1034
  }
956
1035
 
957
- declare module '@mappedin/mappedin-js/mappedin-js/src/analytics' {
958
- export { analytics, analyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
959
- export type { CustomerAnalytics, AnalyticsOptions } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
960
- }
961
-
962
1036
  declare module '@mappedin/mappedin-js/mappedin-js/src/maplibre-overlay' {
963
1037
  import { MapView } from '@mappedin/mappedin-js/mappedin-js/src/map-view';
964
1038
  import type MapData from '@mappedin/mappedin-js/mappedin-js/src/map-data';
@@ -991,9 +1065,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/maplibre-overlay' {
991
1065
  declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
992
1066
  import type { Feature, MultiPolygon, Polygon } from 'geojson';
993
1067
  import type { Coordinate, Floor, Door, Space, MapObject, PointOfInterest, Connection, Annotation } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
994
- import type { Label, Marker, Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
1068
+ import type { Label, Marker, Model, Image } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
995
1069
  import type { EasingCurve } from '@mappedin/core-sdk/src/camera';
996
- import { GeometryGroupState } from '@mappedin/core-sdk';
997
1070
  export type DeepRequired<T> = Required<{
998
1071
  [K in keyof T]: T[K] extends Required<T[K]> ? T[K] : DeepRequired<T[K]>;
999
1072
  }>;
@@ -1058,6 +1131,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
1058
1131
  * Defines the state for a label when its appearance is updated.
1059
1132
  */
1060
1133
  export type TLabelState = {
1134
+ text: string;
1061
1135
  type: 'label';
1062
1136
  /**
1063
1137
  * Appearance settings for the label.
@@ -1082,6 +1156,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
1082
1156
  export type TModelState = {
1083
1157
  type: 'model';
1084
1158
  };
1159
+ /**
1160
+ * Defines the state for an image when its appearance is updated.
1161
+ */
1162
+ export type TImageState = {
1163
+ type: 'image';
1164
+ };
1085
1165
  export type TWallsState = {
1086
1166
  /**
1087
1167
  * Color of the walls.
@@ -1091,6 +1171,31 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
1091
1171
  * Color of the top of walls, if not set, defaults to the color.
1092
1172
  */
1093
1173
  topColor?: string | 'initial';
1174
+ /**
1175
+ * Texture to apply to the geometry element.
1176
+ */
1177
+ texture?: {
1178
+ url?: string;
1179
+ };
1180
+ /**
1181
+ * Top texture to apply to the geometry element.
1182
+ */
1183
+ topTexture?: {
1184
+ url?: string;
1185
+ };
1186
+ /**
1187
+ * Visibility of the walls.
1188
+ */
1189
+ visible: boolean;
1190
+ };
1191
+ /**
1192
+ * @interface
1193
+ */
1194
+ export type TDoorsState = TWallsState & {
1195
+ /**
1196
+ * Opacity of the doors.
1197
+ */
1198
+ opacity: number;
1094
1199
  };
1095
1200
  export type TMarkerState = {
1096
1201
  type: 'marker';
@@ -1148,13 +1253,33 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
1148
1253
  * Height of the geometry element in meters.
1149
1254
  */
1150
1255
  height: number;
1256
+ /**
1257
+ * Texture to apply to the geometry element.
1258
+ */
1259
+ texture?: {
1260
+ url: string;
1261
+ };
1262
+ /**
1263
+ * Top texture to apply to the geometry element.
1264
+ */
1265
+ topTexture?: {
1266
+ url: string;
1267
+ };
1151
1268
  };
1269
+ export enum WALLS {
1270
+ Exterior = "exterior-walls",
1271
+ Interior = "interior-walls"
1272
+ }
1273
+ export enum DOORS {
1274
+ Interior = "interior-doors",
1275
+ Exterior = "exterior-doors"
1276
+ }
1152
1277
  /**
1153
1278
  * The type for updating the state of map elements (colors, texts, etc.).
1154
1279
  */
1155
- 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;
1280
+ 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;
1156
1281
  export type TUpdateStates = Partial<Omit<TGeometryState, 'interactive' | 'hoverColor' | 'type'>> | Partial<TMarkerState> | Partial<TLabelState> | Partial<TGeometryState>;
1157
- 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;
1282
+ 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;
1158
1283
  export type TGetState<T> = TGetEntityState<T> | undefined;
1159
1284
  /**
1160
1285
  * Options for {@link Camera} animations on the map.
@@ -1616,6 +1741,42 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
1616
1741
  */
1617
1742
  url: string;
1618
1743
  };
1744
+ /**
1745
+ * Options for controlling the behavior of a {@link Marker}.
1746
+ * @interface
1747
+ */
1748
+ export type TAddImageOptions = {
1749
+ /**
1750
+ * @internal
1751
+ */
1752
+ id?: string;
1753
+ /**
1754
+ * Width of the image in meters.
1755
+ */
1756
+ width: number;
1757
+ /**
1758
+ * Height of the image in meters.
1759
+ */
1760
+ height: number;
1761
+ /**
1762
+ * Rotation of the image in degrees.
1763
+ *
1764
+ * @default 0
1765
+ */
1766
+ rotation?: number;
1767
+ /**
1768
+ * Vertical offset of the image in meters.
1769
+ *
1770
+ * @default 0
1771
+ */
1772
+ verticalOffset?: number;
1773
+ /**
1774
+ * Attempt to keep the image facing the camera as much as possible
1775
+ *
1776
+ * @default false
1777
+ */
1778
+ flipImageToFaceCamera?: boolean;
1779
+ };
1619
1780
  /**
1620
1781
  * Options for controlling the behavior of a {@link Marker}.
1621
1782
  * @interface
@@ -1710,6 +1871,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
1710
1871
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects' {
1711
1872
  export { Label } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/label';
1712
1873
  export { Marker } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/marker';
1874
+ export { Image } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/image';
1713
1875
  export { Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/model';
1714
1876
  export { Path } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/path';
1715
1877
  export { CameraTransform } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/camera-transform';
@@ -1820,6 +1982,228 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson' {
1820
1982
  export { Directions } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/directions';
1821
1983
  export { Style } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/style';
1822
1984
  export { default as Outdoor } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/outdoor';
1985
+ export { Images } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/images';
1986
+ }
1987
+
1988
+ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics' {
1989
+ export { Analytics, AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
1990
+ export type { AnalyticsUpdateOptions } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
1991
+ }
1992
+
1993
+ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category' {
1994
+ import type { EnterpriseCategory } from '@mappedin/mvf';
1995
+ import type { MapDataInternal, Location } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
1996
+ import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
1997
+ /**
1998
+ * A class representing space data within the map.
1999
+ *
2000
+ * Spaces are used to represent different areas within a map, such as rooms, hallways, etc.
2001
+ */
2002
+ class Category extends BaseMapData implements Omit<EnterpriseCategory, 'children' | 'locations'> {
2003
+ #private;
2004
+ /**
2005
+ * @internal
2006
+ */
2007
+ static readonly __type = "category";
2008
+ /**
2009
+ * @internal
2010
+ */
2011
+ readonly __type = "category";
2012
+ name: string;
2013
+ color?: string | undefined;
2014
+ externalId: string;
2015
+ extra?: Record<string, unknown> | undefined;
2016
+ icon?: string | undefined;
2017
+ iconFromDefaultList?: string | null | undefined;
2018
+ sortOrder: number;
2019
+ /**
2020
+ * Checks if the provided instance is of type Category.
2021
+ *
2022
+ * @param instance The instance to check.
2023
+ * @returns {boolean} True if the instance is a Category, false otherwise.
2024
+ */
2025
+ static is(instance: object): instance is Category;
2026
+ /**
2027
+ * @internal
2028
+ */
2029
+ constructor(data: MapDataInternal, options: {
2030
+ mvfData: EnterpriseCategory;
2031
+ });
2032
+ get children(): Category[];
2033
+ get locations(): Location[];
2034
+ /**
2035
+ * Serializes the space data to JSON.
2036
+ *
2037
+ * @returns An object representing the space.
2038
+ */
2039
+ toJSON(): {
2040
+ id: string;
2041
+ name: string;
2042
+ };
2043
+ /**
2044
+ * Cleans up resources used by the instance.
2045
+ *
2046
+ * @internal
2047
+ */
2048
+ destroy(): void;
2049
+ }
2050
+ export default Category;
2051
+ }
2052
+
2053
+ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location' {
2054
+ import type { EnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
2055
+ import type { Coordinate, MapDataInternal, Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
2056
+ import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
2057
+ import type Node from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node';
2058
+ /**
2059
+ * A class representing space data within the map.
2060
+ *
2061
+ * Spaces are used to represent different areas within a map, such as rooms, hallways, etc.
2062
+ */
2063
+ class Location extends BaseMapData implements Omit<EnterpriseLocation, 'polygons' | 'nodes' | 'links'> {
2064
+ #private;
2065
+ /**
2066
+ * @internal
2067
+ */
2068
+ static readonly __type = "location";
2069
+ /**
2070
+ * @internal
2071
+ */
2072
+ readonly __type = "location";
2073
+ description?: string | undefined;
2074
+ name: string;
2075
+ amenity?: string | undefined;
2076
+ externalId: string;
2077
+ extra?: Record<string, unknown> | undefined;
2078
+ gallery?: {
2079
+ caption?: string | null;
2080
+ image: string;
2081
+ embeddedUrl?: string | null;
2082
+ }[] | undefined;
2083
+ logo?: string | undefined;
2084
+ operationHours?: OperationHours[] | undefined;
2085
+ phone?: {
2086
+ number: string;
2087
+ extension?: string;
2088
+ } | undefined;
2089
+ picture?: string | undefined;
2090
+ shortName?: string | undefined;
2091
+ showFloatingLabelWhenImagePresent?: boolean | undefined;
2092
+ showLogo?: boolean | undefined;
2093
+ siblingGroups?: SiblingGroup[] | undefined;
2094
+ social?: {
2095
+ facebook?: string;
2096
+ instagram?: string;
2097
+ twitter?: string;
2098
+ website?: string;
2099
+ } | undefined;
2100
+ sortOrder: number;
2101
+ states?: LocationState[] | undefined;
2102
+ tags?: string[] | undefined;
2103
+ type: string;
2104
+ /**
2105
+ * Checks if the provided instance is of type Location.
2106
+ *
2107
+ * @param instance The instance to check.
2108
+ * @returns {boolean} True if the instance is a Location, false otherwise.
2109
+ */
2110
+ static is(instance: object): instance is Location;
2111
+ /**
2112
+ * @internal
2113
+ */
2114
+ constructor(data: MapDataInternal, options: {
2115
+ mvfData: EnterpriseLocation;
2116
+ });
2117
+ get coordinates(): Coordinate[];
2118
+ get nodes(): Node[];
2119
+ get spaces(): Space[];
2120
+ /**
2121
+ * Serializes the space data to JSON.
2122
+ *
2123
+ * @returns An object representing the space.
2124
+ */
2125
+ toJSON(): {
2126
+ id: string;
2127
+ name: string;
2128
+ };
2129
+ /**
2130
+ * Cleans up resources used by the instance.
2131
+ *
2132
+ * @internal
2133
+ */
2134
+ destroy(): void;
2135
+ }
2136
+ export default Location;
2137
+ }
2138
+
2139
+ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
2140
+ import type { EnterpriseVenue, Language } from '@mappedin/mvf';
2141
+ import type { Hyperlink, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
2142
+ import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
2143
+ /**
2144
+ * A class representing space data within the map.
2145
+ *
2146
+ * Spaces are used to represent different areas within a map, such as rooms, hallways, etc.
2147
+ */
2148
+ class Venue extends BaseMapData implements EnterpriseVenue {
2149
+ #private;
2150
+ /**
2151
+ * @internal
2152
+ */
2153
+ static readonly __type = "venue";
2154
+ /**
2155
+ * @internal
2156
+ */
2157
+ readonly __type = "venue";
2158
+ countrycode?: string | undefined;
2159
+ externalId: string;
2160
+ defaultLanguage: Language;
2161
+ defaultMap?: string | undefined;
2162
+ extra?: Record<string, unknown> | undefined;
2163
+ icon?: string | undefined;
2164
+ languages: Language[];
2165
+ links: Hyperlink[];
2166
+ logo?: string | undefined;
2167
+ mappedinWebUrl?: string | undefined;
2168
+ slug: string;
2169
+ topLocations?: string[] | undefined;
2170
+ tzid?: string | undefined;
2171
+ /**
2172
+ * Checks if the provided instance is of type Category.
2173
+ *
2174
+ * @param instance The instance to check.
2175
+ * @returns {boolean} True if the instance is a Category, false otherwise.
2176
+ */
2177
+ static is(instance: object): instance is Venue;
2178
+ /**
2179
+ * @internal
2180
+ */
2181
+ constructor(_data: MapDataInternal, options: {
2182
+ mvfData: EnterpriseVenue;
2183
+ });
2184
+ /**
2185
+ * Gets the name of the space.
2186
+ *
2187
+ * @returns {string} The name of the space.
2188
+ */
2189
+ get name(): string;
2190
+ /**
2191
+ * Serializes the space data to JSON.
2192
+ *
2193
+ * @returns An object representing the space.
2194
+ */
2195
+ toJSON(): {
2196
+ id: string;
2197
+ name: string;
2198
+ };
2199
+ /**
2200
+ * Cleans up resources used by the instance.
2201
+ *
2202
+ * @internal
2203
+ */
2204
+ destroy(): void;
2205
+ }
2206
+ export default Venue;
1823
2207
  }
1824
2208
 
1825
2209
  declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps' {
@@ -2058,7 +2442,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door' {
2058
2442
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
2059
2443
  import type { Image, SpaceCollection } from '@mappedin/mvf';
2060
2444
  import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
2061
- import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
2445
+ import type { Location, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
2062
2446
  import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
2063
2447
  import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
2064
2448
  import Door from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door';
@@ -2116,6 +2500,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
2116
2500
  get type(): TSpaceType;
2117
2501
  get description(): string;
2118
2502
  get images(): Image[];
2503
+ /**
2504
+ * @internal
2505
+ */
2506
+ get locations(): Location[];
2119
2507
  /**
2120
2508
  * Gets the {@link Floor} object associated with the space.
2121
2509
  *
@@ -2830,7 +3218,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
2830
3218
  import type { Shading, PaintStyle, LineStyle, WatermarkOptions } from '@mappedin/mappedin-js/geojson/src';
2831
3219
  import { enableTestMode } from '@mappedin/mappedin-js/geojson/src';
2832
3220
  export type { PubSub } from '@packages/internal/common/pubsub';
2833
- import { analytics } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
2834
3221
  import { MappedinMapLibreOverlay } from '@mappedin/mappedin-js/mappedin-js/src/maplibre-overlay';
2835
3222
  export { setLoggerLevel, E_SDK_LOG_LEVEL } from '@packages/internal/common/Mappedin.Logger';
2836
3223
  /**
@@ -3099,12 +3486,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
3099
3486
  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, };
3100
3487
  export type * from 'geojson';
3101
3488
  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/mappedin-js/mappedin-js/src/types';
3489
+ export { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
3102
3490
  export type { Label, Marker, Path, Shape, CameraTransform, Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
3103
3491
  export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
3104
3492
  export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
3105
3493
  export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
3106
3494
  export type { Camera, Models, Labels, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
3107
- export { analytics };
3108
3495
  }
3109
3496
 
3110
3497
  declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/blue-dot/blue-dot' {
@@ -3161,12 +3548,12 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/shapes' {
3161
3548
  */
3162
3549
  add<T extends FeatureCollection<Polygon | MultiPolygon | LineString, any>>(geometry: T, style: T extends FeatureCollection<LineString, any> ? LineStyle : PaintStyle, floor?: Floor): Shape;
3163
3550
  /**
3164
- * Removes a specific shapes ({@link Shape}) from the map.
3165
- * @param shapes The shapes to be removed.
3551
+ * Removes a specific shape ({@link Shape}) from the map.
3552
+ * @param shape The shape to be removed.
3166
3553
  * @example
3167
3554
  * map.Shapes.remove(geo);
3168
3555
  */
3169
- remove(shapes: Shape): void;
3556
+ remove(shape: Shape): void;
3170
3557
  /**
3171
3558
  * Removes all Shapes ({@link Shape}) from the map.
3172
3559
  *
@@ -3185,6 +3572,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/marker' {
3185
3572
  import type { Entity2DHTMLDivElement, EntityId, Position } from '@mappedin/mappedin-js/geojson/src/types';
3186
3573
  import type { GroupContainerState } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
3187
3574
  import type { CollisionRankingTier } from '@mappedin/mappedin-js/geojson/src/utils/collision-ranking-tier';
3575
+ import { z } from 'zod';
3188
3576
  /**
3189
3577
  * State reprsenting a Marker
3190
3578
  */
@@ -3231,6 +3619,26 @@ declare module '@mappedin/mappedin-js/geojson/src/components/marker' {
3231
3619
  interactive?: boolean;
3232
3620
  };
3233
3621
  };
3622
+ export const addMarkerOptionsSchema: z.ZodObject<{
3623
+ rank: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "always-visible"]>, z.ZodNumber]>>;
3624
+ interactive: z.ZodOptional<z.ZodBoolean>;
3625
+ id: z.ZodOptional<z.ZodString>;
3626
+ anchor: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right", "center"]>>;
3627
+ dynamicResize: z.ZodOptional<z.ZodBoolean>;
3628
+ }, "strip", z.ZodTypeAny, {
3629
+ interactive?: boolean | undefined;
3630
+ id?: string | undefined;
3631
+ anchor?: "center" | "left" | "right" | "bottom" | "top" | undefined;
3632
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3633
+ dynamicResize?: boolean | undefined;
3634
+ }, {
3635
+ interactive?: boolean | undefined;
3636
+ id?: string | undefined;
3637
+ anchor?: "center" | "left" | "right" | "bottom" | "top" | undefined;
3638
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3639
+ dynamicResize?: boolean | undefined;
3640
+ }>;
3641
+ export function validateMarker(coordinate: Position, contentHTML: string, options: AddMarkerOptions): void;
3234
3642
  /**
3235
3643
  * Options for creating a new Marker
3236
3644
  */
@@ -3420,6 +3828,172 @@ declare module '@mappedin/mappedin-js/geojson/src/components/label' {
3420
3828
  import type { GroupContainerState } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
3421
3829
  import type { RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
3422
3830
  import type { CollisionRankingTier } from '@mappedin/mappedin-js/geojson/src';
3831
+ import { z } from 'zod';
3832
+ export const addLabelOptionsSchema: z.ZodObject<{
3833
+ rank: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "always-visible"]>, z.ZodNumber]>>;
3834
+ interactive: z.ZodOptional<z.ZodBoolean>;
3835
+ appearance: z.ZodOptional<z.ZodObject<{
3836
+ margin: z.ZodOptional<z.ZodNumber>;
3837
+ text: z.ZodOptional<z.ZodObject<{
3838
+ numLines: z.ZodOptional<z.ZodNumber>;
3839
+ lineHeight: z.ZodOptional<z.ZodNumber>;
3840
+ size: z.ZodOptional<z.ZodNumber>;
3841
+ maxWidth: z.ZodOptional<z.ZodNumber>;
3842
+ foregroundColor: z.ZodOptional<z.ZodString>;
3843
+ backgroundColor: z.ZodOptional<z.ZodString>;
3844
+ }, "strip", z.ZodTypeAny, {
3845
+ size?: number | undefined;
3846
+ maxWidth?: number | undefined;
3847
+ lineHeight?: number | undefined;
3848
+ numLines?: number | undefined;
3849
+ foregroundColor?: string | undefined;
3850
+ backgroundColor?: string | undefined;
3851
+ }, {
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
+ }>>;
3859
+ marker: z.ZodOptional<z.ZodObject<{
3860
+ size: z.ZodOptional<z.ZodNumber>;
3861
+ foregroundColor: z.ZodOptional<z.ZodObject<{
3862
+ active: z.ZodOptional<z.ZodString>;
3863
+ inactive: z.ZodOptional<z.ZodString>;
3864
+ }, "strip", z.ZodTypeAny, {
3865
+ active?: string | undefined;
3866
+ inactive?: string | undefined;
3867
+ }, {
3868
+ active?: string | undefined;
3869
+ inactive?: string | undefined;
3870
+ }>>;
3871
+ backgroundColor: z.ZodOptional<z.ZodObject<{
3872
+ active: z.ZodOptional<z.ZodString>;
3873
+ inactive: z.ZodOptional<z.ZodString>;
3874
+ }, "strip", z.ZodTypeAny, {
3875
+ active?: string | undefined;
3876
+ inactive?: string | undefined;
3877
+ }, {
3878
+ active?: string | undefined;
3879
+ inactive?: string | undefined;
3880
+ }>>;
3881
+ }, "strip", z.ZodTypeAny, {
3882
+ size?: number | undefined;
3883
+ foregroundColor?: {
3884
+ active?: string | undefined;
3885
+ inactive?: string | undefined;
3886
+ } | undefined;
3887
+ backgroundColor?: {
3888
+ active?: string | undefined;
3889
+ inactive?: string | undefined;
3890
+ } | undefined;
3891
+ }, {
3892
+ size?: number | undefined;
3893
+ foregroundColor?: {
3894
+ active?: string | undefined;
3895
+ inactive?: string | undefined;
3896
+ } | undefined;
3897
+ backgroundColor?: {
3898
+ active?: string | undefined;
3899
+ inactive?: string | undefined;
3900
+ } | undefined;
3901
+ }>>;
3902
+ }, "strip", z.ZodTypeAny, {
3903
+ text?: {
3904
+ size?: number | undefined;
3905
+ maxWidth?: number | undefined;
3906
+ lineHeight?: number | undefined;
3907
+ numLines?: number | undefined;
3908
+ foregroundColor?: string | undefined;
3909
+ backgroundColor?: string | undefined;
3910
+ } | undefined;
3911
+ marker?: {
3912
+ size?: number | undefined;
3913
+ foregroundColor?: {
3914
+ active?: string | undefined;
3915
+ inactive?: string | undefined;
3916
+ } | undefined;
3917
+ backgroundColor?: {
3918
+ active?: string | undefined;
3919
+ inactive?: string | undefined;
3920
+ } | undefined;
3921
+ } | undefined;
3922
+ margin?: number | undefined;
3923
+ }, {
3924
+ text?: {
3925
+ size?: number | undefined;
3926
+ maxWidth?: number | undefined;
3927
+ lineHeight?: number | undefined;
3928
+ numLines?: number | undefined;
3929
+ foregroundColor?: string | undefined;
3930
+ backgroundColor?: string | undefined;
3931
+ } | undefined;
3932
+ marker?: {
3933
+ size?: number | undefined;
3934
+ foregroundColor?: {
3935
+ active?: string | undefined;
3936
+ inactive?: string | undefined;
3937
+ } | undefined;
3938
+ backgroundColor?: {
3939
+ active?: string | undefined;
3940
+ inactive?: string | undefined;
3941
+ } | undefined;
3942
+ } | undefined;
3943
+ margin?: number | undefined;
3944
+ }>>;
3945
+ }, "strip", z.ZodTypeAny, {
3946
+ interactive?: boolean | undefined;
3947
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3948
+ appearance?: {
3949
+ text?: {
3950
+ size?: number | undefined;
3951
+ maxWidth?: number | undefined;
3952
+ lineHeight?: number | undefined;
3953
+ numLines?: number | undefined;
3954
+ foregroundColor?: string | undefined;
3955
+ backgroundColor?: string | undefined;
3956
+ } | undefined;
3957
+ marker?: {
3958
+ size?: number | undefined;
3959
+ foregroundColor?: {
3960
+ active?: string | undefined;
3961
+ inactive?: string | undefined;
3962
+ } | undefined;
3963
+ backgroundColor?: {
3964
+ active?: string | undefined;
3965
+ inactive?: string | undefined;
3966
+ } | undefined;
3967
+ } | undefined;
3968
+ margin?: number | undefined;
3969
+ } | undefined;
3970
+ }, {
3971
+ interactive?: boolean | undefined;
3972
+ rank?: number | "high" | "low" | "medium" | "always-visible" | undefined;
3973
+ appearance?: {
3974
+ text?: {
3975
+ size?: number | undefined;
3976
+ maxWidth?: number | undefined;
3977
+ lineHeight?: number | undefined;
3978
+ numLines?: number | undefined;
3979
+ foregroundColor?: string | undefined;
3980
+ backgroundColor?: string | undefined;
3981
+ } | undefined;
3982
+ marker?: {
3983
+ size?: number | undefined;
3984
+ foregroundColor?: {
3985
+ active?: string | undefined;
3986
+ inactive?: string | undefined;
3987
+ } | undefined;
3988
+ backgroundColor?: {
3989
+ active?: string | undefined;
3990
+ inactive?: string | undefined;
3991
+ } | undefined;
3992
+ } | undefined;
3993
+ margin?: number | undefined;
3994
+ } | undefined;
3995
+ }>;
3996
+ export function validateLabel(coordinate: Position, text: string, options: AddLabelOptions): void;
3423
3997
  export const labelThemes: {
3424
3998
  lightOnDark: {
3425
3999
  text: {
@@ -3861,9 +4435,17 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry-group' {
3861
4435
  * Whether the geometry and its children are outlined. This will affect all children of the geometry group and override their outline state.
3862
4436
  */
3863
4437
  outline?: boolean;
3864
- };
3865
- export type ChildUpdatable<T> = T extends LineStyle ? Partial<Pick<LineStyle, 'color' | 'opacity' | 'visible'>> : Partial<Pick<PaintStyle, 'color' | 'opacity' | 'visible'>>;
3866
- export class GeometryGroupObject3D extends Object3D {
4438
+ /**
4439
+ * The texture URL of the geometry
4440
+ */
4441
+ texture?: string;
4442
+ /**
4443
+ * The top texture URL of the geometry
4444
+ */
4445
+ topTexture?: string;
4446
+ };
4447
+ export type ChildUpdatable<T> = T extends LineStyle ? Partial<Pick<LineStyle, 'color' | 'opacity' | 'visible'>> : Partial<Pick<PaintStyle, 'color' | 'opacity' | 'visible'>>;
4448
+ export class GeometryGroupObject3D extends Object3D {
3867
4449
  visible: boolean;
3868
4450
  readonly type = "geometry-group";
3869
4451
  components: [GeometryGroupStyleComponent];
@@ -3962,8 +4544,6 @@ declare module '@mappedin/mappedin-js/geojson/src/types' {
3962
4544
  showImage?: boolean;
3963
4545
  flipImageToFaceCamera?: boolean;
3964
4546
  };
3965
- export type Cap = 'round' | 'square' | 'butt';
3966
- export type Join = 'round' | 'bevel' | 'miter';
3967
4547
  export type Shading = {
3968
4548
  start?: number;
3969
4549
  end?: number;
@@ -3977,8 +4557,8 @@ declare module '@mappedin/mappedin-js/geojson/src/types' {
3977
4557
  height?: number;
3978
4558
  altitude?: number;
3979
4559
  visible?: boolean;
3980
- cap?: Cap;
3981
- join?: Join;
4560
+ cap?: 'round' | 'square' | 'butt';
4561
+ join?: 'round' | 'bevel' | 'miter';
3982
4562
  shading?: Shading;
3983
4563
  outline?: boolean;
3984
4564
  };
@@ -4182,6 +4762,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/mesh' {
4182
4762
  entities: {
4183
4763
  [key: number]: string | number;
4184
4764
  };
4765
+ detached?: boolean;
4185
4766
  };
4186
4767
  }
4187
4768
  /**
@@ -4247,6 +4828,14 @@ declare module '@mappedin/mappedin-js/geojson/src/components/mesh' {
4247
4828
  * The height of the geometry
4248
4829
  */
4249
4830
  height: number;
4831
+ /**
4832
+ * The texture URL of the geometry
4833
+ */
4834
+ texture?: string;
4835
+ /**
4836
+ * The top texture URL of the geometry
4837
+ */
4838
+ topTexture?: string;
4250
4839
  };
4251
4840
  export class MeshComponent {
4252
4841
  #private;
@@ -4281,12 +4870,16 @@ declare module '@mappedin/mappedin-js/geojson/src/components/mesh' {
4281
4870
  set opacity(value: number);
4282
4871
  get texture(): string;
4283
4872
  set texture(texture: Texture);
4873
+ get textureInstance(): Texture | undefined;
4284
4874
  set topTexture(texture: Texture);
4285
4875
  get topTexture(): string;
4876
+ get topTextureInstance(): Texture | undefined;
4286
4877
  get featureBbox(): BBox;
4287
4878
  texturesVisible: boolean;
4288
4879
  showTextures(): void;
4289
4880
  hideTextures(): void;
4881
+ removeSideTexture(): void;
4882
+ removeTopTexture(): void;
4290
4883
  }
4291
4884
  }
4292
4885
 
@@ -4350,10 +4943,11 @@ declare module '@mappedin/mappedin-js/geojson/src/components/model' {
4350
4943
  import type { LineSegments, Object3D } from 'three';
4351
4944
  import { Color, Vector3 } from 'three';
4352
4945
  import type { BatchedStandardMaterial } from '@mappedin/mappedin-js/geojson/src/systems/mesh-creation-and-optimization/batched-material';
4353
- import type { Position, EntityId } from '@mappedin/mappedin-js/geojson/src/types';
4354
- import type { Feature, Point } from 'geojson';
4946
+ import type { Position, EntityId, ModelProperties, ModelStyle } from '@mappedin/mappedin-js/geojson/src/types';
4947
+ import type { Feature, FeatureCollection, Point } from 'geojson';
4355
4948
  import type { Geometry3DObject3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
4356
4949
  import type { GeometryGroupState } from '@mappedin/mappedin-js/geojson/src/entities/geometry-group';
4950
+ import { z } from 'zod';
4357
4951
  /**
4358
4952
  * State representing a Model, typically loaded via a URL
4359
4953
  */
@@ -4378,6 +4972,190 @@ declare module '@mappedin/mappedin-js/geojson/src/components/model' {
4378
4972
  */
4379
4973
  interactive: boolean;
4380
4974
  };
4975
+ export const modelPropertiesSchema: z.ZodObject<{
4976
+ rotation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
4977
+ altitude: z.ZodOptional<z.ZodNumber>;
4978
+ scale: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
4979
+ interactive: z.ZodOptional<z.ZodBoolean>;
4980
+ id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
4981
+ }, "strip", z.ZodTypeAny, {
4982
+ rotation?: number[] | undefined;
4983
+ altitude?: number | undefined;
4984
+ scale?: number[] | undefined;
4985
+ interactive?: boolean | undefined;
4986
+ id?: string | number | undefined;
4987
+ }, {
4988
+ rotation?: number[] | undefined;
4989
+ altitude?: number | undefined;
4990
+ scale?: number[] | undefined;
4991
+ interactive?: boolean | undefined;
4992
+ id?: string | number | undefined;
4993
+ }>;
4994
+ export const featureSchema: z.ZodObject<{
4995
+ type: z.ZodEnum<["Feature"]>;
4996
+ geometry: z.ZodObject<{
4997
+ type: z.ZodEnum<["Point"]>;
4998
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
4999
+ }, "strip", z.ZodTypeAny, {
5000
+ type: "Point";
5001
+ coordinates: number[];
5002
+ }, {
5003
+ type: "Point";
5004
+ coordinates: number[];
5005
+ }>;
5006
+ properties: z.ZodObject<{
5007
+ rotation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5008
+ altitude: z.ZodOptional<z.ZodNumber>;
5009
+ scale: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5010
+ interactive: z.ZodOptional<z.ZodBoolean>;
5011
+ id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
5012
+ }, "strip", z.ZodTypeAny, {
5013
+ rotation?: number[] | undefined;
5014
+ altitude?: number | undefined;
5015
+ scale?: number[] | undefined;
5016
+ interactive?: boolean | undefined;
5017
+ id?: string | number | undefined;
5018
+ }, {
5019
+ rotation?: number[] | undefined;
5020
+ altitude?: number | undefined;
5021
+ scale?: number[] | undefined;
5022
+ interactive?: boolean | undefined;
5023
+ id?: string | number | undefined;
5024
+ }>;
5025
+ }, "strip", z.ZodTypeAny, {
5026
+ type: "Feature";
5027
+ geometry: {
5028
+ type: "Point";
5029
+ coordinates: number[];
5030
+ };
5031
+ properties: {
5032
+ rotation?: number[] | undefined;
5033
+ altitude?: number | undefined;
5034
+ scale?: number[] | undefined;
5035
+ interactive?: boolean | undefined;
5036
+ id?: string | number | undefined;
5037
+ };
5038
+ }, {
5039
+ type: "Feature";
5040
+ geometry: {
5041
+ type: "Point";
5042
+ coordinates: number[];
5043
+ };
5044
+ properties: {
5045
+ rotation?: number[] | undefined;
5046
+ altitude?: number | undefined;
5047
+ scale?: number[] | undefined;
5048
+ interactive?: boolean | undefined;
5049
+ id?: string | number | undefined;
5050
+ };
5051
+ }>;
5052
+ export const addModelFeatureSchema: z.ZodObject<{
5053
+ type: z.ZodEnum<["FeatureCollection"]>;
5054
+ features: z.ZodArray<z.ZodObject<{
5055
+ type: z.ZodEnum<["Feature"]>;
5056
+ geometry: z.ZodObject<{
5057
+ type: z.ZodEnum<["Point"]>;
5058
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
5059
+ }, "strip", z.ZodTypeAny, {
5060
+ type: "Point";
5061
+ coordinates: number[];
5062
+ }, {
5063
+ type: "Point";
5064
+ coordinates: number[];
5065
+ }>;
5066
+ properties: z.ZodObject<{
5067
+ rotation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5068
+ altitude: z.ZodOptional<z.ZodNumber>;
5069
+ scale: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5070
+ interactive: z.ZodOptional<z.ZodBoolean>;
5071
+ id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
5072
+ }, "strip", z.ZodTypeAny, {
5073
+ rotation?: number[] | undefined;
5074
+ altitude?: number | undefined;
5075
+ scale?: number[] | undefined;
5076
+ interactive?: boolean | undefined;
5077
+ id?: string | number | undefined;
5078
+ }, {
5079
+ rotation?: number[] | undefined;
5080
+ altitude?: number | undefined;
5081
+ scale?: number[] | undefined;
5082
+ interactive?: boolean | undefined;
5083
+ id?: string | number | undefined;
5084
+ }>;
5085
+ }, "strip", z.ZodTypeAny, {
5086
+ type: "Feature";
5087
+ geometry: {
5088
+ type: "Point";
5089
+ coordinates: number[];
5090
+ };
5091
+ properties: {
5092
+ rotation?: number[] | undefined;
5093
+ altitude?: number | undefined;
5094
+ scale?: number[] | undefined;
5095
+ interactive?: boolean | undefined;
5096
+ id?: string | number | undefined;
5097
+ };
5098
+ }, {
5099
+ type: "Feature";
5100
+ geometry: {
5101
+ type: "Point";
5102
+ coordinates: number[];
5103
+ };
5104
+ properties: {
5105
+ rotation?: number[] | undefined;
5106
+ altitude?: number | undefined;
5107
+ scale?: number[] | undefined;
5108
+ interactive?: boolean | undefined;
5109
+ id?: string | number | undefined;
5110
+ };
5111
+ }>, "many">;
5112
+ }, "strip", z.ZodTypeAny, {
5113
+ type: "FeatureCollection";
5114
+ features: {
5115
+ type: "Feature";
5116
+ geometry: {
5117
+ type: "Point";
5118
+ coordinates: number[];
5119
+ };
5120
+ properties: {
5121
+ rotation?: number[] | undefined;
5122
+ altitude?: number | undefined;
5123
+ scale?: number[] | undefined;
5124
+ interactive?: boolean | undefined;
5125
+ id?: string | number | undefined;
5126
+ };
5127
+ }[];
5128
+ }, {
5129
+ type: "FeatureCollection";
5130
+ features: {
5131
+ type: "Feature";
5132
+ geometry: {
5133
+ type: "Point";
5134
+ coordinates: number[];
5135
+ };
5136
+ properties: {
5137
+ rotation?: number[] | undefined;
5138
+ altitude?: number | undefined;
5139
+ scale?: number[] | undefined;
5140
+ interactive?: boolean | undefined;
5141
+ id?: string | number | undefined;
5142
+ };
5143
+ }[];
5144
+ }>;
5145
+ export const modelStyleSchema: z.ZodObject<{
5146
+ url: z.ZodString;
5147
+ color: z.ZodOptional<z.ZodString>;
5148
+ opacity: z.ZodOptional<z.ZodNumber>;
5149
+ }, "strip", z.ZodTypeAny, {
5150
+ url: string;
5151
+ color?: string | undefined;
5152
+ opacity?: number | undefined;
5153
+ }, {
5154
+ url: string;
5155
+ color?: string | undefined;
5156
+ opacity?: number | undefined;
5157
+ }>;
5158
+ export function validateModelGroup(id: string | number, geometry: FeatureCollection<Point, ModelProperties>, style: ModelStyle): void;
4381
5159
  export class ModelComponent {
4382
5160
  #private;
4383
5161
  mesh?: Geometry3DObject3D;
@@ -4442,7 +5220,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
4442
5220
  import { OutdoorLayers } from '@mappedin/mappedin-js/geojson/src/systems/outdoor-layers/system';
4443
5221
  import { PathSystem } from '@mappedin/mappedin-js/geojson/src/systems/path';
4444
5222
  import { type ImageProperties, type ImageState, type ImageStyle } from '@mappedin/mappedin-js/geojson/src/components/image';
4445
- import { MeshOpacitySystem } from '@mappedin/mappedin-js/geojson/src/systems/mesh-opacity/system';
5223
+ import { MeshDetachmentSystem } from '@mappedin/mappedin-js/geojson/src/systems/mesh-detachment/system';
4446
5224
  import { MeshModificationSystem } from '@mappedin/mappedin-js/geojson/src/systems/mesh-modification/system';
4447
5225
  export type * from '@mappedin/mappedin-js/geojson/src/types';
4448
5226
  export const raycaster: Raycaster;
@@ -4487,7 +5265,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
4487
5265
  pathSystem: PathSystem;
4488
5266
  imageSystem: ImageSystem;
4489
5267
  geometryInFocusSystem: GeometryInFocusSystem;
4490
- meshOpacitySystem: MeshOpacitySystem;
5268
+ meshDetachmentSystem: MeshDetachmentSystem;
4491
5269
  meshModificationSystem: MeshModificationSystem;
4492
5270
  };
4493
5271
  export type MapViewState = {
@@ -4550,15 +5328,15 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
4550
5328
  /**
4551
5329
  * Add a group of models from GeoJSON data. These will be instanced automatically for better performance.
4552
5330
  */
4553
- addModelGroup(id: string, geometry: FeatureCollection<Point, ModelProperties>, style: ModelStyle, parent?: EntityId<GroupContainerState> | string | null): EntityId<GeometryGroupState>;
5331
+ addModelGroup(id: string, geometry: FeatureCollection<Point, ModelProperties>, style: ModelStyle, parent?: EntityId<GroupContainerState> | string | null): EntityId<GeometryGroupState> | undefined;
4554
5332
  /**
4555
5333
  * Add an HTML Marker at a GeoJSON coordinate.
4556
5334
  */
4557
- addMarker2D(coordinate: Position, contentHTML: string, options?: AddMarkerOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<MarkerState>;
5335
+ addMarker2D(coordinate: Position, contentHTML: string, options?: AddMarkerOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<MarkerState> | undefined;
4558
5336
  /**
4559
5337
  * Add a 2D label at a GeoJSON coordinate.
4560
5338
  */
4561
- addLabel2D(coordinate: Position, text: string, options?: AddLabelOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<LabelState>;
5339
+ addLabel2D(coordinate: Position, text: string, options?: AddLabelOptions, parent?: EntityId<GroupContainerState> | string | number | null): EntityId<LabelState> | undefined;
4562
5340
  /**
4563
5341
  * Add a Path along a set of GeoJSON coordinates that can be animated.
4564
5342
  */
@@ -5199,126 +5977,6 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/html-controls/system'
5199
5977
  }
5200
5978
  }
5201
5979
 
5202
- declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
5203
- /**
5204
- * Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
5205
- * If a set context is not in this list, it will default to the first VALID_CONTEXTS value.
5206
- */
5207
- export const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk"];
5208
- type ValidContext = (typeof VALID_CONTEXTS)[number];
5209
- export const DEFAULT_CONTEXT: "websdk";
5210
- export const ANALYTICS_URL = "https://api-gateway.mappedin.com/track-analytics/a/";
5211
- export class CustomerAnalytics {
5212
- #private;
5213
- constructor();
5214
- init(options?: AnalyticsOptions): void;
5215
- /**
5216
- * Reset state and options
5217
- */
5218
- reset(): void;
5219
- updateState(update: UpdateStateParam): void;
5220
- get authReady(): boolean;
5221
- getState(): AnalyticState;
5222
- capture<T extends keyof CaptureEventsPayloadMap>(eventName: T, query: CaptureEventsPayloadMap[T]): Promise<Response> | Promise<void>;
5223
- capture<T extends keyof CaptureEventsPayloadMap | (string & NonNullable<unknown>)>(target: T, query: T extends keyof CaptureEventsPayloadMap ? CaptureEventsPayloadMap[T] : Record<string, any>): Promise<Response> | Promise<void>;
5224
- /**
5225
- * @internal
5226
- */
5227
- sendGetMapDataEvent(payload: {
5228
- parseDuration: string;
5229
- downloadDuration: string;
5230
- viewId?: string;
5231
- }): Promise<void> | Promise<Response>;
5232
- sendWatchPositionDenied(): Promise<void> | Promise<Response>;
5233
- /**
5234
- * @internal
5235
- */
5236
- sendMapViewLoadedEvent({ firstRenderDuration, dimension, }: {
5237
- firstRenderDuration: string;
5238
- dimension: {
5239
- height: number;
5240
- width: number;
5241
- };
5242
- }): Promise<void> | Promise<Response>;
5243
- /**
5244
- * @internal
5245
- */
5246
- sendGetDirectionsEvent: (start: string, end: string) => void;
5247
- }
5248
- type AnalyticsUserPosition = {
5249
- bluedotTimestamp: number;
5250
- latitude: number;
5251
- longitude: number;
5252
- floorLevel?: number;
5253
- accuracy: number;
5254
- };
5255
- export type AnalyticsOptions = {
5256
- key?: string;
5257
- secret?: string;
5258
- accessToken?: string;
5259
- noAuth?: boolean;
5260
- mapId?: string;
5261
- logEvents?: boolean;
5262
- sendEvents?: boolean;
5263
- context?: string;
5264
- platformString?: string;
5265
- };
5266
- export type AnalyticState = {
5267
- accessToken?: string | undefined;
5268
- version: string;
5269
- platformString: string;
5270
- baseUrl: string;
5271
- noAuth: boolean;
5272
- geolocationMode: boolean;
5273
- mi_uuid: string;
5274
- mi_session: string;
5275
- context: ValidContext;
5276
- userPosition?: AnalyticsUserPosition;
5277
- mapId?: string;
5278
- key?: string;
5279
- secret?: string;
5280
- logEvents: boolean;
5281
- sendEvents: boolean;
5282
- };
5283
- type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken'>>;
5284
- type CaptureEventsPayloadMap = {
5285
- '$select-location': {
5286
- id: string;
5287
- };
5288
- '$select-category': {
5289
- id: string;
5290
- };
5291
- '$query-suggest': Record<string, any>;
5292
- '$query-search': Record<string, any>;
5293
- };
5294
- export const analyticsInternal: CustomerAnalytics;
5295
- export const analytics: {
5296
- /**
5297
- * Initializes the analytics with the provided options.
5298
- * @param args - The options to initialize the analytics.
5299
- */
5300
- init(options?: AnalyticsOptions | undefined): void;
5301
- /**
5302
- * Captures an analytic event with a custom target and query payload.
5303
- *
5304
- * @param target - The event name or target can be .
5305
- * @param query - The payload associated with the event.
5306
- * @returns A promise that resolves to the server response or void.
5307
- */
5308
- capture(target: keyof CaptureEventsPayloadMap | (string & {}), query: Record<string, any> | {
5309
- id: string;
5310
- } | {
5311
- id: string;
5312
- }): Promise<void> | Promise<Response>;
5313
- /**
5314
- * Updates the analytics state with the provided parameters.
5315
- * @param update - The state parameters to update.
5316
- */
5317
- updateState(update: Partial<Pick<AnalyticState, "logEvents" | "sendEvents" | "logEvents" | "accessToken">>): void;
5318
- };
5319
- export {};
5320
- }
5321
-
5322
5980
  declare module '@mappedin/mappedin-js/geojson/src/maplibre-overlay' {
5323
5981
  import type { IControl, Map as MapLibreMap, CustomLayerInterface } from '@packages/internal/outdoor-context-v4';
5324
5982
  import type { Position } from '@mappedin/mappedin-js/geojson/src/types';
@@ -5407,6 +6065,42 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/marker' {
5407
6065
  }
5408
6066
  }
5409
6067
 
6068
+ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/image' {
6069
+ /**
6070
+ * Class representing an Image on the {@link MapView}.
6071
+ */
6072
+ export class Image {
6073
+ #private;
6074
+ /**
6075
+ * @internal
6076
+ */
6077
+ static readonly __type = "Image";
6078
+ /**
6079
+ * @internal
6080
+ */
6081
+ readonly __type = "Image";
6082
+ /**
6083
+ * Checks if the provided instance is of type Marker"
6084
+ *
6085
+ * @param instance The instance to check.
6086
+ * @returns {boolean} True if the instance is a Marker, false otherwise.
6087
+ */
6088
+ static is(instance: object): instance is Image;
6089
+ /**
6090
+ * @internal
6091
+ */
6092
+ constructor(id: string, url: string);
6093
+ /**
6094
+ * The image's id
6095
+ */
6096
+ get id(): string;
6097
+ /**
6098
+ * The image's url
6099
+ */
6100
+ get url(): string;
6101
+ }
6102
+ }
6103
+
5410
6104
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/model' {
5411
6105
  /**
5412
6106
  * Class representing a 3D model on the {@link MapView}.
@@ -5499,10 +6193,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-view-objects/shape' {
5499
6193
  declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
5500
6194
  import type { Position, RendererCore, WatermarkOptions } from '@mappedin/core-sdk';
5501
6195
  import { type TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
6196
+ import { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
5502
6197
  import type MapData from '@mappedin/mappedin-js/mappedin-js/src/map-data';
5503
- import { Coordinate, MapObject, Space, Floor } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
6198
+ import { Coordinate, MapObject, Space, Floor, type MapDataInternal, Door } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
5504
6199
  import type { MapView } from '@mappedin/mappedin-js/mappedin-js/src/map-view';
5505
- import { Label, Marker, type Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
6200
+ import { Label, Marker, type Model, type Image } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
5506
6201
  import { Navigation } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
5507
6202
  import type { TGetDirectionsOptions, TGetState, TNavigationTarget, TUpdateState } from '@mappedin/mappedin-js/mappedin-js/src/types';
5508
6203
  import { Camera } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/camera';
@@ -5511,6 +6206,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
5511
6206
  import { Labels } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/labels';
5512
6207
  import { GeojsonApiMapObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object';
5513
6208
  import { Markers } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/markers';
6209
+ import { Images } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/images';
5514
6210
  import { Models } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/models';
5515
6211
  import { Paths } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/paths';
5516
6212
  import { BlueDot } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/blue-dot/blue-dot';
@@ -5540,10 +6236,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
5540
6236
  BlueDot: BlueDot;
5541
6237
  Shapes: Shapes;
5542
6238
  Style: Style;
6239
+ Images: Images;
5543
6240
  constructor(rendererCore: RendererCore, mapView: MapView);
5544
- updateState<T extends Space | MapObject | Label | Marker | 'walls' | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
6241
+ updateState<T extends Space | MapObject | Label | Marker | Door | WALLS | DOORS | (string & NonNullable<unknown>)>(target: T, state: TUpdateState<T>): void;
5545
6242
  update: () => void;
5546
- getMapDataInternal(): import("../map-data-objects").MapDataInternal | undefined;
6243
+ getMapDataInternal(): MapDataInternal | undefined;
5547
6244
  getMapData(): MapData | undefined;
5548
6245
  expand(opts?: {
5549
6246
  excludeFloors: Floor[];
@@ -5553,7 +6250,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
5553
6250
  setFloor(floor: Floor | string, reason?: TFloorChangeReason): void;
5554
6251
  updateWatermark(options: Omit<WatermarkOptions, 'onClick'>): void;
5555
6252
  get currentFloor(): Floor;
5556
- getState<T extends Space | MapObject | Label | Marker | Model | string>(target: T): TGetState<T> | undefined;
6253
+ getState<T extends Space | MapObject | Label | Marker | Model | Image | string>(target: T): TGetState<T> | undefined;
5557
6254
  setHoverColor(c: string): void;
5558
6255
  getHoverColor(): string | undefined;
5559
6256
  getDirections: (from: TNavigationTarget | TNavigationTarget[], to: TNavigationTarget | TNavigationTarget[], opt?: TGetDirectionsOptions) => Directions | undefined;
@@ -6067,17 +6764,249 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/outdoor' {
6067
6764
  }
6068
6765
  }
6069
6766
 
6767
+ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/images' {
6768
+ import type { TAddImageOptions } from '@mappedin/mappedin-js/mappedin-js/src/types';
6769
+ import { Image } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
6770
+ import type { GeojsonApiMapObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object';
6771
+ import type { Space, Door, Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
6772
+ export class Images {
6773
+ #private;
6774
+ /**
6775
+ * @internal
6776
+ */
6777
+ get currentMap(): GeojsonApiMapObject | undefined;
6778
+ /**
6779
+ * @internal
6780
+ */
6781
+ constructor({ currentMapGetter }: {
6782
+ currentMapGetter: CurrentMapGetter;
6783
+ });
6784
+ /**
6785
+ * @internal
6786
+ */
6787
+ getById(id: string): {
6788
+ image: Image;
6789
+ entityId: string;
6790
+ } | undefined;
6791
+ /**
6792
+ * Adds an image to the map.
6793
+ *
6794
+ * @param target The target object ({@link Space}, {@link Door}, or {@link Coordinate}) for the image.
6795
+ * @param url The URL of the image.
6796
+ * @param options Optional additional options for the {@link Image}.
6797
+ * @returns {Image | undefined} The created {@link Image}, or undefined if creation failed.
6798
+ * @example
6799
+ * // Add an interactive {@link Image} to the map with custom HTML content.
6800
+ * map.Images.add(coordinate, '<div>Image Content</div>', { interactive: true });
6801
+ */
6802
+ add(target: Space | Door | Coordinate, url: string, options: TAddImageOptions): Image;
6803
+ /**
6804
+ * Removes a image from the map.
6805
+ *
6806
+ * @param image {Image} The {@link Image} which should be removed.
6807
+ * @example
6808
+ * mapView.Images.remove(image);
6809
+ */
6810
+ remove(image: Image): void;
6811
+ /**
6812
+ * Remove all the images from the map.
6813
+ *
6814
+ * @example
6815
+ * map.Images.removeAll();
6816
+ */
6817
+ removeAll(): Image[];
6818
+ }
6819
+ type CurrentMapGetter = () => GeojsonApiMapObject | undefined;
6820
+ export {};
6821
+ }
6822
+
6823
+ declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
6824
+ /**
6825
+ * Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
6826
+ * If a set context is not in this list, it will default to the first VALID_CONTEXTS value.
6827
+ */
6828
+ export const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk"];
6829
+ type ValidContext = (typeof VALID_CONTEXTS)[number];
6830
+ export const DEFAULT_CONTEXT: "websdk";
6831
+ export const ANALYTICS_URL = "https://api-gateway.mappedin.com/track-analytics/a/";
6832
+ export const FOUND_POSITION = "found-position";
6833
+ export const FOUND_FLOOR = "found-floor";
6834
+ type BlueDotEvents = typeof FOUND_FLOOR | typeof FOUND_POSITION;
6835
+ export class AnalyticsInternal {
6836
+ #private;
6837
+ constructor();
6838
+ init(options: AnalyticsUpdateOptions): void;
6839
+ /**
6840
+ * Reset state and options
6841
+ */
6842
+ reset(): void;
6843
+ updateState(update: UpdateStateParam): void;
6844
+ get authReady(): boolean;
6845
+ getState(): AnalyticState;
6846
+ capture<T extends keyof CaptureEventsPayloadMap>(eventName: T, query: CaptureEventsPayloadMap[T]): Promise<Response> | Promise<void>;
6847
+ capture<T extends keyof CaptureEventsPayloadMap | (string & NonNullable<unknown>)>(target: T, query: T extends keyof CaptureEventsPayloadMap ? CaptureEventsPayloadMap[T] : Record<string, any>): Promise<Response> | Promise<void>;
6848
+ /**
6849
+ * @internal
6850
+ */
6851
+ sendGetMapDataEvent(payload: {
6852
+ parseDuration: number;
6853
+ downloadDuration: number;
6854
+ viewId?: string;
6855
+ }): void | Promise<Response> | Promise<void>;
6856
+ sendWatchPositionDenied(): void | Promise<Response> | Promise<void>;
6857
+ /**
6858
+ * @internal
6859
+ */
6860
+ sendMapViewLoadedEvent({ firstRenderDuration, dimension, }: {
6861
+ firstRenderDuration: number;
6862
+ dimension: {
6863
+ height: number;
6864
+ width: number;
6865
+ };
6866
+ }): void | Promise<Response> | Promise<void>;
6867
+ /**
6868
+ * @internal
6869
+ */
6870
+ sendGetDirectionsEvent: (start: string, end: string) => void;
6871
+ sendBlueDotEvents(event: BlueDotEvents): void | Promise<Response> | Promise<void>;
6872
+ }
6873
+ type AnalyticsUserPosition = {
6874
+ bluedotTimestamp: number;
6875
+ latitude: number;
6876
+ longitude: number;
6877
+ floorLevel?: number;
6878
+ accuracy: number;
6879
+ };
6880
+ type AnalyticsOptions = {
6881
+ /** The ID of the map to be used for analytics. */
6882
+ mapId?: string;
6883
+ /** The API key for authentication. */
6884
+ key?: string;
6885
+ /** The API secret for authentication. */
6886
+ secret?: string;
6887
+ /** The access token for authentication. */
6888
+ accessToken?: string;
6889
+ /** Flag to disable authentication. */
6890
+ noAuth?: boolean;
6891
+ /** Flag to enable logging of events. */
6892
+ logEvents?: boolean;
6893
+ /** Flag to enable sending of events. */
6894
+ sendEvents?: boolean;
6895
+ /** The context in which the analytics are being used. */
6896
+ context?: string;
6897
+ /** The platform string to be included in analytics. */
6898
+ platformString?: string;
6899
+ /** The base URI for the analytics endpoint. */
6900
+ baseUri?: string;
6901
+ };
6902
+ export type AnalyticsUpdateOptions = Omit<AnalyticsOptions, 'mapId' | 'key' | 'secret' | 'accessToken'> & {
6903
+ /** The ID of the map to be used for analytics. */
6904
+ mapId: string;
6905
+ } & ({
6906
+ /** The API key for authentication. */
6907
+ key: string;
6908
+ /** The API secret for authentication. */
6909
+ secret: string;
6910
+ } | {
6911
+ /** The access token for authentication. */
6912
+ accessToken: string;
6913
+ });
6914
+ export type AnalyticState = {
6915
+ accessToken?: string | undefined;
6916
+ version: string;
6917
+ platformString: string;
6918
+ baseUri: string;
6919
+ analyticsBaseUrl: string;
6920
+ noAuth: boolean;
6921
+ geolocationMode: boolean;
6922
+ mi_uuid: string;
6923
+ mi_session: string;
6924
+ context: ValidContext;
6925
+ userPosition?: AnalyticsUserPosition;
6926
+ mapId?: string;
6927
+ key?: string;
6928
+ secret?: string;
6929
+ logEvents: boolean;
6930
+ sendEvents: boolean;
6931
+ };
6932
+ type UpdateStateParam = Partial<Pick<AnalyticState, 'geolocationMode' | 'context' | 'logEvents' | 'userPosition' | 'mapId' | 'sendEvents' | 'logEvents' | 'accessToken'>>;
6933
+ type CaptureEventsPayloadMap = {
6934
+ '$select-location': {
6935
+ id: string;
6936
+ };
6937
+ '$select-category': {
6938
+ id: string;
6939
+ };
6940
+ '$query-suggest': {
6941
+ query: string;
6942
+ suggestions?: string[];
6943
+ };
6944
+ '$query-search': {
6945
+ query: string;
6946
+ hits?: string[];
6947
+ };
6948
+ };
6949
+ export const analyticsInternal: AnalyticsInternal;
6950
+ export class Analytics {
6951
+ #private;
6952
+ constructor(internalAnalytics: AnalyticsInternal);
6953
+ /**
6954
+ * Initializes the analytics with the provided options.
6955
+ * @param args - The options to initialize the analytics.
6956
+ */
6957
+ init(options: AnalyticsUpdateOptions): void;
6958
+ /**
6959
+ * Captures an analytic event with a custom target and query payload.
6960
+ *
6961
+ * @param target - The event name or target can be .
6962
+ * @param query - The payload associated with the event.
6963
+ * @returns A promise that resolves to the server response or void.
6964
+ */
6965
+ capture: typeof AnalyticsInternal.prototype.capture;
6966
+ /**
6967
+ * Updates the analytics state with the provided parameters.
6968
+ * @param update - The state parameters to update.
6969
+ */
6970
+ updateState: (update: Partial<Pick<AnalyticState, 'logEvents' | 'sendEvents' | 'logEvents' | 'baseUri' | 'accessToken'>>) => void;
6971
+ /**
6972
+ * Returns the current analytics state.
6973
+ * @internal
6974
+ * @returns the current analytics state
6975
+ */
6976
+ getState(): AnalyticState;
6977
+ }
6978
+ export {};
6979
+ }
6980
+
6981
+ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object' {
6982
+ import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
6983
+ import type { Details } from '@mappedin/mvf';
6984
+ export default abstract class BaseMapData {
6985
+ /**
6986
+ * identity of the map object
6987
+ */
6988
+ readonly id: string;
6989
+ constructor(id: string, details?: Details);
6990
+ /**
6991
+ * Gets the links associated with this data type.
6992
+ *
6993
+ * @returns {Hyperlink[]} The links associated with this data type
6994
+ */
6995
+ links: Hyperlink[];
6996
+ }
6997
+ }
6998
+
6070
6999
  declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
6071
7000
  import type { ParsedMVF } from '@mappedin/mvf';
6072
- import { FloorObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object';
7001
+ import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
7002
+ import { PubSub } from '@packages/internal/common';
6073
7003
  import type { Position, AddLabelOptions, RendererCore, MarkerState, LineStyle, PaintStyle } from '@mappedin/core-sdk';
7004
+ import { FloorObject } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object';
6074
7005
  import type { Coordinate, TAddMarkerOptions, TAddPathOptions, TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
6075
- import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddModel } from '@mappedin/mappedin-js/mappedin-js/src/types';
7006
+ import type { GLTFExportOptions, TAnimationOptions, TAddModelOptions, TAddModel, TAddImageOptions } from '@mappedin/mappedin-js/mappedin-js/src/types';
6076
7007
  import { type AggregatedStyleMap } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils';
6077
- import { PubSub } from '@packages/internal/common';
6078
7008
  import { StackedMaps } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps';
6079
7009
  import type { TFloorChangeReason } from '@mappedin/mappedin-js/mappedin-js/src/events';
6080
- import type { FeatureCollection, LineString, MultiPolygon, Polygon } from 'geojson';
6081
7010
  import type { Shape } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
6082
7011
  export class GeojsonApiMapObject extends PubSub<{
6083
7012
  'floor-change': {
@@ -6103,11 +7032,18 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/map-object' {
6103
7032
  }) => (import("@mappedin/core-sdk").GeometryState | import("@mappedin/core-sdk").ModelState)[];
6104
7033
  remove: (_id: string, _groupId: string) => void;
6105
7034
  };
7035
+ Images: {
7036
+ add: (target: Position, url: string, opts: TAddImageOptions & {
7037
+ floorId?: string;
7038
+ }) => import("@mappedin/core-sdk").EntityId<import("@mappedin/core-sdk/src/components/image").ImageState> | undefined;
7039
+ remove: (id: string) => void;
7040
+ removeAll: () => void;
7041
+ };
6106
7042
  Markers: {
6107
7043
  add: (coordinate: Position, html: string, opts?: TAddMarkerOptions & {
6108
7044
  floorId?: string;
6109
- }) => import("@mappedin/core-sdk").EntityId<MarkerState>;
6110
- remove: (_id: string) => void;
7045
+ }) => import("@mappedin/core-sdk").EntityId<MarkerState> | undefined;
7046
+ remove: (id: string) => void;
6111
7047
  getContentEl: (id: string) => HTMLElement | undefined;
6112
7048
  removeAll: () => void;
6113
7049
  setPosition: (id: string, coordinate: Position, targetFloorId: string) => void;
@@ -6160,24 +7096,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object'
6160
7096
  }
6161
7097
  }
6162
7098
 
6163
- declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object' {
6164
- import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
6165
- import type { Details } from '@mappedin/mvf';
6166
- export default abstract class BaseMapData {
6167
- /**
6168
- * identity of the map object
6169
- */
6170
- readonly id: string;
6171
- constructor(id: string, details?: Details);
6172
- /**
6173
- * Gets the links associated with this data type.
6174
- *
6175
- * @returns {Hyperlink[]} The links associated with this data type
6176
- */
6177
- links: Hyperlink[];
6178
- }
6179
- }
6180
-
6181
7099
  declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object' {
6182
7100
  export default abstract class BaseMetaData {
6183
7101
  /**
@@ -6214,7 +7132,7 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
6214
7132
  export class Geometry3D {
6215
7133
  id: string | number;
6216
7134
  components: [MeshComponentTypes, StyleComponent, InteractionComponent?];
6217
- get object3d(): import("../components/mesh").EntityBatchedMesh | Geometry3DObject3D | undefined;
7135
+ get object3d(): Geometry3DObject3D | import("../components/mesh").EntityBatchedMesh | undefined;
6218
7136
  get parent(): GroupContainerObject3D | GeometryGroupObject3D | null;
6219
7137
  get type(): 'geometry' | 'path' | 'model' | 'custom-geometry' | 'image';
6220
7138
  constructor(meshComponent: MeshComponent | PathComponent | ModelComponent | CustomGeometryComponent | ImageComponent, styleComponent: StyleComponent);
@@ -6273,6 +7191,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/geometry-group-styl
6273
7191
  opacity: number;
6274
7192
  shading?: Shading;
6275
7193
  outline: boolean;
7194
+ texture?: string;
7195
+ topTexture?: string;
6276
7196
  };
6277
7197
  export class GeometryGroupStyleComponent implements GeometryGroupStyle {
6278
7198
  #private;
@@ -6280,6 +7200,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/geometry-group-styl
6280
7200
  topColor?: string;
6281
7201
  opacity: number;
6282
7202
  outline: boolean;
7203
+ texture?: string;
7204
+ topTexture?: string;
6283
7205
  /**
6284
7206
  * Ideally for handling all style component changes. However, it's only used for handling outline for now.
6285
7207
  * 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
@@ -6298,6 +7220,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/image' {
6298
7220
  import type { Position } from '@mappedin/mappedin-js/geojson/src/types';
6299
7221
  import type { Feature, Point } from 'geojson';
6300
7222
  import { Geometry3DObject3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
7223
+ import { z } from 'zod';
6301
7224
  export class EntityMesh extends Mesh {
6302
7225
  userData: {
6303
7226
  entityId: string | number;
@@ -6319,7 +7242,70 @@ declare module '@mappedin/mappedin-js/geojson/src/components/image' {
6319
7242
  rotation?: number;
6320
7243
  verticalOffset?: number;
6321
7244
  };
6322
- export function validImageFeature(feature: Feature<Point, ImageProperties>): feature is Feature<Point, ImageProperties>;
7245
+ export const addImageFeatureStyleSchema: z.ZodObject<{
7246
+ flipImageToFaceCamera: z.ZodOptional<z.ZodBoolean>;
7247
+ url: z.ZodString;
7248
+ }, "strip", z.ZodTypeAny, {
7249
+ url: string;
7250
+ flipImageToFaceCamera?: boolean | undefined;
7251
+ }, {
7252
+ url: string;
7253
+ flipImageToFaceCamera?: boolean | undefined;
7254
+ }>;
7255
+ export const addImageFeatureSchema: z.ZodObject<{
7256
+ type: z.ZodEnum<["Feature"]>;
7257
+ properties: z.ZodObject<{
7258
+ width: z.ZodNumber;
7259
+ height: z.ZodNumber;
7260
+ rotation: z.ZodOptional<z.ZodNumber>;
7261
+ verticalOffset: z.ZodOptional<z.ZodNumber>;
7262
+ }, "strip", z.ZodTypeAny, {
7263
+ height: number;
7264
+ width: number;
7265
+ rotation?: number | undefined;
7266
+ verticalOffset?: number | undefined;
7267
+ }, {
7268
+ height: number;
7269
+ width: number;
7270
+ rotation?: number | undefined;
7271
+ verticalOffset?: number | undefined;
7272
+ }>;
7273
+ geometry: z.ZodObject<{
7274
+ type: z.ZodEnum<["Point"]>;
7275
+ coordinates: z.ZodArray<z.ZodNumber, "many">;
7276
+ }, "strip", z.ZodTypeAny, {
7277
+ type: "Point";
7278
+ coordinates: number[];
7279
+ }, {
7280
+ type: "Point";
7281
+ coordinates: number[];
7282
+ }>;
7283
+ }, "strip", z.ZodTypeAny, {
7284
+ type: "Feature";
7285
+ geometry: {
7286
+ type: "Point";
7287
+ coordinates: number[];
7288
+ };
7289
+ properties: {
7290
+ height: number;
7291
+ width: number;
7292
+ rotation?: number | undefined;
7293
+ verticalOffset?: number | undefined;
7294
+ };
7295
+ }, {
7296
+ type: "Feature";
7297
+ geometry: {
7298
+ type: "Point";
7299
+ coordinates: number[];
7300
+ };
7301
+ properties: {
7302
+ height: number;
7303
+ width: number;
7304
+ rotation?: number | undefined;
7305
+ verticalOffset?: number | undefined;
7306
+ };
7307
+ }>;
7308
+ export function validateImage(id: string | number, feature: Feature<Point, ImageProperties>, style: ImageStyle): void;
6323
7309
  /**
6324
7310
  * State representing an Image
6325
7311
  */
@@ -6405,7 +7391,14 @@ declare module '@mappedin/mappedin-js/geojson/src/types/constants' {
6405
7391
  declare module '@mappedin/mappedin-js/geojson/src/systems/mesh-creation-and-optimization/batched-material' {
6406
7392
  import { MeshLambertMaterial, type Color, type Texture, type MeshLambertMaterialParameters } from 'three';
6407
7393
  export class BatchedStandardMaterial extends MeshLambertMaterial {
6408
- constructor(params: MeshLambertMaterialParameters, geometryCount: number);
7394
+ constructor(params: MeshLambertMaterialParameters, geometryCount: number, scaleFactor?: number);
7395
+ /**
7396
+ * These control the repeat factor of the texture in the Y direction.
7397
+ * So when we scale a geometry, it needs to scale the texture as well.
7398
+ * For now this only applies to detached geometries.
7399
+ */
7400
+ get repeatYFactor(): number;
7401
+ set repeatYFactor(value: number);
6409
7402
  get texture(): Texture;
6410
7403
  set texture(texture: Texture);
6411
7404
  get topTexture(): Texture;
@@ -6418,6 +7411,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/mesh-creation-and-opti
6418
7411
  };
6419
7412
  showTextures: (batchId: number) => void;
6420
7413
  hideTextures(batchId: number): void;
7414
+ removeSideTexture(batchId: number): void;
7415
+ removeTopTexture(batchId: number): void;
6421
7416
  dispose(): void;
6422
7417
  }
6423
7418
  }
@@ -6683,13 +7678,18 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/2d-draw/system' {
6683
7678
 
6684
7679
  declare module '@mappedin/mappedin-js/geojson/src/systems/draw/system' {
6685
7680
  import { PubSub } from '@packages/internal/common';
7681
+ import { MeshComponent } from '@mappedin/mappedin-js/geojson/src/components/mesh';
7682
+ import { StyleComponent } from '@mappedin/mappedin-js/geojson/src/components/style';
6686
7683
  import type { RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
7684
+ import { InteractionComponent } from '@mappedin/mappedin-js/geojson/src/components/interaction';
7685
+ import type { GeometryGroupStyleComponent } from '@mappedin/mappedin-js/geojson/src/components/geometry-group-style';
6687
7686
  export class DrawSystem extends PubSub<{
6688
7687
  'texture-loaded': void;
6689
7688
  }> {
6690
7689
  #private;
6691
7690
  state: RendererState;
6692
7691
  constructor(state: RendererState);
7692
+ processTextures(component: MeshComponent, styleComponent: StyleComponent | GeometryGroupStyleComponent, interactionComponent?: InteractionComponent): void;
6693
7693
  update(): void;
6694
7694
  destroy(): void;
6695
7695
  }
@@ -6987,6 +7987,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/outline-interpolation/
6987
7987
 
6988
7988
  declare module '@mappedin/mappedin-js/geojson/src/systems/image/system' {
6989
7989
  import type { RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
7990
+ import { type Texture } from 'three';
6990
7991
  import type { RendererCore } from '@mappedin/mappedin-js/geojson/src';
6991
7992
  import { PubSub } from '@packages/internal/common';
6992
7993
  export const DEFAULT_VERTICAL_OFFSET = 0.01;
@@ -6994,6 +7995,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/image/system' {
6994
7995
  'image-loaded': void;
6995
7996
  }> {
6996
7997
  constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition']);
7998
+ imageLoadingCache: Map<string, Promise<Texture>>;
6997
7999
  update(cameraRotationRadians: number): void;
6998
8000
  }
6999
8001
  }
@@ -7031,13 +8033,13 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/path' {
7031
8033
  export { PathSystem } from '@mappedin/mappedin-js/geojson/src/systems/path/system';
7032
8034
  }
7033
8035
 
7034
- declare module '@mappedin/mappedin-js/geojson/src/systems/mesh-opacity/system' {
8036
+ declare module '@mappedin/mappedin-js/geojson/src/systems/mesh-detachment/system' {
7035
8037
  import { type Geometry3DTypes, type RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
7036
8038
  /**
7037
8039
  * This system is responsible for updating the opacity of the mesh, which results in the mesh
7038
8040
  * being detached from the parent's optimized geometry group and rendered as a separate mesh.
7039
8041
  */
7040
- export class MeshOpacitySystem {
8042
+ export class MeshDetachmentSystem {
7041
8043
  #private;
7042
8044
  rendererState: RendererState;
7043
8045
  dirty: boolean;
@@ -7179,15 +8181,20 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
7179
8181
  import { Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
7180
8182
  import type { Position, EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf';
7181
8183
  import type { WithPolygonImage } from '@packages/internal/mvf-utils';
7182
- import type { MultiLineString } from 'geojson';
8184
+ import type { FeatureCollection, MultiLineString } from 'geojson';
7183
8185
  import type { LabelState, MarkerState, GeometryState, CollisionRankingTier, LineStyle, PaintStyle } from '@mappedin/core-sdk';
7184
8186
  import type { TGeometryState, TLabelState, TDirectionInstructionAction, TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
7185
- import type { TMarkerState } from '@mappedin/mappedin-js/mappedin-js/src/types';
8187
+ import type { TDoorsState, TMarkerState, TWallsState } from '@mappedin/mappedin-js/mappedin-js/src/types';
7186
8188
  export function convertCoordinateToPosition(coord: Coordinate): Position;
7187
8189
  export function convertPositionToCoordinate(coord: Position): Coordinate;
7188
- export const cutEntrancesFromLineStrings: (lineStrings: ObstructionCollection["features"], entranceCollection: EntranceCollection["features"]) => Feature<MultiLineString, any>;
8190
+ export const cutEntrancesFromLineStrings: (lineStrings: ObstructionCollection["features"], entranceCollection: EntranceCollection["features"]) => {
8191
+ entrances: FeatureCollection<LineString, any>;
8192
+ walls: Feature<MultiLineString, any>;
8193
+ };
7189
8194
  export function translateLabelStateToGeojsonCore(state: Partial<TLabelState>, currentState: Partial<LabelState>): Partial<LabelState>;
7190
8195
  export function translateMarkerStateToGeojsonCore(state: Partial<TMarkerState>, currentState: Partial<MarkerState>): Partial<MarkerState>;
8196
+ export function translateDoorsStateToGeojsonCore(state: Partial<TDoorsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
8197
+ export function translateWallsStateToGeojsonCore(state: Partial<TWallsState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
7191
8198
  export function translateSpaceStateToGeojsonCore(state: Partial<TGeometryState>, currentState: Partial<GeometryState>): Partial<GeometryState>;
7192
8199
  export function differenceBetweenAngles(a: number, b: number): number;
7193
8200
  export function getRelativeBearing(relativeBearingAngle: number, threshold: number): TDirectionInstructionAction['bearing'];
@@ -7207,7 +8214,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
7207
8214
  }
7208
8215
 
7209
8216
  declare module '@mappedin/mappedin-js/geojson/src/components/style' {
7210
- import type { Cap, Join } from '@mappedin/mappedin-js/geojson/src/types';
8217
+ import type { LineStyle } from '@mappedin/mappedin-js/geojson/src/renderer';
8218
+ export const DEFAULT_COLOR = "#ffffff";
7211
8219
  export const DEFAULT_HEIGHT = 0.1;
7212
8220
  type Style = {
7213
8221
  color: string;
@@ -7216,8 +8224,8 @@ declare module '@mappedin/mappedin-js/geojson/src/components/style' {
7216
8224
  visible: boolean;
7217
8225
  height: number;
7218
8226
  altitude: number;
7219
- join: Join;
7220
- cap: Cap;
8227
+ join: LineStyle['join'];
8228
+ cap: LineStyle['cap'];
7221
8229
  topColor?: string;
7222
8230
  texture?: string;
7223
8231
  topTexture?: string;
@@ -7238,9 +8246,10 @@ declare module '@mappedin/mappedin-js/geojson/src/components/style' {
7238
8246
  opacity: number;
7239
8247
  width: number;
7240
8248
  height: number;
8249
+ initialHeight: number;
7241
8250
  altitude: number;
7242
- join: Join;
7243
- cap: Cap;
8251
+ join: LineStyle['join'];
8252
+ cap: LineStyle['cap'];
7244
8253
  outline: boolean;
7245
8254
  showImage: boolean;
7246
8255
  flipImageToFaceCamera: boolean;
@@ -7252,12 +8261,14 @@ declare module '@mappedin/mappedin-js/geojson/src/components/style' {
7252
8261
 
7253
8262
  declare module '@mappedin/mappedin-js/geojson/src/entities/utils' {
7254
8263
  import type { CollisionRankingTier, GeometryState, LabelState, PathState, RendererCore } from '@mappedin/mappedin-js/geojson/src';
7255
- import type { MarkerState } from '@mappedin/mappedin-js/geojson/src/components/marker';
8264
+ import { type MarkerState } from '@mappedin/mappedin-js/geojson/src/components/marker';
7256
8265
  import type { Geometry3DTypes, Position, RendererState } from '@mappedin/mappedin-js/geojson/src/renderer';
7257
8266
  import { GeometryGroupObject3D, type GeometryGroupState } from '@mappedin/mappedin-js/geojson/src/entities/geometry-group';
7258
8267
  import { GroupContainerObject3D } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
7259
8268
  import { Geometry3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
7260
8269
  import { Geometry2D } from '@mappedin/mappedin-js/geojson/src/entities/geometry2d';
8270
+ import type { StyleComponent } from '@mappedin/mappedin-js/geojson/src/components/style';
8271
+ import type { GeometryGroupStyleComponent } from '@mappedin/mappedin-js/geojson/src/components/geometry-group-style';
7261
8272
  export function updateInteractivity(entity: Geometry3DTypes | Geometry2D, update: boolean | undefined, state: RendererState): boolean;
7262
8273
  export function updateGroupColor(entity: GeometryGroupObject3D, state: RendererState, update: Partial<Pick<GeometryGroupState, 'color' | 'topColor'>>): boolean | undefined;
7263
8274
  export function updateGroupShading(entity: GeometryGroupObject3D, update?: GeometryGroupState['shading']): boolean;
@@ -7268,13 +8279,15 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/utils' {
7268
8279
  export function updateParent(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: GroupContainerObject3D | undefined): boolean;
7269
8280
  export function updateEnabled(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: boolean | undefined): void;
7270
8281
  export function updatePath(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<PathState> | undefined): void;
7271
- export function updateMarker(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<MarkerState> | undefined): boolean;
8282
+ export function updateMarker(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<MarkerState> | undefined, state: RendererState): boolean;
7272
8283
  export function updateRank(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: CollisionRankingTier | undefined): boolean;
7273
- export function updateLabel(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<LabelState> | undefined): void;
8284
+ export function updateLabel(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update: Partial<LabelState> | undefined, state: RendererState): void;
7274
8285
  export function updateHoverColor(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: string): void;
7275
8286
  export function updateFlipImageToFaceCamera(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: boolean): void;
7276
8287
  export function updateVisibility(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: boolean): boolean;
7277
8288
  export function updateOpacity(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, state: RendererState, update?: number): void;
8289
+ export function updateGroupTexture(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: Pick<GeometryGroupStyleComponent, 'texture' | 'topTexture'>): void;
8290
+ export function updateIndividualGeometryTexture(entity: Geometry3D, update?: Pick<StyleComponent, 'texture' | 'topTexture'>): boolean;
7278
8291
  export function updateIndividualGeometryOpacity(entity: Geometry3D, update?: number): boolean;
7279
8292
  export function updateAltitude(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: number): void;
7280
8293
  export function updateOutline(entity: Geometry3DTypes, update?: boolean): boolean;