venue-js 1.0.0-next.1 → 1.0.0
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 +24 -24
- package/dist/index.d.ts +24 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ 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 from 'maptalks';
|
|
6
|
-
import { Coordinate, Map, MapViewType, MapAnimationOptionsType, HandlerFn, EventParams, MapPaddingType, Extent
|
|
7
|
-
import {
|
|
6
|
+
import { Coordinate, Map, MapViewType, MapAnimationOptionsType, HandlerFn, EventParams, MapPaddingType, Extent } from 'maptalks';
|
|
7
|
+
import { ThreeLayer, BaseObject } from 'maptalks.three';
|
|
8
8
|
import { ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
9
9
|
import { SpriteMaterial, AmbientLight, DirectionalLight } from 'three';
|
|
10
10
|
|
|
@@ -715,7 +715,7 @@ declare class RendererManager extends EventTarget {
|
|
|
715
715
|
private elementsByOrdinal;
|
|
716
716
|
constructor(map: maptalks.Map, options: RendererManagerOptions);
|
|
717
717
|
set dataClient(value: any);
|
|
718
|
-
getElementsByOrdinal: (ordinal: number) =>
|
|
718
|
+
getElementsByOrdinal: (ordinal: number) => any[];
|
|
719
719
|
changeLevelByOrdinal(targetOrdinal: null | number | number[]): void;
|
|
720
720
|
createMarker(coordinate: Position, ordinal: number, label: string): void;
|
|
721
721
|
}
|
|
@@ -871,12 +871,12 @@ declare class IndoorMap extends EventTarget {
|
|
|
871
871
|
* Change Level & animate to path / geometry / view / etc.
|
|
872
872
|
* ================================== */
|
|
873
873
|
changeLevelByOrdinal(ordinal: number | number[]): void;
|
|
874
|
-
getFeatureExtent: (feature: any, scaleFactor?: number) =>
|
|
875
|
-
getExtentCenter: (extent: Extent) =>
|
|
874
|
+
getFeatureExtent: (feature: any, scaleFactor?: number) => any;
|
|
875
|
+
getExtentCenter: (extent: Extent) => any;
|
|
876
876
|
getExtentZoom: (extent: Extent, options?: {
|
|
877
877
|
isFraction?: boolean;
|
|
878
878
|
padding?: MapPaddingType;
|
|
879
|
-
}) =>
|
|
879
|
+
}) => any;
|
|
880
880
|
findVenueInView: () => {
|
|
881
881
|
venueId: string;
|
|
882
882
|
distance: number;
|
|
@@ -942,10 +942,10 @@ declare class IndoorMap extends EventTarget {
|
|
|
942
942
|
/**
|
|
943
943
|
* Other functions
|
|
944
944
|
*/
|
|
945
|
-
enableClick: () =>
|
|
946
|
-
disableClick: () =>
|
|
947
|
-
freeze: () =>
|
|
948
|
-
unfreeze: () =>
|
|
945
|
+
enableClick: () => any;
|
|
946
|
+
disableClick: () => any;
|
|
947
|
+
freeze: () => any;
|
|
948
|
+
unfreeze: () => any;
|
|
949
949
|
/**
|
|
950
950
|
* render (frame)
|
|
951
951
|
*/
|
|
@@ -956,8 +956,8 @@ declare class IndoorMap extends EventTarget {
|
|
|
956
956
|
right: number;
|
|
957
957
|
bottom: number;
|
|
958
958
|
};
|
|
959
|
-
}) =>
|
|
960
|
-
setMaxExtent(extent: Extent):
|
|
959
|
+
}) => any;
|
|
960
|
+
setMaxExtent(extent: Extent): any;
|
|
961
961
|
render(): void;
|
|
962
962
|
}
|
|
963
963
|
|
|
@@ -1038,22 +1038,22 @@ declare function styledFeatureGenerator(mapTheme: any): {
|
|
|
1038
1038
|
createVenue: (feature: any) => any;
|
|
1039
1039
|
createLevel: (feature: any) => any;
|
|
1040
1040
|
createUnit: (feature: any) => any;
|
|
1041
|
-
createMarker: (feature: any) =>
|
|
1042
|
-
createOriginMarker: (feature: any) =>
|
|
1043
|
-
createDestinationPinMarker: (feature: any, mapConfig: any) =>
|
|
1044
|
-
createDestinationLogoMarker: (feature: any, mapConfig?: {}) =>
|
|
1045
|
-
createUserLocationMarker: (feature: any) =>
|
|
1046
|
-
createLastUserLocationMarker: (feature: any) =>
|
|
1047
|
-
createHighlightOccupantMarker: (feature: any, mapConfig: any) =>
|
|
1048
|
-
createHighlight2DAmenityMarkerFrom3DMarker: (feature: any, mapConfig: any) =>
|
|
1041
|
+
createMarker: (feature: any) => any;
|
|
1042
|
+
createOriginMarker: (feature: any) => any;
|
|
1043
|
+
createDestinationPinMarker: (feature: any, mapConfig: any) => any;
|
|
1044
|
+
createDestinationLogoMarker: (feature: any, mapConfig?: {}) => any;
|
|
1045
|
+
createUserLocationMarker: (feature: any) => any;
|
|
1046
|
+
createLastUserLocationMarker: (feature: any) => any;
|
|
1047
|
+
createHighlightOccupantMarker: (feature: any, mapConfig: any) => any;
|
|
1048
|
+
createHighlight2DAmenityMarkerFrom3DMarker: (feature: any, mapConfig: any) => any;
|
|
1049
1049
|
createKiosk: (feature: any) => any;
|
|
1050
1050
|
createSection: (feature: any) => any;
|
|
1051
|
-
createOccupant: (feature: any, location: any, mapConfig: any) =>
|
|
1052
|
-
createOpening: (feature: any) =>
|
|
1051
|
+
createOccupant: (feature: any, location: any, mapConfig: any) => any;
|
|
1052
|
+
createOpening: (feature: any) => any;
|
|
1053
1053
|
createFixture: (feature: any) => any;
|
|
1054
|
-
createLineStringFromGeometries: (geometries: any) =>
|
|
1054
|
+
createLineStringFromGeometries: (geometries: any) => any;
|
|
1055
1055
|
create3DStepPath: (feature: any, threeLayer: any, option?: {}) => NavigationPath;
|
|
1056
|
-
createDecoration: (decoration: any, options: any) =>
|
|
1056
|
+
createDecoration: (decoration: any, options: any) => any;
|
|
1057
1057
|
/** Three JS */
|
|
1058
1058
|
create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
|
|
1059
1059
|
create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ 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 from 'maptalks';
|
|
6
|
-
import { Coordinate, Map, MapViewType, MapAnimationOptionsType, HandlerFn, EventParams, MapPaddingType, Extent
|
|
7
|
-
import {
|
|
6
|
+
import { Coordinate, Map, MapViewType, MapAnimationOptionsType, HandlerFn, EventParams, MapPaddingType, Extent } from 'maptalks';
|
|
7
|
+
import { ThreeLayer, BaseObject } from 'maptalks.three';
|
|
8
8
|
import { ExtrudePolygonOptionType } from 'maptalks.three/dist/type';
|
|
9
9
|
import { SpriteMaterial, AmbientLight, DirectionalLight } from 'three';
|
|
10
10
|
|
|
@@ -715,7 +715,7 @@ declare class RendererManager extends EventTarget {
|
|
|
715
715
|
private elementsByOrdinal;
|
|
716
716
|
constructor(map: maptalks.Map, options: RendererManagerOptions);
|
|
717
717
|
set dataClient(value: any);
|
|
718
|
-
getElementsByOrdinal: (ordinal: number) =>
|
|
718
|
+
getElementsByOrdinal: (ordinal: number) => any[];
|
|
719
719
|
changeLevelByOrdinal(targetOrdinal: null | number | number[]): void;
|
|
720
720
|
createMarker(coordinate: Position, ordinal: number, label: string): void;
|
|
721
721
|
}
|
|
@@ -871,12 +871,12 @@ declare class IndoorMap extends EventTarget {
|
|
|
871
871
|
* Change Level & animate to path / geometry / view / etc.
|
|
872
872
|
* ================================== */
|
|
873
873
|
changeLevelByOrdinal(ordinal: number | number[]): void;
|
|
874
|
-
getFeatureExtent: (feature: any, scaleFactor?: number) =>
|
|
875
|
-
getExtentCenter: (extent: Extent) =>
|
|
874
|
+
getFeatureExtent: (feature: any, scaleFactor?: number) => any;
|
|
875
|
+
getExtentCenter: (extent: Extent) => any;
|
|
876
876
|
getExtentZoom: (extent: Extent, options?: {
|
|
877
877
|
isFraction?: boolean;
|
|
878
878
|
padding?: MapPaddingType;
|
|
879
|
-
}) =>
|
|
879
|
+
}) => any;
|
|
880
880
|
findVenueInView: () => {
|
|
881
881
|
venueId: string;
|
|
882
882
|
distance: number;
|
|
@@ -942,10 +942,10 @@ declare class IndoorMap extends EventTarget {
|
|
|
942
942
|
/**
|
|
943
943
|
* Other functions
|
|
944
944
|
*/
|
|
945
|
-
enableClick: () =>
|
|
946
|
-
disableClick: () =>
|
|
947
|
-
freeze: () =>
|
|
948
|
-
unfreeze: () =>
|
|
945
|
+
enableClick: () => any;
|
|
946
|
+
disableClick: () => any;
|
|
947
|
+
freeze: () => any;
|
|
948
|
+
unfreeze: () => any;
|
|
949
949
|
/**
|
|
950
950
|
* render (frame)
|
|
951
951
|
*/
|
|
@@ -956,8 +956,8 @@ declare class IndoorMap extends EventTarget {
|
|
|
956
956
|
right: number;
|
|
957
957
|
bottom: number;
|
|
958
958
|
};
|
|
959
|
-
}) =>
|
|
960
|
-
setMaxExtent(extent: Extent):
|
|
959
|
+
}) => any;
|
|
960
|
+
setMaxExtent(extent: Extent): any;
|
|
961
961
|
render(): void;
|
|
962
962
|
}
|
|
963
963
|
|
|
@@ -1038,22 +1038,22 @@ declare function styledFeatureGenerator(mapTheme: any): {
|
|
|
1038
1038
|
createVenue: (feature: any) => any;
|
|
1039
1039
|
createLevel: (feature: any) => any;
|
|
1040
1040
|
createUnit: (feature: any) => any;
|
|
1041
|
-
createMarker: (feature: any) =>
|
|
1042
|
-
createOriginMarker: (feature: any) =>
|
|
1043
|
-
createDestinationPinMarker: (feature: any, mapConfig: any) =>
|
|
1044
|
-
createDestinationLogoMarker: (feature: any, mapConfig?: {}) =>
|
|
1045
|
-
createUserLocationMarker: (feature: any) =>
|
|
1046
|
-
createLastUserLocationMarker: (feature: any) =>
|
|
1047
|
-
createHighlightOccupantMarker: (feature: any, mapConfig: any) =>
|
|
1048
|
-
createHighlight2DAmenityMarkerFrom3DMarker: (feature: any, mapConfig: any) =>
|
|
1041
|
+
createMarker: (feature: any) => any;
|
|
1042
|
+
createOriginMarker: (feature: any) => any;
|
|
1043
|
+
createDestinationPinMarker: (feature: any, mapConfig: any) => any;
|
|
1044
|
+
createDestinationLogoMarker: (feature: any, mapConfig?: {}) => any;
|
|
1045
|
+
createUserLocationMarker: (feature: any) => any;
|
|
1046
|
+
createLastUserLocationMarker: (feature: any) => any;
|
|
1047
|
+
createHighlightOccupantMarker: (feature: any, mapConfig: any) => any;
|
|
1048
|
+
createHighlight2DAmenityMarkerFrom3DMarker: (feature: any, mapConfig: any) => any;
|
|
1049
1049
|
createKiosk: (feature: any) => any;
|
|
1050
1050
|
createSection: (feature: any) => any;
|
|
1051
|
-
createOccupant: (feature: any, location: any, mapConfig: any) =>
|
|
1052
|
-
createOpening: (feature: any) =>
|
|
1051
|
+
createOccupant: (feature: any, location: any, mapConfig: any) => any;
|
|
1052
|
+
createOpening: (feature: any) => any;
|
|
1053
1053
|
createFixture: (feature: any) => any;
|
|
1054
|
-
createLineStringFromGeometries: (geometries: any) =>
|
|
1054
|
+
createLineStringFromGeometries: (geometries: any) => any;
|
|
1055
1055
|
create3DStepPath: (feature: any, threeLayer: any, option?: {}) => NavigationPath;
|
|
1056
|
-
createDecoration: (decoration: any, options: any) =>
|
|
1056
|
+
createDecoration: (decoration: any, options: any) => any;
|
|
1057
1057
|
/** Three JS */
|
|
1058
1058
|
create3DFootprint: (feature: any, threeLayer: any, options: any) => Promise<any[]>;
|
|
1059
1059
|
create3DGroundLabel: (label: any, threeLayer: any) => GroundLabel;
|