@heycar/heycars-map 0.9.11 → 0.9.13
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.cjs +506 -93
- package/dist/index.js +507 -94
- package/dist/src/Demo/DemoBusinessTaxiService.d.ts +805 -560
- package/dist/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +0 -1
- package/dist/src/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
- package/dist/src/business-components/FitView/FitView.d.ts +9 -2
- package/dist/src/business-components/PassengerCircle/PassengerCircle.d.ts +825 -825
- package/dist/src/business-components/StartEndPoint/StartEndPoint.d.ts +825 -825
- package/dist/src/business-components/TaxiCar/TaxiCar.d.ts +825 -825
- package/dist/src/components/Amap/Amap.d.ts +8 -7
- package/dist/src/components/Amap/SafeAmap.d.ts +103 -0
- package/dist/src/components/MapProvider/MapProvider.d.ts +2 -1
- package/dist/src/hooks/useHeycarMap.d.ts +5 -1585
- package/dist/src/hooks/useMap.d.ts +4 -794
- package/dist/src/hooks/useMapAngle.d.ts +3 -3
- package/dist/src/hooks/useMapDrag.d.ts +3 -3
- package/dist/src/hooks/useMapFitView.d.ts +108 -108
- package/dist/src/hooks/useMapLngLatToVw.d.ts +3 -3
- package/dist/src/hooks/useMapRecomendPlace.d.ts +1 -0
- package/dist/src/hooks/useMapWheelZoomCenter.d.ts +3 -2
- package/dist/src/hooks/useMapZoom.d.ts +3 -2
- package/dist/src/hooks-business/useBusinessQuotingMap.d.ts +806 -561
- package/dist/src/hooks-business/useBusinessRecomendPlaceMap.d.ts +4 -3
- package/dist/src/hooks-business/useBusinessReselectPlaceMap.d.ts +1 -1
- package/dist/src/hooks-business/useBusinessTaxiServiceMap.d.ts +806 -561
- package/dist/src/index.d.ts +1 -0
- package/dist/src/types/interface.d.ts +4 -2
- package/dist/src/types/my.d.ts +21 -0
- package/dist/src/types/wx.d.ts +1 -0
- package/dist/src/utils/alipayPolyfill.d.ts +1 -0
- package/dist/src/utils/helper.d.ts +0 -1
- package/dist/src/utils/referenceCount.d.ts +8 -0
- package/package.json +1 -1
- package/todo.md +15 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import type { ShallowRef } from "vue-demi";
|
|
3
|
-
import type { Point } from "../types/interface";
|
|
3
|
+
import type { AmapMap, Point } from "../types/interface";
|
|
4
4
|
interface UseMapLngLatToVwProps<M> {
|
|
5
5
|
mapRef: ShallowRef<M | undefined>;
|
|
6
6
|
}
|
|
7
|
-
export declare const useAmapLngLatToVw: (props: UseMapLngLatToVwProps<
|
|
7
|
+
export declare const useAmapLngLatToVw: (props: UseMapLngLatToVwProps<AmapMap>) => {
|
|
8
8
|
apiMapLngLatToVw: (point: Point) => number[];
|
|
9
9
|
apiMapDistanceVwOfPoints: (point1: Point, point2: Point) => number;
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ export declare const useGmapLngLatToVw: (props: UseMapLngLatToVwProps<google.map
|
|
|
12
12
|
apiMapLngLatToVw: (point: Point) => [number, number];
|
|
13
13
|
apiMapDistanceVwOfPoints: (point1: Point, point2: Point) => number;
|
|
14
14
|
};
|
|
15
|
-
export declare const useMapLngLatToVw: (props: UseMapLngLatToVwProps<
|
|
15
|
+
export declare const useMapLngLatToVw: (props: UseMapLngLatToVwProps<AmapMap | google.maps.Map>) => {
|
|
16
16
|
apiMapLngLatToVw: (point: Point) => number[];
|
|
17
17
|
apiMapDistanceVwOfPoints: (point1: Point, point2: Point) => number;
|
|
18
18
|
};
|
|
@@ -32,6 +32,7 @@ export declare const useMapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>
|
|
|
32
32
|
availableRef: import("vue-demi").Ref<boolean>;
|
|
33
33
|
isElectedRef: import("vue-demi").ComputedRef<boolean>;
|
|
34
34
|
updateRecommendPlace: (place: Place) => Promise<void>;
|
|
35
|
+
updateRecommendPlaceOnlyInZone: (place: Place) => Promise<void>;
|
|
35
36
|
updatePlaceCandidates: (place: Place) => Promise<ValueOfOnChangeRecommendPlace>;
|
|
36
37
|
updatePlace: (point: Point) => Promise<void>;
|
|
37
38
|
setPlaceCandidatesAndZone: ({ zone, places: inputPlaceCandidates, }: RecommendZonePlaces) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import { Ref, ShallowRef } from "vue-demi";
|
|
3
|
-
|
|
3
|
+
import type { AmapMap } from "../types/interface";
|
|
4
|
+
interface UseWheelZoomCenterProps<M = AmapMap | google.maps.Map> {
|
|
4
5
|
mapRef: ShallowRef<M | undefined>;
|
|
5
6
|
enableRef?: Ref<boolean>;
|
|
6
7
|
}
|
|
7
|
-
export declare const useAmapWheelZoomCenter: (props: UseWheelZoomCenterProps<
|
|
8
|
+
export declare const useAmapWheelZoomCenter: (props: UseWheelZoomCenterProps<AmapMap>) => void;
|
|
8
9
|
export declare const useGmapWheelZoomCenter: (props: UseWheelZoomCenterProps<google.maps.Map>) => void;
|
|
9
10
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import { ShallowRef } from "vue-demi";
|
|
3
|
-
|
|
3
|
+
import type { AmapMap } from "../types/interface";
|
|
4
|
+
export interface UseMapZoomProps<M = AmapMap | google.maps.Map> {
|
|
4
5
|
mapRef: ShallowRef<M | undefined>;
|
|
5
6
|
defaultValue?: number;
|
|
6
7
|
onChange?: (value: number) => any;
|
|
7
8
|
}
|
|
8
|
-
export declare const useAmapZoom: (props: UseMapZoomProps<
|
|
9
|
+
export declare const useAmapZoom: (props: UseMapZoomProps<AmapMap>) => {
|
|
9
10
|
zoomRef: import("vue-demi").Ref<number>;
|
|
10
11
|
setZoom: (v: number, immediate?: boolean) => void;
|
|
11
12
|
};
|