@heycar/heycars-map 0.7.4-zone1 → 0.7.4-zone2
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/api/contants.d.ts +1 -0
- package/dist/hooks/useHeycarMap.d.ts +2 -2
- package/dist/hooks/useMapLngLatToVw.d.ts +14 -5
- package/dist/hooks/useMapRecomendPlace.d.ts +1 -1
- package/dist/hooks-business/useBusinessAlarm.d.ts +12 -0
- package/dist/index.cjs +196 -122
- package/dist/index.d.ts +1 -0
- package/dist/index.js +196 -122
- package/package.json +1 -1
package/dist/api/contants.d.ts
CHANGED
|
@@ -398,7 +398,7 @@ export declare const useHeycarAmap: () => {
|
|
|
398
398
|
getEvents(): Record<string, any[]>;
|
|
399
399
|
} | undefined>;
|
|
400
400
|
mapElementRef: import("vue-demi").ShallowRef<HTMLElement | undefined>;
|
|
401
|
-
panTo: (value: [number, number]) => void
|
|
401
|
+
panTo: (value: [number, number]) => Promise<void>;
|
|
402
402
|
setMap: SetMap<{
|
|
403
403
|
_outseaDataType: string;
|
|
404
404
|
setCenter(center: [number, number] | AMap.LngLat, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
@@ -1200,7 +1200,7 @@ export declare const useHeycarMap: () => {
|
|
|
1200
1200
|
getEvents(): Record<string, any[]>;
|
|
1201
1201
|
} | undefined>;
|
|
1202
1202
|
mapElementRef: import("vue-demi").ShallowRef<HTMLElement | undefined>;
|
|
1203
|
-
panTo: (value: [number, number]) => void
|
|
1203
|
+
panTo: (value: [number, number]) => Promise<void>;
|
|
1204
1204
|
setMap: SetMap<{
|
|
1205
1205
|
_outseaDataType: string;
|
|
1206
1206
|
setCenter(center: [number, number] | AMap.LngLat, immediately?: boolean | undefined, duration?: number | undefined): void;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import type { ShallowRef } from "vue-demi";
|
|
1
3
|
import type { Point } from "../types/interface";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
interface UseMapLngLatToVwProps<M> {
|
|
5
|
+
mapRef: ShallowRef<M | undefined>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useAmapLngLatToVw: (props: UseMapLngLatToVwProps<AMap.Map>) => {
|
|
8
|
+
apiMapLngLatToVw: (point: Point) => number[];
|
|
9
|
+
apiMapDistanceVwOfPoints: (point1: Point, point2: Point) => number;
|
|
4
10
|
};
|
|
5
|
-
export declare const useGmapLngLatToVw: () => {
|
|
11
|
+
export declare const useGmapLngLatToVw: (props: UseMapLngLatToVwProps<google.maps.Map>) => {
|
|
6
12
|
apiMapLngLatToVw: (point: Point) => [number, number];
|
|
13
|
+
apiMapDistanceVwOfPoints: (point1: Point, point2: Point) => number;
|
|
7
14
|
};
|
|
8
|
-
export declare const useMapLngLatToVw: () => {
|
|
9
|
-
apiMapLngLatToVw: (point: Point) => [
|
|
15
|
+
export declare const useMapLngLatToVw: (props: UseMapLngLatToVwProps<AMap.Map | google.maps.Map>) => {
|
|
16
|
+
apiMapLngLatToVw: (point: Point) => number[];
|
|
17
|
+
apiMapDistanceVwOfPoints: (point1: Point, point2: Point) => number;
|
|
10
18
|
};
|
|
19
|
+
export {};
|
|
@@ -34,7 +34,7 @@ export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
|
|
|
34
34
|
updateRecommendPlace: (place: Place) => void;
|
|
35
35
|
updatePlaceCandidates: (place: Place) => Promise<void>;
|
|
36
36
|
updatePlace: (value: Point) => void;
|
|
37
|
-
setPlaceCandidatesAndZone: ({ zone, places }: RecommendZonePlaces) => void;
|
|
37
|
+
setPlaceCandidatesAndZone: ({ zone, places: inputPlaceCandidates, }: RecommendZonePlaces) => void;
|
|
38
38
|
};
|
|
39
39
|
export declare const useGmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>) => {
|
|
40
40
|
zoneRef: Ref<Zone | undefined>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface useBusinessAlarmProps {
|
|
2
|
+
emptyPlaceName: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const useBusinessAlarm: (props?: useBusinessAlarmProps) => {
|
|
5
|
+
place: {
|
|
6
|
+
lng: number;
|
|
7
|
+
lat: number;
|
|
8
|
+
name: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
geoError: import("vue").Ref<GeolocationPositionError | undefined>;
|
|
12
|
+
};
|