venue-js 1.2.0-next.10 → 1.2.0-next.12
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 +17 -24
- package/dist/index.d.ts +17 -24
- package/dist/index.js +69 -269
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -263
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,11 +4,11 @@ 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,
|
|
11
|
-
import { BaseObjectOptionType, ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
10
|
+
import { 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
14
|
import { MapViewType, MapAnimationOptionsType, MapPaddingType } from 'maptalks/dist/map/Map';
|
|
@@ -810,12 +810,23 @@ type Element2DRendererOptions = {
|
|
|
810
810
|
fixture?: TypeRenderOptions<PolygonOptionsType>;
|
|
811
811
|
};
|
|
812
812
|
/** 3D */
|
|
813
|
+
type CreateExtrudeLineStringOptionType = ExtrudeLineOptionType & {
|
|
814
|
+
color?: string;
|
|
815
|
+
offset?: number;
|
|
816
|
+
};
|
|
813
817
|
type CreateExtrudePolygonOptionType = ExtrudePolygonOptionType & {
|
|
814
818
|
color?: string;
|
|
815
819
|
offset?: number;
|
|
816
820
|
};
|
|
817
821
|
type Element3DRendererOptions = {
|
|
818
|
-
fixture?:
|
|
822
|
+
fixture?: {
|
|
823
|
+
default: CreateExtrudePolygonOptionType;
|
|
824
|
+
byCategory: {
|
|
825
|
+
water: CreateExtrudePolygonOptionType;
|
|
826
|
+
vegetation: CreateExtrudePolygonOptionType;
|
|
827
|
+
wall: CreateExtrudeLineStringOptionType;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
819
830
|
kiosk?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
820
831
|
unit?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
821
832
|
};
|
|
@@ -891,6 +902,7 @@ declare class CameraManager {
|
|
|
891
902
|
interface IndoorMapOptions {
|
|
892
903
|
onMapReady?: () => void;
|
|
893
904
|
onMapLoading?: () => void;
|
|
905
|
+
interactions?: boolean;
|
|
894
906
|
centerCross?: boolean;
|
|
895
907
|
dataClient: VenueDataClient;
|
|
896
908
|
camera?: CameraManagerOptions;
|
|
@@ -907,10 +919,6 @@ interface ISetHighlight2DElementIdsOptions {
|
|
|
907
919
|
symbolSet?: SymbolSet;
|
|
908
920
|
defaultMarker?: boolean;
|
|
909
921
|
}
|
|
910
|
-
interface ISetHighlightElementIdsOptions {
|
|
911
|
-
highlight3DOptions?: IHighlightOptions;
|
|
912
|
-
highlight2DOptions?: ISetHighlight2DElementIdsOptions;
|
|
913
|
-
}
|
|
914
922
|
interface IMapExtrudeConfig {
|
|
915
923
|
height: number;
|
|
916
924
|
category: string;
|
|
@@ -1031,18 +1039,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1031
1039
|
}): void;
|
|
1032
1040
|
removeAnimationById(id: string): void;
|
|
1033
1041
|
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
1042
|
/**
|
|
1047
1043
|
* User Location
|
|
1048
1044
|
****************************/
|
|
@@ -1220,7 +1216,6 @@ declare const getSuitablyValueBetweenBearings: GetSuitablyValueBetweenBearings;
|
|
|
1220
1216
|
declare const getCenterFromGeometry: (geometry?: Polygon | MultiPolygon | Point | LineString) => number[] | null;
|
|
1221
1217
|
declare const createPolygonFromLineString: (geometry: any) => geojson.Position[][];
|
|
1222
1218
|
|
|
1223
|
-
declare const ALWAYS_VISIBLE_FEATURE_TYPES: string[];
|
|
1224
1219
|
declare const BASE_LAYER_NAME = "base";
|
|
1225
1220
|
declare const POI_MARKER_LAYER_NAME = "poi";
|
|
1226
1221
|
declare const MARKER_LAYER_NAME = "marker";
|
|
@@ -1232,8 +1227,6 @@ declare const USER_LOCATION_ELEMENT_ID = "user_location";
|
|
|
1232
1227
|
declare const LAST_USER_LOCATION_ELEMENT_ID_PREFIX = "last_user_location-";
|
|
1233
1228
|
declare const LOCALE_SYMBOL_KEY = "locale_symbol";
|
|
1234
1229
|
declare const DEFAULT_LOCALE = "en";
|
|
1235
|
-
declare const DEFAULT_HIGHLIGHT_OPTIONS: IHighlightOptions;
|
|
1236
|
-
declare const DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS: ISetHighlight2DElementIdsOptions;
|
|
1237
1230
|
declare const LAYERS: string[];
|
|
1238
1231
|
declare const LAYER_OPTIONS: {
|
|
1239
1232
|
base: {
|
|
@@ -1284,4 +1277,4 @@ declare const VENUE_EVENTS: {
|
|
|
1284
1277
|
VENUE_MOVEINTOVIEW: string;
|
|
1285
1278
|
};
|
|
1286
1279
|
|
|
1287
|
-
export { ALL_FEATURE_TYPES,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ 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,
|
|
11
|
-
import { BaseObjectOptionType, ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
10
|
+
import { 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
14
|
import { MapViewType, MapAnimationOptionsType, MapPaddingType } from 'maptalks/dist/map/Map';
|
|
@@ -810,12 +810,23 @@ type Element2DRendererOptions = {
|
|
|
810
810
|
fixture?: TypeRenderOptions<PolygonOptionsType>;
|
|
811
811
|
};
|
|
812
812
|
/** 3D */
|
|
813
|
+
type CreateExtrudeLineStringOptionType = ExtrudeLineOptionType & {
|
|
814
|
+
color?: string;
|
|
815
|
+
offset?: number;
|
|
816
|
+
};
|
|
813
817
|
type CreateExtrudePolygonOptionType = ExtrudePolygonOptionType & {
|
|
814
818
|
color?: string;
|
|
815
819
|
offset?: number;
|
|
816
820
|
};
|
|
817
821
|
type Element3DRendererOptions = {
|
|
818
|
-
fixture?:
|
|
822
|
+
fixture?: {
|
|
823
|
+
default: CreateExtrudePolygonOptionType;
|
|
824
|
+
byCategory: {
|
|
825
|
+
water: CreateExtrudePolygonOptionType;
|
|
826
|
+
vegetation: CreateExtrudePolygonOptionType;
|
|
827
|
+
wall: CreateExtrudeLineStringOptionType;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
819
830
|
kiosk?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
820
831
|
unit?: TypeRenderOptions<CreateExtrudePolygonOptionType>;
|
|
821
832
|
};
|
|
@@ -891,6 +902,7 @@ declare class CameraManager {
|
|
|
891
902
|
interface IndoorMapOptions {
|
|
892
903
|
onMapReady?: () => void;
|
|
893
904
|
onMapLoading?: () => void;
|
|
905
|
+
interactions?: boolean;
|
|
894
906
|
centerCross?: boolean;
|
|
895
907
|
dataClient: VenueDataClient;
|
|
896
908
|
camera?: CameraManagerOptions;
|
|
@@ -907,10 +919,6 @@ interface ISetHighlight2DElementIdsOptions {
|
|
|
907
919
|
symbolSet?: SymbolSet;
|
|
908
920
|
defaultMarker?: boolean;
|
|
909
921
|
}
|
|
910
|
-
interface ISetHighlightElementIdsOptions {
|
|
911
|
-
highlight3DOptions?: IHighlightOptions;
|
|
912
|
-
highlight2DOptions?: ISetHighlight2DElementIdsOptions;
|
|
913
|
-
}
|
|
914
922
|
interface IMapExtrudeConfig {
|
|
915
923
|
height: number;
|
|
916
924
|
category: string;
|
|
@@ -1031,18 +1039,6 @@ declare class IndoorMap extends EventTarget {
|
|
|
1031
1039
|
}): void;
|
|
1032
1040
|
removeAnimationById(id: string): void;
|
|
1033
1041
|
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
1042
|
/**
|
|
1047
1043
|
* User Location
|
|
1048
1044
|
****************************/
|
|
@@ -1220,7 +1216,6 @@ declare const getSuitablyValueBetweenBearings: GetSuitablyValueBetweenBearings;
|
|
|
1220
1216
|
declare const getCenterFromGeometry: (geometry?: Polygon | MultiPolygon | Point | LineString) => number[] | null;
|
|
1221
1217
|
declare const createPolygonFromLineString: (geometry: any) => geojson.Position[][];
|
|
1222
1218
|
|
|
1223
|
-
declare const ALWAYS_VISIBLE_FEATURE_TYPES: string[];
|
|
1224
1219
|
declare const BASE_LAYER_NAME = "base";
|
|
1225
1220
|
declare const POI_MARKER_LAYER_NAME = "poi";
|
|
1226
1221
|
declare const MARKER_LAYER_NAME = "marker";
|
|
@@ -1232,8 +1227,6 @@ declare const USER_LOCATION_ELEMENT_ID = "user_location";
|
|
|
1232
1227
|
declare const LAST_USER_LOCATION_ELEMENT_ID_PREFIX = "last_user_location-";
|
|
1233
1228
|
declare const LOCALE_SYMBOL_KEY = "locale_symbol";
|
|
1234
1229
|
declare const DEFAULT_LOCALE = "en";
|
|
1235
|
-
declare const DEFAULT_HIGHLIGHT_OPTIONS: IHighlightOptions;
|
|
1236
|
-
declare const DEFAULT_SET_HIGHLIGHT_2DELEMENT_IDS_OPTIONS: ISetHighlight2DElementIdsOptions;
|
|
1237
1230
|
declare const LAYERS: string[];
|
|
1238
1231
|
declare const LAYER_OPTIONS: {
|
|
1239
1232
|
base: {
|
|
@@ -1284,4 +1277,4 @@ declare const VENUE_EVENTS: {
|
|
|
1284
1277
|
VENUE_MOVEINTOVIEW: string;
|
|
1285
1278
|
};
|
|
1286
1279
|
|
|
1287
|
-
export { ALL_FEATURE_TYPES,
|
|
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 };
|