venue-js 1.2.0-next.10 → 1.2.0-next.11
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 +4 -22
- package/dist/index.d.ts +4 -22
- package/dist/index.js +44 -267
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -261
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,10 +4,10 @@ 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 } from 'maptalks-gl';
|
|
7
|
+
import { Map, Coordinate } from 'maptalks-gl';
|
|
8
8
|
import { BaseObject, ThreeLayer } from 'maptalks.three';
|
|
9
9
|
import * as maptalks from 'maptalks';
|
|
10
|
-
import { Extent,
|
|
10
|
+
import { Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
11
11
|
import { BaseObjectOptionType, ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
12
12
|
import { PolygonOptionsType } from 'maptalks/dist/geometry/Polygon';
|
|
13
13
|
import { LineStringOptionsType } from 'maptalks/dist/geometry/LineString';
|
|
@@ -891,6 +891,7 @@ declare class CameraManager {
|
|
|
891
891
|
interface IndoorMapOptions {
|
|
892
892
|
onMapReady?: () => void;
|
|
893
893
|
onMapLoading?: () => void;
|
|
894
|
+
interactions?: boolean;
|
|
894
895
|
centerCross?: boolean;
|
|
895
896
|
dataClient: VenueDataClient;
|
|
896
897
|
camera?: CameraManagerOptions;
|
|
@@ -907,10 +908,6 @@ interface ISetHighlight2DElementIdsOptions {
|
|
|
907
908
|
symbolSet?: SymbolSet;
|
|
908
909
|
defaultMarker?: boolean;
|
|
909
910
|
}
|
|
910
|
-
interface ISetHighlightElementIdsOptions {
|
|
911
|
-
highlight3DOptions?: IHighlightOptions;
|
|
912
|
-
highlight2DOptions?: ISetHighlight2DElementIdsOptions;
|
|
913
|
-
}
|
|
914
911
|
interface IMapExtrudeConfig {
|
|
915
912
|
height: number;
|
|
916
913
|
category: string;
|
|
@@ -1031,18 +1028,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1031
1028
|
}): void;
|
|
1032
1029
|
removeAnimationById(id: string): void;
|
|
1033
1030
|
clearAnimations(): void;
|
|
1034
|
-
/**
|
|
1035
|
-
* Hilighting Elements
|
|
1036
|
-
* ========================================= */
|
|
1037
|
-
setHighlightElementIds(targetElementIds: any, options?: ISetHighlightElementIdsOptions): geojson.FeatureCollection<geojson.Geometry, {
|
|
1038
|
-
[name: string]: any;
|
|
1039
|
-
}>;
|
|
1040
|
-
setHighlight2DElementIds(targetElementIds: any, options?: {}): geojson.FeatureCollection<geojson.Geometry, {
|
|
1041
|
-
[name: string]: any;
|
|
1042
|
-
}>;
|
|
1043
|
-
clearHighlightElements(): void;
|
|
1044
|
-
setHighlightedObject(targetObjectIds: any, options?: {}): void;
|
|
1045
|
-
clearHighlightObject(): void;
|
|
1046
1031
|
/**
|
|
1047
1032
|
* User Location
|
|
1048
1033
|
****************************/
|
|
@@ -1220,7 +1205,6 @@ declare const getSuitablyValueBetweenBearings: GetSuitablyValueBetweenBearings;
|
|
|
1220
1205
|
declare const getCenterFromGeometry: (geometry?: Polygon | MultiPolygon | Point | LineString) => number[] | null;
|
|
1221
1206
|
declare const createPolygonFromLineString: (geometry: any) => geojson.Position[][];
|
|
1222
1207
|
|
|
1223
|
-
declare const ALWAYS_VISIBLE_FEATURE_TYPES: string[];
|
|
1224
1208
|
declare const BASE_LAYER_NAME = "base";
|
|
1225
1209
|
declare const POI_MARKER_LAYER_NAME = "poi";
|
|
1226
1210
|
declare const MARKER_LAYER_NAME = "marker";
|
|
@@ -1232,8 +1216,6 @@ declare const USER_LOCATION_ELEMENT_ID = "user_location";
|
|
|
1232
1216
|
declare const LAST_USER_LOCATION_ELEMENT_ID_PREFIX = "last_user_location-";
|
|
1233
1217
|
declare const LOCALE_SYMBOL_KEY = "locale_symbol";
|
|
1234
1218
|
declare const DEFAULT_LOCALE = "en";
|
|
1235
|
-
declare const DEFAULT_HIGHLIGHT_OPTIONS: IHighlightOptions;
|
|
1236
|
-
declare const DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS: ISetHighlight2DElementIdsOptions;
|
|
1237
1219
|
declare const LAYERS: string[];
|
|
1238
1220
|
declare const LAYER_OPTIONS: {
|
|
1239
1221
|
base: {
|
|
@@ -1284,4 +1266,4 @@ declare const VENUE_EVENTS: {
|
|
|
1284
1266
|
VENUE_MOVEINTOVIEW: string;
|
|
1285
1267
|
};
|
|
1286
1268
|
|
|
1287
|
-
export { ALL_FEATURE_TYPES,
|
|
1269
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ 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 } from 'maptalks-gl';
|
|
7
|
+
import { Map, Coordinate } from 'maptalks-gl';
|
|
8
8
|
import { BaseObject, ThreeLayer } from 'maptalks.three';
|
|
9
9
|
import * as maptalks from 'maptalks';
|
|
10
|
-
import { Extent,
|
|
10
|
+
import { Extent, Marker, ui, LineString as LineString$1, Polygon as Polygon$1, MultiPolygon as MultiPolygon$1, MultiLineString } from 'maptalks';
|
|
11
11
|
import { BaseObjectOptionType, ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
12
12
|
import { PolygonOptionsType } from 'maptalks/dist/geometry/Polygon';
|
|
13
13
|
import { LineStringOptionsType } from 'maptalks/dist/geometry/LineString';
|
|
@@ -891,6 +891,7 @@ declare class CameraManager {
|
|
|
891
891
|
interface IndoorMapOptions {
|
|
892
892
|
onMapReady?: () => void;
|
|
893
893
|
onMapLoading?: () => void;
|
|
894
|
+
interactions?: boolean;
|
|
894
895
|
centerCross?: boolean;
|
|
895
896
|
dataClient: VenueDataClient;
|
|
896
897
|
camera?: CameraManagerOptions;
|
|
@@ -907,10 +908,6 @@ interface ISetHighlight2DElementIdsOptions {
|
|
|
907
908
|
symbolSet?: SymbolSet;
|
|
908
909
|
defaultMarker?: boolean;
|
|
909
910
|
}
|
|
910
|
-
interface ISetHighlightElementIdsOptions {
|
|
911
|
-
highlight3DOptions?: IHighlightOptions;
|
|
912
|
-
highlight2DOptions?: ISetHighlight2DElementIdsOptions;
|
|
913
|
-
}
|
|
914
911
|
interface IMapExtrudeConfig {
|
|
915
912
|
height: number;
|
|
916
913
|
category: string;
|
|
@@ -1031,18 +1028,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1031
1028
|
}): void;
|
|
1032
1029
|
removeAnimationById(id: string): void;
|
|
1033
1030
|
clearAnimations(): void;
|
|
1034
|
-
/**
|
|
1035
|
-
* Hilighting Elements
|
|
1036
|
-
* ========================================= */
|
|
1037
|
-
setHighlightElementIds(targetElementIds: any, options?: ISetHighlightElementIdsOptions): geojson.FeatureCollection<geojson.Geometry, {
|
|
1038
|
-
[name: string]: any;
|
|
1039
|
-
}>;
|
|
1040
|
-
setHighlight2DElementIds(targetElementIds: any, options?: {}): geojson.FeatureCollection<geojson.Geometry, {
|
|
1041
|
-
[name: string]: any;
|
|
1042
|
-
}>;
|
|
1043
|
-
clearHighlightElements(): void;
|
|
1044
|
-
setHighlightedObject(targetObjectIds: any, options?: {}): void;
|
|
1045
|
-
clearHighlightObject(): void;
|
|
1046
1031
|
/**
|
|
1047
1032
|
* User Location
|
|
1048
1033
|
****************************/
|
|
@@ -1220,7 +1205,6 @@ declare const getSuitablyValueBetweenBearings: GetSuitablyValueBetweenBearings;
|
|
|
1220
1205
|
declare const getCenterFromGeometry: (geometry?: Polygon | MultiPolygon | Point | LineString) => number[] | null;
|
|
1221
1206
|
declare const createPolygonFromLineString: (geometry: any) => geojson.Position[][];
|
|
1222
1207
|
|
|
1223
|
-
declare const ALWAYS_VISIBLE_FEATURE_TYPES: string[];
|
|
1224
1208
|
declare const BASE_LAYER_NAME = "base";
|
|
1225
1209
|
declare const POI_MARKER_LAYER_NAME = "poi";
|
|
1226
1210
|
declare const MARKER_LAYER_NAME = "marker";
|
|
@@ -1232,8 +1216,6 @@ declare const USER_LOCATION_ELEMENT_ID = "user_location";
|
|
|
1232
1216
|
declare const LAST_USER_LOCATION_ELEMENT_ID_PREFIX = "last_user_location-";
|
|
1233
1217
|
declare const LOCALE_SYMBOL_KEY = "locale_symbol";
|
|
1234
1218
|
declare const DEFAULT_LOCALE = "en";
|
|
1235
|
-
declare const DEFAULT_HIGHLIGHT_OPTIONS: IHighlightOptions;
|
|
1236
|
-
declare const DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS: ISetHighlight2DElementIdsOptions;
|
|
1237
1219
|
declare const LAYERS: string[];
|
|
1238
1220
|
declare const LAYER_OPTIONS: {
|
|
1239
1221
|
base: {
|
|
@@ -1284,4 +1266,4 @@ declare const VENUE_EVENTS: {
|
|
|
1284
1266
|
VENUE_MOVEINTOVIEW: string;
|
|
1285
1267
|
};
|
|
1286
1268
|
|
|
1287
|
-
export { ALL_FEATURE_TYPES,
|
|
1269
|
+
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 };
|