@heycar/heycars-map 0.4.1 → 0.4.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @heycar/heycars-map
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fit view 问题
8
+
3
9
  ## 0.4.1
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  /// <reference types="google.maps" />
2
- import type { Place, Point } from "../types/interface";
2
+ import type { DriverStatus, Place, Point } from "../types/interface";
3
3
  export declare const DemoBusinessTaxiService: import("vue").DefineComponent<Readonly<{}>, {
4
4
  setMap: import("../hooks/useHeycarMap").SetMap<{
5
5
  _outseaDataType: string;
@@ -2049,6 +2049,7 @@ export declare const DemoBusinessTaxiService: import("vue").DefineComponent<Read
2049
2049
  }, {
2050
2050
  from: Partial<Place>;
2051
2051
  to: Partial<Place>;
2052
+ status: DriverStatus;
2052
2053
  }, {}, {
2053
2054
  getDriverPosition(): Promise<Point>;
2054
2055
  }, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}>;
@@ -1,46 +1,45 @@
1
- import { MapMountedProps } from "../../hooks/useMap";
2
1
  import type { MROP } from "../../hooks/useOverlay";
3
2
  import type { Place, Point } from "../../types/interface";
4
3
  import { DrivingRouteRenderProps } from "../DrivingRoute";
5
- type SectionDispatchingProps = MROP & MapMountedProps & {
4
+ type SectionDispatchingProps = Required<MROP> & {
6
5
  title: string;
7
6
  from: Place;
8
7
  };
9
- export declare const SectionDispatching: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionDispatchingProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDispatchingProps, Required<SectionDispatchingProps>>, "mapMounted", SectionDispatchingProps, {} | {}>;
10
- type SectionDriverStartServiceProps = MROP & MapMountedProps & {
8
+ export declare const SectionDispatching: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionDispatchingProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDispatchingProps, Required<SectionDispatchingProps>>, never, SectionDispatchingProps, {} | {}>;
9
+ type SectionDriverStartServiceProps = Required<MROP> & {
11
10
  passengerPosition?: Point;
12
11
  carPosition: Point;
13
12
  from: Place;
14
13
  renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
15
14
  };
16
- export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "mapMounted", SectionDriverStartServiceProps, {} | {}>;
17
- type SectionBookDispatchedProps = MROP & MapMountedProps & {
15
+ export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, never, SectionDriverStartServiceProps, {} | {}>;
16
+ type SectionBookDispatchedProps = Required<MROP> & {
18
17
  passengerPosition?: Point;
19
18
  from: Place;
20
19
  title: string;
21
20
  };
22
- export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionBookDispatchedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionBookDispatchedProps, Required<SectionBookDispatchedProps>>, "mapMounted", SectionBookDispatchedProps, {} | {}>;
23
- type SectionDriverArrivedProps = MROP & MapMountedProps & {
21
+ export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionBookDispatchedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionBookDispatchedProps, Required<SectionBookDispatchedProps>>, never, SectionBookDispatchedProps, {} | {}>;
22
+ type SectionDriverArrivedProps = Required<MROP> & {
24
23
  from: Place;
25
24
  carPosition: Point;
26
25
  passengerPosition?: Point;
27
26
  title: string;
28
27
  };
29
- export declare const SectionDriverArrived: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionDriverArrivedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverArrivedProps, Required<SectionDriverArrivedProps>>, "mapMounted", SectionDriverArrivedProps, {} | {}>;
30
- type SectionInServiceProps = MROP & MapMountedProps & {
28
+ export declare const SectionDriverArrived: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionDriverArrivedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverArrivedProps, Required<SectionDriverArrivedProps>>, never, SectionDriverArrivedProps, {} | {}>;
29
+ type SectionInServiceProps = Required<MROP> & {
31
30
  to: Place;
32
31
  carPosition: Point;
33
32
  renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
34
33
  };
35
- export declare const SectionInService: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionInServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionInServiceProps, Required<SectionInServiceProps>>, "mapMounted", SectionInServiceProps, {} | {}>;
36
- type SectionCanceledProps = MROP & MapMountedProps & {
34
+ export declare const SectionInService: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionInServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionInServiceProps, Required<SectionInServiceProps>>, never, SectionInServiceProps, {} | {}>;
35
+ type SectionCanceledProps = Required<MROP> & {
37
36
  from: Place;
38
37
  to: Place;
39
38
  };
40
- export declare const SectionCanceled: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionCanceledProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionCanceledProps, Required<SectionCanceledProps>>, "mapMounted", SectionCanceledProps, {} | {}>;
41
- export type SectionEndServiceProps = MROP & MapMountedProps & {
39
+ export declare const SectionCanceled: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionCanceledProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionCanceledProps, Required<SectionCanceledProps>>, never, SectionCanceledProps, {} | {}>;
40
+ export type SectionEndServiceProps = Required<MROP> & {
42
41
  from: Place;
43
42
  to: Place;
44
43
  };
45
- export declare const SectionEndService: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionEndServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionEndServiceProps, Required<SectionEndServiceProps>>, "mapMounted", SectionEndServiceProps, {} | {}>;
44
+ export declare const SectionEndService: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<SectionEndServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionEndServiceProps, Required<SectionEndServiceProps>>, never, SectionEndServiceProps, {} | {}>;
46
45
  export {};
@@ -1,6 +1,7 @@
1
1
  import { UseMapFitViewOutput, UseMapFitViewProps } from "../../hooks/useMapFitView";
2
2
  import type { AmapOverlay, GmapOverlay, MROP } from "../../hooks/useOverlay";
3
3
  import { VNodeChild } from "../../types/helper";
4
+ import type { RegisterOverlay } from "../../types/interface";
4
5
  type FitViewRenderProps = UseMapFitViewOutput<AmapOverlay> | UseMapFitViewOutput<GmapOverlay>;
5
6
  export interface FitViewProps extends Omit<UseMapFitViewProps, "mapRef"> {
6
7
  render?: (props: FitViewRenderProps) => VNodeChild;
@@ -8,4 +9,10 @@ export interface FitViewProps extends Omit<UseMapFitViewProps, "mapRef"> {
8
9
  export declare const FitView: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<FitViewProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<FitViewProps, Required<FitViewProps>>, never, FitViewProps, {}>;
9
10
  export type FitViewOnceProps = Required<MROP>;
10
11
  export declare const FitViewOnce: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<FitViewOnceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<FitViewOnceProps, Required<FitViewOnceProps>>, never, FitViewOnceProps, {} | {}>;
12
+ type R = RegisterOverlay<AmapOverlay> | RegisterOverlay<GmapOverlay>;
13
+ export declare function createFittableRegisterOverlay(registerOverlay: R): R;
14
+ export type KeyedFitViewProps = Required<MROP> & {
15
+ fitViewKey: string;
16
+ };
17
+ export declare const KeyedFitView: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<KeyedFitViewProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<KeyedFitViewProps, Required<KeyedFitViewProps>>, never, KeyedFitViewProps, {} | {}>;
11
18
  export {};
@@ -9,5 +9,6 @@ export interface HeycarMapProps extends Pick<GmapLoaderProps, "fallback" | "load
9
9
  mapRef?: SetMap<AMap.Map> | SetMap<google.maps.Map>;
10
10
  onDragEnd?: (value: [number, number]) => any;
11
11
  onZoomEnd?: (value: number) => any;
12
+ touchEnable?: boolean;
12
13
  }
13
14
  export declare const HeycarMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<HeycarMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<HeycarMapProps, Required<HeycarMapProps>>, "dragEnd" | "zoomEnd", HeycarMapProps, {}>;
@@ -801,8 +801,5 @@ export declare const useMap: () => MapShallowRef<{
801
801
  export interface MapMountedProps {
802
802
  onMapMounted?: () => any;
803
803
  }
804
- /**
805
- * 添加onMapMounted方法,在组件中调用
806
- * @param callback 挂载成功时的回调函数
807
- */
808
- export declare const onMapMounted: (callback: (...args: any) => any) => void;
804
+ export declare const onMapMounted: (callback: () => any) => void;
805
+ export declare const useMapMountedPromise: () => Promise<void>;