venue-js 1.2.0-next.12 → 1.2.0-next.14
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 +27 -41
- package/dist/index.d.ts +27 -41
- package/dist/index.js +1120 -618
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1114 -614
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,14 +4,15 @@ 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
6
|
import * as maptalks$1 from 'maptalks-gl';
|
|
7
|
-
import { Map, Coordinate } 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 { Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
10
|
+
import { Coordinate, Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
11
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
14
|
import { MapViewType, MapAnimationOptionsType, MapPaddingType } from 'maptalks/dist/map/Map';
|
|
15
|
+
import * as THREE from 'three';
|
|
15
16
|
import { SpriteMaterial } from 'three';
|
|
16
17
|
|
|
17
18
|
type Id = string;
|
|
@@ -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;
|
|
@@ -327,10 +329,7 @@ type PrivilegeProperties = {
|
|
|
327
329
|
venue_id: Id;
|
|
328
330
|
};
|
|
329
331
|
type PrivilegeFeature = ImdfFeature<PrivilegeGeometry, PrivilegeProperties>;
|
|
330
|
-
type LabelGeometry =
|
|
331
|
-
geometry_type: string;
|
|
332
|
-
cooordinates: Position[][];
|
|
333
|
-
};
|
|
332
|
+
type LabelGeometry = Polygon;
|
|
334
333
|
type LabelProperties = {
|
|
335
334
|
name: string;
|
|
336
335
|
ordinal: number;
|
|
@@ -338,12 +337,7 @@ type LabelProperties = {
|
|
|
338
337
|
angle: number;
|
|
339
338
|
fontSize: number;
|
|
340
339
|
};
|
|
341
|
-
type LabelFeature =
|
|
342
|
-
type: "Feature";
|
|
343
|
-
geometry: LabelGeometry;
|
|
344
|
-
id: Id;
|
|
345
|
-
properties: LabelProperties;
|
|
346
|
-
};
|
|
340
|
+
type LabelFeature = ImdfFeature<LabelGeometry, LabelProperties>;
|
|
347
341
|
type ElementGeometry = null;
|
|
348
342
|
type ElementProperties = EntityTimestamps & {
|
|
349
343
|
geometries: Array<{
|
|
@@ -795,6 +789,18 @@ type TextMarkerOptions = BaseObjectOptionType & {
|
|
|
795
789
|
stops: Stop[];
|
|
796
790
|
};
|
|
797
791
|
};
|
|
792
|
+
declare class TextSpriteMarker extends BaseObject {
|
|
793
|
+
#private;
|
|
794
|
+
options: TextMarkerOptions;
|
|
795
|
+
constructor(coordinate: Coordinate, options: TextMarkerOptions, layer: ThreeLayer, properties?: Record<string, any>);
|
|
796
|
+
getOptions(): TextMarkerOptions;
|
|
797
|
+
_createSprite(): THREE.Sprite<THREE.Object3DEventMap>;
|
|
798
|
+
_createTextTexture(text: string, options?: TextMarkerOptions): THREE.CanvasTexture;
|
|
799
|
+
_updatePosition(): void;
|
|
800
|
+
_animation(): void;
|
|
801
|
+
setText(text: string): void;
|
|
802
|
+
setAltitude(altitude: number): this;
|
|
803
|
+
}
|
|
798
804
|
|
|
799
805
|
type Stop = [zoom: number, value: number];
|
|
800
806
|
type MapElement = maptalks.Geometry | BaseObject;
|
|
@@ -942,7 +948,7 @@ interface IShortestPathConfig {
|
|
|
942
948
|
interface IAllVenuesViewConfig {
|
|
943
949
|
zoom?: number;
|
|
944
950
|
pitch?: number;
|
|
945
|
-
center?: Coordinate;
|
|
951
|
+
center?: Coordinate$1;
|
|
946
952
|
bearing?: number;
|
|
947
953
|
}
|
|
948
954
|
interface IMapAnimation {
|
|
@@ -997,6 +1003,7 @@ declare class IndoorMap extends EventTarget {
|
|
|
997
1003
|
onMapReady: () => void;
|
|
998
1004
|
onMapLoading: () => void;
|
|
999
1005
|
constructor(elementId: any, options: IndoorMapOptions);
|
|
1006
|
+
setOptions(options: any): void;
|
|
1000
1007
|
set dataClient(value: any);
|
|
1001
1008
|
/**
|
|
1002
1009
|
* Events
|
|
@@ -1019,7 +1026,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1019
1026
|
set detectVenueInView(value: any);
|
|
1020
1027
|
set billboards(value: any);
|
|
1021
1028
|
set mapDecorations(value: any);
|
|
1022
|
-
set groundLabels(value: any);
|
|
1023
1029
|
set pixelRatio(value: number);
|
|
1024
1030
|
set onClickElement(func: any);
|
|
1025
1031
|
set locale(value: string);
|
|
@@ -1090,6 +1096,11 @@ declare class IndoorMap extends EventTarget {
|
|
|
1090
1096
|
render(): void;
|
|
1091
1097
|
}
|
|
1092
1098
|
|
|
1099
|
+
declare class PulsingMarker extends BaseObject {
|
|
1100
|
+
constructor(coordinate: any, options: any, material: any, layer: any);
|
|
1101
|
+
_animation(): void;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1093
1104
|
declare class Billboard extends BaseObject {
|
|
1094
1105
|
constructor(coordinate: any, options: any, src: any, layer: any, properties: any);
|
|
1095
1106
|
properties: any;
|
|
@@ -1097,29 +1108,6 @@ declare class Billboard extends BaseObject {
|
|
|
1097
1108
|
#private;
|
|
1098
1109
|
}
|
|
1099
1110
|
|
|
1100
|
-
declare class GroundLabel extends BaseObject {
|
|
1101
|
-
#private;
|
|
1102
|
-
constructor(bound: any, options: any, layer: any);
|
|
1103
|
-
set bearing(value: any);
|
|
1104
|
-
get angle(): number;
|
|
1105
|
-
get currentAngle(): number;
|
|
1106
|
-
get text(): string;
|
|
1107
|
-
get offsetX(): number;
|
|
1108
|
-
get offsetY(): number;
|
|
1109
|
-
get offset(): {
|
|
1110
|
-
x: number;
|
|
1111
|
-
y: number;
|
|
1112
|
-
};
|
|
1113
|
-
set offsetX(value: number);
|
|
1114
|
-
set offsetY(value: number);
|
|
1115
|
-
set angle(newAngle: number);
|
|
1116
|
-
setOffset(offsetX: any, offsetY: any): void;
|
|
1117
|
-
addOffset(deltaX: any, deltaY: any): void;
|
|
1118
|
-
resetOffset(): void;
|
|
1119
|
-
moveToPosition(targetX: any, targetY: any): void;
|
|
1120
|
-
updateText(newText: any, options?: Record<string, unknown>): void;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
1111
|
interface IOptions {
|
|
1124
1112
|
scale: number;
|
|
1125
1113
|
altitude: number;
|
|
@@ -1183,8 +1171,6 @@ declare function styledFeatureGenerator(mapTheme: any): {
|
|
|
1183
1171
|
createDecoration: (decoration: any, options: any) => LineString$1 | Polygon$1 | MultiPolygon$1 | MultiLineString;
|
|
1184
1172
|
/** Three JS */
|
|
1185
1173
|
create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
|
|
1186
|
-
create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
|
|
1187
|
-
createOccupantGroundLabel: (feature: any, location: any, mapConfig: any, threeLayer: any) => GroundLabel;
|
|
1188
1174
|
create3DBillboard: (billboard: any, threeLayer: any) => Billboard;
|
|
1189
1175
|
create3DAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
|
1190
1176
|
create3DOccupantAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
|
@@ -1277,4 +1263,4 @@ declare const VENUE_EVENTS: {
|
|
|
1277
1263
|
VENUE_MOVEINTOVIEW: string;
|
|
1278
1264
|
};
|
|
1279
1265
|
|
|
1280
|
-
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, 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, 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 };
|
|
1266
|
+
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, 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, PulsingMarker, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,15 @@ 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
6
|
import * as maptalks$1 from 'maptalks-gl';
|
|
7
|
-
import { Map, Coordinate } 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 { Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
10
|
+
import { Coordinate, Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
11
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
14
|
import { MapViewType, MapAnimationOptionsType, MapPaddingType } from 'maptalks/dist/map/Map';
|
|
15
|
+
import * as THREE from 'three';
|
|
15
16
|
import { SpriteMaterial } from 'three';
|
|
16
17
|
|
|
17
18
|
type Id = string;
|
|
@@ -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;
|
|
@@ -327,10 +329,7 @@ type PrivilegeProperties = {
|
|
|
327
329
|
venue_id: Id;
|
|
328
330
|
};
|
|
329
331
|
type PrivilegeFeature = ImdfFeature<PrivilegeGeometry, PrivilegeProperties>;
|
|
330
|
-
type LabelGeometry =
|
|
331
|
-
geometry_type: string;
|
|
332
|
-
cooordinates: Position[][];
|
|
333
|
-
};
|
|
332
|
+
type LabelGeometry = Polygon;
|
|
334
333
|
type LabelProperties = {
|
|
335
334
|
name: string;
|
|
336
335
|
ordinal: number;
|
|
@@ -338,12 +337,7 @@ type LabelProperties = {
|
|
|
338
337
|
angle: number;
|
|
339
338
|
fontSize: number;
|
|
340
339
|
};
|
|
341
|
-
type LabelFeature =
|
|
342
|
-
type: "Feature";
|
|
343
|
-
geometry: LabelGeometry;
|
|
344
|
-
id: Id;
|
|
345
|
-
properties: LabelProperties;
|
|
346
|
-
};
|
|
340
|
+
type LabelFeature = ImdfFeature<LabelGeometry, LabelProperties>;
|
|
347
341
|
type ElementGeometry = null;
|
|
348
342
|
type ElementProperties = EntityTimestamps & {
|
|
349
343
|
geometries: Array<{
|
|
@@ -795,6 +789,18 @@ type TextMarkerOptions = BaseObjectOptionType & {
|
|
|
795
789
|
stops: Stop[];
|
|
796
790
|
};
|
|
797
791
|
};
|
|
792
|
+
declare class TextSpriteMarker extends BaseObject {
|
|
793
|
+
#private;
|
|
794
|
+
options: TextMarkerOptions;
|
|
795
|
+
constructor(coordinate: Coordinate, options: TextMarkerOptions, layer: ThreeLayer, properties?: Record<string, any>);
|
|
796
|
+
getOptions(): TextMarkerOptions;
|
|
797
|
+
_createSprite(): THREE.Sprite<THREE.Object3DEventMap>;
|
|
798
|
+
_createTextTexture(text: string, options?: TextMarkerOptions): THREE.CanvasTexture;
|
|
799
|
+
_updatePosition(): void;
|
|
800
|
+
_animation(): void;
|
|
801
|
+
setText(text: string): void;
|
|
802
|
+
setAltitude(altitude: number): this;
|
|
803
|
+
}
|
|
798
804
|
|
|
799
805
|
type Stop = [zoom: number, value: number];
|
|
800
806
|
type MapElement = maptalks.Geometry | BaseObject;
|
|
@@ -942,7 +948,7 @@ interface IShortestPathConfig {
|
|
|
942
948
|
interface IAllVenuesViewConfig {
|
|
943
949
|
zoom?: number;
|
|
944
950
|
pitch?: number;
|
|
945
|
-
center?: Coordinate;
|
|
951
|
+
center?: Coordinate$1;
|
|
946
952
|
bearing?: number;
|
|
947
953
|
}
|
|
948
954
|
interface IMapAnimation {
|
|
@@ -997,6 +1003,7 @@ declare class IndoorMap extends EventTarget {
|
|
|
997
1003
|
onMapReady: () => void;
|
|
998
1004
|
onMapLoading: () => void;
|
|
999
1005
|
constructor(elementId: any, options: IndoorMapOptions);
|
|
1006
|
+
setOptions(options: any): void;
|
|
1000
1007
|
set dataClient(value: any);
|
|
1001
1008
|
/**
|
|
1002
1009
|
* Events
|
|
@@ -1019,7 +1026,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1019
1026
|
set detectVenueInView(value: any);
|
|
1020
1027
|
set billboards(value: any);
|
|
1021
1028
|
set mapDecorations(value: any);
|
|
1022
|
-
set groundLabels(value: any);
|
|
1023
1029
|
set pixelRatio(value: number);
|
|
1024
1030
|
set onClickElement(func: any);
|
|
1025
1031
|
set locale(value: string);
|
|
@@ -1090,6 +1096,11 @@ declare class IndoorMap extends EventTarget {
|
|
|
1090
1096
|
render(): void;
|
|
1091
1097
|
}
|
|
1092
1098
|
|
|
1099
|
+
declare class PulsingMarker extends BaseObject {
|
|
1100
|
+
constructor(coordinate: any, options: any, material: any, layer: any);
|
|
1101
|
+
_animation(): void;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1093
1104
|
declare class Billboard extends BaseObject {
|
|
1094
1105
|
constructor(coordinate: any, options: any, src: any, layer: any, properties: any);
|
|
1095
1106
|
properties: any;
|
|
@@ -1097,29 +1108,6 @@ declare class Billboard extends BaseObject {
|
|
|
1097
1108
|
#private;
|
|
1098
1109
|
}
|
|
1099
1110
|
|
|
1100
|
-
declare class GroundLabel extends BaseObject {
|
|
1101
|
-
#private;
|
|
1102
|
-
constructor(bound: any, options: any, layer: any);
|
|
1103
|
-
set bearing(value: any);
|
|
1104
|
-
get angle(): number;
|
|
1105
|
-
get currentAngle(): number;
|
|
1106
|
-
get text(): string;
|
|
1107
|
-
get offsetX(): number;
|
|
1108
|
-
get offsetY(): number;
|
|
1109
|
-
get offset(): {
|
|
1110
|
-
x: number;
|
|
1111
|
-
y: number;
|
|
1112
|
-
};
|
|
1113
|
-
set offsetX(value: number);
|
|
1114
|
-
set offsetY(value: number);
|
|
1115
|
-
set angle(newAngle: number);
|
|
1116
|
-
setOffset(offsetX: any, offsetY: any): void;
|
|
1117
|
-
addOffset(deltaX: any, deltaY: any): void;
|
|
1118
|
-
resetOffset(): void;
|
|
1119
|
-
moveToPosition(targetX: any, targetY: any): void;
|
|
1120
|
-
updateText(newText: any, options?: Record<string, unknown>): void;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
1111
|
interface IOptions {
|
|
1124
1112
|
scale: number;
|
|
1125
1113
|
altitude: number;
|
|
@@ -1183,8 +1171,6 @@ declare function styledFeatureGenerator(mapTheme: any): {
|
|
|
1183
1171
|
createDecoration: (decoration: any, options: any) => LineString$1 | Polygon$1 | MultiPolygon$1 | MultiLineString;
|
|
1184
1172
|
/** Three JS */
|
|
1185
1173
|
create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
|
|
1186
|
-
create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
|
|
1187
|
-
createOccupantGroundLabel: (feature: any, location: any, mapConfig: any, threeLayer: any) => GroundLabel;
|
|
1188
1174
|
create3DBillboard: (billboard: any, threeLayer: any) => Billboard;
|
|
1189
1175
|
create3DAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
|
1190
1176
|
create3DOccupantAmenityMarker: (feature: any, threeLayer: any, config: any) => SpriteMarker;
|
|
@@ -1277,4 +1263,4 @@ declare const VENUE_EVENTS: {
|
|
|
1277
1263
|
VENUE_MOVEINTOVIEW: string;
|
|
1278
1264
|
};
|
|
1279
1265
|
|
|
1280
|
-
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, 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, 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 };
|
|
1266
|
+
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, 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, PulsingMarker, 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 };
|