venue-js 1.2.0 → 1.3.0-next.2

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.
package/dist/index.d.mts CHANGED
@@ -3,16 +3,17 @@ export { QueryObserver } from '@tanstack/query-core';
3
3
  import * as geojson from 'geojson';
4
4
  import { Position, Geometry, GeoJsonProperties, Feature, Point, Polygon, MultiPolygon, LineString, GeometryCollection } from 'geojson';
5
5
  import * as maptalks_dist_core_Class from 'maptalks/dist/core/Class';
6
- import * as maptalks_dist_geo_Extent from 'maptalks/dist/geo/Extent';
7
- import { Map, Coordinate as Coordinate$1, Extent } from 'maptalks-gl';
6
+ import * as maptalks$1 from 'maptalks-gl';
7
+ import { Map, Coordinate as Coordinate$1 } from 'maptalks-gl';
8
8
  import { BaseObject, ThreeLayer } from 'maptalks.three';
9
9
  import * as maptalks from 'maptalks';
10
- import { Coordinate, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
11
- import { ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
10
+ import { Coordinate, Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
11
+ import { BaseObjectOptionType, ExtrudePolygonOptionType, ExtrudeLineOptionType } from 'maptalks.three/dist/type';
12
12
  import { PolygonOptionsType } from 'maptalks/dist/geometry/Polygon';
13
13
  import { LineStringOptionsType } from 'maptalks/dist/geometry/LineString';
14
- import { MapViewType, MapAnimationOptionsType } from 'maptalks/dist/map/Map';
15
- import { SpriteMaterial, AmbientLight, DirectionalLight } from 'three';
14
+ import { MapViewType, MapAnimationOptionsType, MapPaddingType } from 'maptalks/dist/map/Map';
15
+ import * as THREE from 'three';
16
+ import { SpriteMaterial } from 'three';
16
17
 
17
18
  type Id = string;
18
19
  type MediaFile = {
@@ -149,7 +150,8 @@ type LevelFeature = ImdfFeature<LevelGeometry, LevelProperties>;
149
150
  type OccupantGeometry = null;
150
151
  type OccupantProperties = EntityTimestamps & {
151
152
  anchor_id: Id;
152
- category: string;
153
+ category: string | null;
154
+ category_group: string | null;
153
155
  cover_image: Media | null;
154
156
  description: TransalatableString;
155
157
  featured_image: Media | null;
@@ -183,6 +185,7 @@ type OccupantProperties = EntityTimestamps & {
183
185
  kiosk_ids: Id[];
184
186
  unit_ids: Id[];
185
187
  website_link: string | null;
188
+ show_name_on_all_units: boolean;
186
189
  };
187
190
  type OccupantFeature = ImdfFeature<OccupantGeometry, OccupantProperties>;
188
191
  type OpeningGeometry = LineString;
@@ -326,10 +329,7 @@ type PrivilegeProperties = {
326
329
  venue_id: Id;
327
330
  };
328
331
  type PrivilegeFeature = ImdfFeature<PrivilegeGeometry, PrivilegeProperties>;
329
- type LabelGeometry = {
330
- geometry_type: string;
331
- cooordinates: Position[][];
332
- };
332
+ type LabelGeometry = Polygon;
333
333
  type LabelProperties = {
334
334
  name: string;
335
335
  ordinal: number;
@@ -337,12 +337,7 @@ type LabelProperties = {
337
337
  angle: number;
338
338
  fontSize: number;
339
339
  };
340
- type LabelFeature = {
341
- type: "Feature";
342
- geometry: LabelGeometry;
343
- id: Id;
344
- properties: LabelProperties;
345
- };
340
+ type LabelFeature = ImdfFeature<LabelGeometry, LabelProperties>;
346
341
  type ElementGeometry = null;
347
342
  type ElementProperties = EntityTimestamps & {
348
343
  geometries: Array<{
@@ -399,6 +394,29 @@ type Page = {
399
394
  id: Id;
400
395
  attributes: Record<string, unknown>;
401
396
  };
397
+ type Model3dGeometry = null;
398
+ type Model3dProperties = {
399
+ name: {
400
+ en: string;
401
+ };
402
+ model: string;
403
+ level_id: null;
404
+ project_id: string;
405
+ rotation_x: number;
406
+ rotation_y: number;
407
+ rotation_z: number;
408
+ center: number[];
409
+ scale: number;
410
+ altitude: 0;
411
+ translation_x: number;
412
+ translation_y: number;
413
+ translation_z: number;
414
+ createdAt: string;
415
+ updatedAt: string;
416
+ publishedAt: string;
417
+ locale: string;
418
+ };
419
+ type Model3dFeature = ImdfFeature<Model3dGeometry, Model3dProperties>;
402
420
  type FeatureResponseMap = {
403
421
  address: ImdfFeature;
404
422
  amenity: AmenityFeature;
@@ -422,6 +440,7 @@ type FeatureResponseMap = {
422
440
  promotion: PromotionFeature;
423
441
  label: LabelFeature;
424
442
  element: ElementFeature;
443
+ model3d: Model3dFeature;
425
444
  "sponsored-content": SponsoredContentFeature;
426
445
  page: Page;
427
446
  };
@@ -533,10 +552,13 @@ type OccupantFeaturePopulated = OccupantFeature & {
533
552
  * [IMDF] Occupant's position
534
553
  */
535
554
  anchor: AnchorFeaturePopulated;
555
+ ordinal: number;
536
556
  /**
537
557
  * [venue.in.th] Occupant's category
538
558
  */
539
559
  local_categories: TaxonomyFeaturePopulated[];
560
+ unit?: UnitFeaturePopulated;
561
+ kiosk?: KioskFeaturePopulated;
540
562
  /**
541
563
  * [venue.in.th] Bind correlation between units on an occupant,
542
564
  * which will be used for highlighting in the floor plan and
@@ -644,6 +666,7 @@ type FeaturePopulatedResponseMap = {
644
666
  promotion: PromotionFeature;
645
667
  label: LabelFeature;
646
668
  element: ImdfFeature;
669
+ model3d: Model3dFeature;
647
670
  "sponsored-content": SponsoredContentFeature;
648
671
  page: Page;
649
672
  };
@@ -713,8 +736,99 @@ declare const safeFetchFeature: <T extends FeatureType = FeatureType>(featureTyp
713
736
  baseUrl: string;
714
737
  }) => Promise<FeatureResponseMap[T][]>;
715
738
 
739
+ /**
740
+ * Checks if a point is a valid coordinate pair.
741
+ *
742
+ * @param point - The point to be checked.
743
+ * @return True if the point is a valid coordinate pair, false otherwise.
744
+ */
745
+ declare const isValidCoordinate: (point: Position) => boolean;
746
+ /**
747
+ * Checks if an input represents a valid polygon, which may include holes.
748
+ * The input can be a single array of coordinates for simple polygons, or
749
+ * an array of arrays of coordinates for polygons with holes.
750
+ *
751
+ * @param polygon - The input representing a polygon.
752
+ * @return True if the polygon is valid, false otherwise.
753
+ */
754
+ declare const isValidPolygonCoordinates: (polygon: Position[] | Position[][]) => boolean;
755
+ /**
756
+ * Checks if an array of polygons forms a valid MultiPolygon.
757
+ *
758
+ * @param multipolygon - The array of polygons.
759
+ * @return True if the multipolygon is valid, false otherwise.
760
+ */
761
+ declare const isValidMultiPolygonCoordinates: (multipolygon: Position[][][]) => boolean;
762
+ /**
763
+ * Checks if a set of points forms a valid LineString.
764
+ * A valid LineString must have at least two points, each point must be a valid coordinate,
765
+ * and it should not form a closed loop.
766
+ *
767
+ * @param lineString - The array of points representing a LineString.
768
+ * @return True if the LineString is valid, false otherwise.
769
+ */
770
+ declare const isValidLineStringCoordinates: (lineString: Position[]) => boolean;
771
+ declare const isValidMultiPolygon: (geometry: Exclude<Geometry, GeometryCollection>) => boolean;
772
+ declare const isValidPolygon: (geometry: Exclude<Geometry, GeometryCollection>) => boolean;
773
+ declare const isValidLineString: (geometry: Exclude<Geometry, GeometryCollection>) => boolean;
774
+ declare const isValidPoint: (geometry: Exclude<Geometry, GeometryCollection>) => boolean;
775
+
776
+ declare function matchFilter(value: Value | Value[], filter: Filter): boolean;
777
+ declare function matchFilters<T extends Record<string, any>>(item: T, filters: Filters): boolean;
778
+
779
+ declare const getOccupantMainLocation: (occupant: OccupantFeaturePopulated) => UnitFeaturePopulated | KioskFeaturePopulated;
780
+ declare const getOccupantCorrelatedLocations: (occupant: OccupantFeaturePopulated) => Array<UnitFeaturePopulated | KioskFeaturePopulated>;
781
+ type OccupantMarkerPlacementType = 'ONCE_PER_LEVEL' | 'ALL_LOCATIONS';
782
+ declare const getOccupantMarkerLocations: (occupant: OccupantFeaturePopulated, options?: {
783
+ type: OccupantMarkerPlacementType;
784
+ }) => Array<UnitFeaturePopulated | KioskFeaturePopulated>;
785
+
786
+ type occupantHelper_OccupantMarkerPlacementType = OccupantMarkerPlacementType;
787
+ declare const occupantHelper_getOccupantCorrelatedLocations: typeof getOccupantCorrelatedLocations;
788
+ declare const occupantHelper_getOccupantMainLocation: typeof getOccupantMainLocation;
789
+ declare const occupantHelper_getOccupantMarkerLocations: typeof getOccupantMarkerLocations;
790
+ declare namespace occupantHelper {
791
+ export { type occupantHelper_OccupantMarkerPlacementType as OccupantMarkerPlacementType, occupantHelper_getOccupantCorrelatedLocations as getOccupantCorrelatedLocations, occupantHelper_getOccupantMainLocation as getOccupantMainLocation, occupantHelper_getOccupantMarkerLocations as getOccupantMarkerLocations };
792
+ }
793
+
716
794
  declare const getDataClient: (options: VenueClientOptions) => VenueDataClient;
717
795
 
796
+ type TextMarkerOptions = BaseObjectOptionType & {
797
+ text?: string;
798
+ textAlign?: CanvasTextAlign;
799
+ color?: CanvasFillStrokeStyles["fillStyle"];
800
+ fontFamily?: string;
801
+ fontSize?: number;
802
+ fontWeight?: number;
803
+ background?: CanvasFillStrokeStyles["fillStyle"];
804
+ lineHeight?: number;
805
+ strokeColor?: CanvasFillStrokeStyles["strokeStyle"];
806
+ strokeWidth?: number;
807
+ strokeStyle?: CanvasLineJoin;
808
+ padding?: number;
809
+ maxWidth?: number;
810
+ scale?: number;
811
+ altitude?: number;
812
+ bottomHeight?: number;
813
+ opacity?: number | {
814
+ stops: Stop[];
815
+ };
816
+ };
817
+ declare class TextSpriteMarker extends BaseObject {
818
+ #private;
819
+ options: TextMarkerOptions;
820
+ constructor(coordinate: Coordinate, options: TextMarkerOptions, layer: ThreeLayer, properties?: Record<string, any>);
821
+ getOptions(): TextMarkerOptions;
822
+ _createSprite(): THREE.Sprite<THREE.Object3DEventMap>;
823
+ _createTextTexture(text: string, options?: TextMarkerOptions): THREE.CanvasTexture;
824
+ _updatePosition(): void;
825
+ _animation(): void;
826
+ setText(text: string): void;
827
+ setAltitude(altitude: number): this;
828
+ }
829
+
830
+ type Stop = [zoom: number, value: number];
831
+ type MapElement = maptalks.Geometry | BaseObject;
718
832
  /** 2D */
719
833
  type TypeRenderOptions<TOptionsType> = {
720
834
  default: TOptionsType;
@@ -727,29 +841,47 @@ type Element2DRendererOptions = {
727
841
  fixture?: TypeRenderOptions<PolygonOptionsType>;
728
842
  };
729
843
  /** 3D */
844
+ type CreateExtrudeLineStringOptionType = ExtrudeLineOptionType & {
845
+ color?: string;
846
+ offset?: number;
847
+ };
730
848
  type CreateExtrudePolygonOptionType = ExtrudePolygonOptionType & {
731
849
  color?: string;
732
850
  offset?: number;
733
851
  };
734
852
  type Element3DRendererOptions = {
735
- fixture?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
853
+ fixture?: {
854
+ default: CreateExtrudePolygonOptionType;
855
+ byCategory: {
856
+ water: CreateExtrudePolygonOptionType;
857
+ vegetation: CreateExtrudePolygonOptionType;
858
+ wall: CreateExtrudeLineStringOptionType;
859
+ };
860
+ };
736
861
  kiosk?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
737
862
  unit?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
738
863
  };
739
864
  /** RendererManager */
740
- type RendererManagerOptions = {
865
+ type BaseRenderManagerOptions = {
866
+ delayBeforeCreateElements?: number;
867
+ onRendererReady?: () => void;
868
+ };
869
+ type RendererManagerOptions = BaseRenderManagerOptions & {
741
870
  type: "2D";
742
871
  elements: Element2DRendererOptions;
743
- onRendererReady?: () => void;
744
- } | {
872
+ } | BaseRenderManagerOptions & {
745
873
  type: "3D";
746
874
  elements: Element3DRendererOptions;
747
- onRendererReady?: () => void;
875
+ };
876
+ type HighlightElementOptions = {
877
+ reset: boolean;
748
878
  };
749
879
 
880
+ type AnyMarkerOptions = TextMarkerOptions;
881
+
750
882
  declare class RendererManager extends EventTarget {
751
883
  #private;
752
- map: maptalks.Map;
884
+ map: maptalks$1.Map;
753
885
  options: RendererManagerOptions;
754
886
  /** Elements: Responsible for converting feature info elements and add to map */
755
887
  private elementRenderer;
@@ -759,31 +891,52 @@ declare class RendererManager extends EventTarget {
759
891
  private currentOrdinals;
760
892
  private markersMap;
761
893
  private markersByOrdinal;
762
- constructor(map: maptalks.Map, dataClient: VenueDataClient, options: RendererManagerOptions);
763
- getElementsByOrdinal: (ordinal: number) => BaseObject[] | maptalks.Geometry[];
764
- getMarkersByOrdinal: (ordinal: number) => BaseObject[] | maptalks.ui.UIMarker[];
894
+ private highlightControllers;
895
+ constructor(map: maptalks$1.Map, dataClient: VenueDataClient, options: RendererManagerOptions);
896
+ set onClickElement(func: any);
897
+ handleClickElement: (e: any) => void;
898
+ getElementsByOrdinal: (ordinal: number) => MapElement[];
765
899
  addElementsToManager: (id: any, elements: any, ordinal: any) => void;
766
- addMarkersToManager: (id: any, markers: any, ordinal: any) => void;
767
900
  changeLevelByOrdinal(targetOrdinal: null | number | number[]): void;
901
+ highlightElements: (elemIds: string[], options?: HighlightElementOptions) => void;
902
+ clearHighlightElements: () => void;
768
903
  /**
769
904
  * ========================================================================
770
905
  * Markers
771
906
  * ======================================================================== */
772
- createMarker(coordinate: Position, ordinal: number, text: string, options: any): void;
907
+ _getMarkersByOrdinal: (ordinal: number) => BaseObject[] | maptalks$1.ui.UIMarker[];
908
+ _addMarkersToManager: (id: any, markers: any, ordinal: any) => void;
909
+ createMarker(coordinate: Position, ordinal: number, text: string, options: AnyMarkerOptions): void;
773
910
  clearMarkers(): void;
774
911
  }
775
912
 
913
+ interface CameraManagerOptions {
914
+ defaultView?: MapViewType;
915
+ }
916
+ declare class CameraManager {
917
+ map: Map;
918
+ constructor(map: Map, options?: CameraManagerOptions);
919
+ /** Public methods */
920
+ getView: () => MapViewType;
921
+ setView: (value: MapViewType) => void;
922
+ animateTo: (view: MapViewType, options?: MapAnimationOptionsType, step?: (frame: any) => void) => void;
923
+ setMaxExtent(extent: Extent): Map;
924
+ getFeatureExtent: (feature: any, scaleFactor?: number) => Extent;
925
+ getExtentZoom: (extent: Extent, options?: {
926
+ isFraction?: boolean;
927
+ padding?: MapPaddingType;
928
+ }) => number;
929
+ set maxZoom(value: number);
930
+ set minZoom(value: number);
931
+ }
932
+
776
933
  interface IndoorMapOptions {
777
934
  onMapReady?: () => void;
778
935
  onMapLoading?: () => void;
936
+ interactions?: boolean;
779
937
  centerCross?: boolean;
780
938
  dataClient: VenueDataClient;
781
- camera?: {
782
- defaultCenter?: [number, number];
783
- defaultZoom?: number;
784
- defaultBearing?: number;
785
- defaultPitch?: number;
786
- };
939
+ camera?: CameraManagerOptions;
787
940
  renderer?: RendererManagerOptions;
788
941
  pixelRatio?: number;
789
942
  locale?: string;
@@ -797,10 +950,6 @@ interface ISetHighlight2DElementIdsOptions {
797
950
  symbolSet?: SymbolSet;
798
951
  defaultMarker?: boolean;
799
952
  }
800
- interface ISetHighlightElementIdsOptions {
801
- highlight3DOptions?: IHighlightOptions;
802
- highlight2DOptions?: ISetHighlight2DElementIdsOptions;
803
- }
804
953
  interface IMapExtrudeConfig {
805
954
  height: number;
806
955
  category: string;
@@ -824,7 +973,7 @@ interface IShortestPathConfig {
824
973
  interface IAllVenuesViewConfig {
825
974
  zoom?: number;
826
975
  pitch?: number;
827
- center?: Coordinate;
976
+ center?: Coordinate$1;
828
977
  bearing?: number;
829
978
  }
830
979
  interface IMapAnimation {
@@ -868,29 +1017,9 @@ interface IMapConfig {
868
1017
  prepare_steps?: IGraphFeatureOptions;
869
1018
  }
870
1019
 
871
- interface CameraManagerOptions {
872
- defaultView?: MapViewType;
873
- }
874
- declare class CameraManager {
875
- #private;
876
- map: Map;
877
- constructor(map: Map, options?: CameraManagerOptions);
878
- /** Public methods */
879
- getView: () => MapViewType;
880
- getZoom: () => number;
881
- setView: (value: MapViewType) => void;
882
- flyTo: (center: any, options?: MapAnimationOptionsType & MapViewType) => void;
883
- flyToAndZoomIn: (centerPoint: any, options?: MapAnimationOptionsType & MapViewType) => void;
884
- }
885
-
886
- type MapPaddingType = {
887
- paddingLeft: number;
888
- paddingRight: number;
889
- paddingTop: number;
890
- paddingBottom: number;
891
- };
892
1020
  declare class IndoorMap extends EventTarget {
893
1021
  #private;
1022
+ options: IndoorMapOptions;
894
1023
  map: Map | null;
895
1024
  camera: CameraManager;
896
1025
  rendererManager: RendererManager;
@@ -899,11 +1028,12 @@ declare class IndoorMap extends EventTarget {
899
1028
  onMapReady: () => void;
900
1029
  onMapLoading: () => void;
901
1030
  constructor(elementId: any, options: IndoorMapOptions);
1031
+ setOptions(options: any): void;
902
1032
  set dataClient(value: any);
903
- on(eventName: string, handler: any): void;
904
1033
  /**
905
1034
  * Events
906
1035
  */
1036
+ on(eventName: string, handler: any): void;
907
1037
  handleMapClick: ({ coordinate }: {
908
1038
  coordinate: any;
909
1039
  }) => void;
@@ -919,34 +1049,20 @@ declare class IndoorMap extends EventTarget {
919
1049
  set mapTheme(value: any);
920
1050
  get venues(): any[];
921
1051
  set detectVenueInView(value: any);
922
- get ordinals(): any[];
923
- set ordinals(value: any[]);
924
1052
  set billboards(value: any);
925
- set mapConfig(value: IMapConfig);
926
1053
  set mapDecorations(value: any);
927
- set maxZoom(value: number);
928
- set minZoom(value: number);
929
- set groundLabels(value: any);
930
1054
  set pixelRatio(value: number);
931
1055
  set onClickElement(func: any);
932
1056
  set locale(value: string);
933
1057
  handleClickElement: (e: any) => void;
934
- setCenter(center: Coordinate$1, padding?: MapPaddingType): void;
935
1058
  /**
936
1059
  * Change Level & animate to path / geometry / view / etc.
937
1060
  * ================================== */
938
1061
  changeLevelByOrdinal(ordinal: null | number | number[]): void;
939
- getFeatureExtent: (feature: any, scaleFactor?: number) => Extent;
940
- getExtentCenter: (extent: Extent) => maptalks_dist_geo_Extent.PositionType;
941
- getExtentZoom: (extent: Extent, options?: {
942
- isFraction?: boolean;
943
- padding?: MapPaddingType;
944
- }) => number;
945
1062
  findVenueInView: () => {
946
1063
  venueId: string;
947
1064
  distance: number;
948
1065
  };
949
- flyTo: (center: any, options: any) => void;
950
1066
  getLineStringBearing: (feature: any) => number;
951
1067
  addAnimations(animation: {
952
1068
  id: string;
@@ -954,18 +1070,6 @@ declare class IndoorMap extends EventTarget {
954
1070
  }): void;
955
1071
  removeAnimationById(id: string): void;
956
1072
  clearAnimations(): void;
957
- /**
958
- * Hilighting Elements
959
- * ========================================= */
960
- setHighlightElementIds(targetElementIds: any, options?: ISetHighlightElementIdsOptions): geojson.FeatureCollection<geojson.Geometry, {
961
- [name: string]: any;
962
- }>;
963
- setHighlight2DElementIds(targetElementIds: any, options?: {}): geojson.FeatureCollection<geojson.Geometry, {
964
- [name: string]: any;
965
- }>;
966
- clearHighlightElements(): void;
967
- setHighlightedObject(targetObjectIds: any, options?: {}): void;
968
- clearHighlightObject(): void;
969
1073
  /**
970
1074
  * User Location
971
1075
  ****************************/
@@ -1014,15 +1118,6 @@ declare class IndoorMap extends EventTarget {
1014
1118
  /**
1015
1119
  * render (frame)
1016
1120
  */
1017
- getTargetViewCenter: (targetView: any, options?: {
1018
- offset: {
1019
- top: number;
1020
- left: number;
1021
- right: number;
1022
- bottom: number;
1023
- };
1024
- }) => Coordinate$1;
1025
- setMaxExtent(extent: Extent): Map;
1026
1121
  render(): void;
1027
1122
  }
1028
1123
 
@@ -1033,29 +1128,6 @@ declare class Billboard extends BaseObject {
1033
1128
  #private;
1034
1129
  }
1035
1130
 
1036
- declare class GroundLabel extends BaseObject {
1037
- #private;
1038
- constructor(bound: any, options: any, layer: any);
1039
- set bearing(value: any);
1040
- get angle(): number;
1041
- get currentAngle(): number;
1042
- get text(): string;
1043
- get offsetX(): number;
1044
- get offsetY(): number;
1045
- get offset(): {
1046
- x: number;
1047
- y: number;
1048
- };
1049
- set offsetX(value: number);
1050
- set offsetY(value: number);
1051
- set angle(newAngle: number);
1052
- setOffset(offsetX: any, offsetY: any): void;
1053
- addOffset(deltaX: any, deltaY: any): void;
1054
- resetOffset(): void;
1055
- moveToPosition(targetX: any, targetY: any): void;
1056
- updateText(newText: any, options?: Record<string, unknown>): void;
1057
- }
1058
-
1059
1131
  interface IOptions {
1060
1132
  scale: number;
1061
1133
  altitude: number;
@@ -1117,19 +1189,11 @@ declare function styledFeatureGenerator(mapTheme: any): {
1117
1189
  createLineStringFromGeometries: (geometries: any) => LineString$1;
1118
1190
  create3DStepPath: (feature: any, threeLayer: any, option?: {}) => NavigationPath;
1119
1191
  createDecoration: (decoration: any, options: any) => LineString$1 | Polygon$1 | MultiPolygon$1 | MultiLineString;
1120
- /** Three JS */
1121
- create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
1122
- create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
1123
- createOccupantGroundLabel: (feature: any, location: any, mapConfig: any, threeLayer: any) => GroundLabel;
1124
1192
  create3DBillboard: (billboard: any, threeLayer: any) => Billboard;
1125
1193
  create3DAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
1126
1194
  create3DOccupantAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
1127
1195
  create3DOpeningMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
1128
- createVenue3DModel: (venue: any, threeLayer: any) => Promise<any[]>;
1129
- create3DFixture: (fixture: any, threeLayer: any) => Promise<any[]>;
1130
1196
  createExtrudedUnit: (unit: any, threeLayer: any, options: any) => any;
1131
- createAmbientLight: (config: any) => AmbientLight;
1132
- createDirectionalLight: (config: any) => DirectionalLight;
1133
1197
  };
1134
1198
  declare function getLocationByAmenity(feature: any): any;
1135
1199
  declare function getLocationByOccupant(feature: any): any;
@@ -1156,7 +1220,6 @@ declare const getSuitablyValueBetweenBearings: GetSuitablyValueBetweenBearings;
1156
1220
  declare const getCenterFromGeometry: (geometry?: Polygon | MultiPolygon | Point | LineString) => number[] | null;
1157
1221
  declare const createPolygonFromLineString: (geometry: any) => geojson.Position[][];
1158
1222
 
1159
- declare const ALWAYS_VISIBLE_FEATURE_TYPES: string[];
1160
1223
  declare const BASE_LAYER_NAME = "base";
1161
1224
  declare const POI_MARKER_LAYER_NAME = "poi";
1162
1225
  declare const MARKER_LAYER_NAME = "marker";
@@ -1168,8 +1231,6 @@ declare const USER_LOCATION_ELEMENT_ID = "user_location";
1168
1231
  declare const LAST_USER_LOCATION_ELEMENT_ID_PREFIX = "last_user_location-";
1169
1232
  declare const LOCALE_SYMBOL_KEY = "locale_symbol";
1170
1233
  declare const DEFAULT_LOCALE = "en";
1171
- declare const DEFAULT_HIGHLIGHT_OPTIONS: IHighlightOptions;
1172
- declare const DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS: ISetHighlight2DElementIdsOptions;
1173
1234
  declare const LAYERS: string[];
1174
1235
  declare const LAYER_OPTIONS: {
1175
1236
  base: {
@@ -1220,4 +1281,4 @@ declare const VENUE_EVENTS: {
1220
1281
  VENUE_MOVEINTOVIEW: string;
1221
1282
  };
1222
1283
 
1223
- export { ALL_FEATURE_TYPES, ALWAYS_VISIBLE_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, BASE_LAYER_NAME, DEFAULT_BASE_URL, DEFAULT_HIGHLIGHT_OPTIONS, DEFAULT_LOCALE, DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS, DESTINATION_MARKER_ID, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, HIGHLIGHT_LAYER_NAME, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, IndoorMap, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, LAST_USER_LOCATION_ELEMENT_ID_PREFIX, LAYERS, LAYER_FEATURE_TYPE_OBJ, LAYER_OPTIONS, LOCALE_SYMBOL_KEY, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, MARKER_LAYER_NAME, type Media, type MediaFile, type Model3d, NONIMDF_FEATURE_TYPES, ORIGIN_MARKER_ID, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, type OccupantProperties, type OpeningFeature, type OpeningFeaturePopulated, type OpeningGeometry, type OpeningProperties, POI_MARKER_LAYER_NAME, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, USER_LOCATION_ELEMENT_ID, USER_LOCATION_LAYER_NAME, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, VENUE_EVENTS, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, createPolygonFromLineString, createSpriteMaterialByLabelSymbol, createStyledUIMarkerElement, defaultFeatureQueryOptionsMap, fetchDeliveryApi, fetchPreviewApi, getBearingBetweenPoints, getCenterFromGeometry, getDataClient, getExtrudeConfigByFeature, getFeatureByLocationId, getLocationByAmenity, getLocationByFeature, getLocationByOccupant, getLocationIdByFeature, getOrdinalByLocationId, getRelatedLocationIdsByFeature, getRelatedLocationsByAmenity, getRelatedLocationsByFeature, getRelatedLocationsByOccupant, getSuitablyValueBetweenBearings, isClickableFeature, safeFetchFeature, styledFeatureGenerator };
1284
+ export { ALL_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, BASE_LAYER_NAME, DEFAULT_BASE_URL, DEFAULT_LOCALE, DESTINATION_MARKER_ID, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, HIGHLIGHT_LAYER_NAME, type IAllVenuesViewConfig, type IExtrudeConfig, type IGraphFeatureOptions, type IGraphOptions, type IHighlightOptions, IMDF_FEATURE_TYPES, type IMapAnimation, type IMapConfig, type IMapExtrudeConfig, type ISetHighlight2DElementIdsOptions, type IUnitDistanceModifier, type IVerticalGraphOptions, type Id, type ImdfFeature, IndoorMap, type IndoorMapOptions, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, LAST_USER_LOCATION_ELEMENT_ID_PREFIX, LAYERS, LAYER_FEATURE_TYPE_OBJ, LAYER_OPTIONS, LOCALE_SYMBOL_KEY, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, MARKER_LAYER_NAME, type Media, type MediaFile, type Model3d, type Model3dFeature, type Model3dGeometry, type Model3dProperties, NONIMDF_FEATURE_TYPES, ORIGIN_MARKER_ID, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, occupantHelper as OccupantHelpers, type OccupantProperties, type OpeningFeature, type OpeningFeaturePopulated, type OpeningGeometry, type OpeningProperties, POI_MARKER_LAYER_NAME, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type SymbolSet, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, type TextMarkerOptions, TextSpriteMarker, USER_LOCATION_ELEMENT_ID, USER_LOCATION_LAYER_NAME, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, VENUE_EVENTS, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, createPolygonFromLineString, createSpriteMaterialByLabelSymbol, createStyledUIMarkerElement, defaultFeatureQueryOptionsMap, fetchDeliveryApi, fetchPreviewApi, getBearingBetweenPoints, getCenterFromGeometry, getDataClient, getExtrudeConfigByFeature, getFeatureByLocationId, getLocationByAmenity, getLocationByFeature, getLocationByOccupant, getLocationIdByFeature, getOrdinalByLocationId, getRelatedLocationIdsByFeature, getRelatedLocationsByAmenity, getRelatedLocationsByFeature, getRelatedLocationsByOccupant, getSuitablyValueBetweenBearings, isClickableFeature, isValidCoordinate, isValidLineString, isValidLineStringCoordinates, isValidMultiPolygon, isValidMultiPolygonCoordinates, isValidPoint, isValidPolygon, isValidPolygonCoordinates, matchFilter, matchFilters, safeFetchFeature, styledFeatureGenerator };