@heycar/heycars-map 0.2.10 → 0.2.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.
Files changed (29) hide show
  1. package/dist/Demo/DemoBusinessTaxiService.d.ts +2054 -1
  2. package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -1
  3. package/dist/business-components/DrivingLine/DrivingLine.d.ts +2 -1
  4. package/dist/business-components/DrivingRoute/DrivingRoute.d.ts +2 -1
  5. package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +2 -1
  6. package/dist/business-components/StartEndPoint/StartEndPoint.d.ts +2 -1
  7. package/dist/business-components/TaxiCar/TaxiCar.d.ts +2 -1
  8. package/dist/business-components/WalkingLine/WalkingLine.d.ts +2 -1
  9. package/dist/business-components/WalkingRoute/WalkingRoute.d.ts +2 -1
  10. package/dist/business-components/WaveCircle/WaveCircle.d.ts +2 -1
  11. package/dist/hooks-business/useBusinessRecomendPlaceMap.d.ts +2 -2
  12. package/dist/index.cjs +38 -38
  13. package/dist/index.js +1424 -1364
  14. package/package.json +1 -1
  15. package/src/App.tsx +3 -3
  16. package/src/Demo/DemoBusinessRecomendPlace.tsx +9 -30
  17. package/src/Demo/DemoBusinessTaxiService.tsx +53 -27
  18. package/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.tsx +7 -3
  19. package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +106 -28
  20. package/src/business-components/DrivingLine/DrivingLine.tsx +4 -1
  21. package/src/business-components/DrivingRoute/DrivingRoute.tsx +4 -1
  22. package/src/business-components/PlaceCircle/PlaceCircle.tsx +4 -1
  23. package/src/business-components/StartEndPoint/StartEndPoint.tsx +9 -6
  24. package/src/business-components/TaxiCar/TaxiCar.tsx +4 -1
  25. package/src/business-components/WalkingLine/WalkingLine.tsx +4 -1
  26. package/src/business-components/WalkingRoute/WalkingRoute.tsx +4 -1
  27. package/src/business-components/WaveCircle/WaveCircle.tsx +4 -1
  28. package/src/hooks-business/useBusinessRecomendPlaceMap.ts +5 -5
  29. package/todo.md +1 -3
@@ -8,7 +8,7 @@ export type SectionEndServiceProps = MROP & MapLogProps & MapMountedProps & {
8
8
  to: Place;
9
9
  };
10
10
  export declare const SectionEndService: import("vue-demi").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, {} | {}>;
11
- export type BusinessTaxiServiceMapProps = Omit<HeycarMapProps, "center" | "zoom"> & Required<MROP> & {
11
+ export type BusinessTaxiServiceMapProps = Omit<HeycarMapProps, "center" | "zoom"> & Required<MROP> & MapLogProps & {
12
12
  from: Place;
13
13
  to: Place;
14
14
  dispatchingTitle: string;
@@ -1,4 +1,5 @@
1
- export interface DrivingLineProps {
1
+ import { MapLogProps } from "../../hooks/useMapLog";
2
+ export interface DrivingLineProps extends MapLogProps {
2
3
  done?: boolean;
3
4
  path: [number, number][];
4
5
  }
@@ -1,4 +1,5 @@
1
1
  import { UseDrivingRouteProps } from "../../hooks/useDrivingRoute";
2
+ import { MapLogProps } from "../../hooks/useMapLog";
2
3
  import { VNodeChild } from "../../types/helper";
3
4
  import type { Point } from "../../types/interface";
4
5
  export type DrivingRouteRenderProps = {
@@ -7,7 +8,7 @@ export type DrivingRouteRenderProps = {
7
8
  distance: number;
8
9
  duration: number;
9
10
  };
10
- export interface DrivingRouteProps extends UseDrivingRouteProps {
11
+ export interface DrivingRouteProps extends UseDrivingRouteProps, MapLogProps {
11
12
  render?: (props: DrivingRouteRenderProps) => VNodeChild;
12
13
  }
13
14
  export declare const ADrivingRoute: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<DrivingRouteProps>, 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<DrivingRouteProps, Required<DrivingRouteProps>>, never, DrivingRouteProps, {}>;
@@ -1,5 +1,6 @@
1
+ import { MapLogProps } from "../../hooks/useMapLog";
1
2
  import type { Point } from "../../types/interface";
2
- export interface PlaceCircleProps {
3
+ export interface PlaceCircleProps extends MapLogProps {
3
4
  position: [number, number];
4
5
  label?: string;
5
6
  textAlign?: "left" | "right";
@@ -1,5 +1,6 @@
1
+ import { MapLogProps } from "../../hooks/useMapLog";
1
2
  import type { GmapOverlay, MapRegisterOverlayProps } from "../../hooks/useOverlay";
2
- export interface StartEndPointProps<T> extends MapRegisterOverlayProps<T> {
3
+ export interface StartEndPointProps<T> extends MapRegisterOverlayProps<T>, MapLogProps {
3
4
  type: "start" | "end";
4
5
  position: [number, number];
5
6
  title?: string;
@@ -1,5 +1,6 @@
1
+ import { MapLogProps } from "../../hooks/useMapLog";
1
2
  import type { GmapOverlay, MapRegisterOverlayProps } from "../../hooks/useOverlay";
2
- export interface TaxiCarProps<T> extends MapRegisterOverlayProps<T> {
3
+ export interface TaxiCarProps<T> extends MapRegisterOverlayProps<T>, MapLogProps {
3
4
  position: [number, number];
4
5
  angle?: number;
5
6
  title?: string;
@@ -1,4 +1,5 @@
1
- export interface WalkingLineProps {
1
+ import { MapLogProps } from "../../hooks/useMapLog";
2
+ export interface WalkingLineProps extends MapLogProps {
2
3
  path: [number, number][];
3
4
  }
4
5
  export declare const AWalkingLine: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<WalkingLineProps>, 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<WalkingLineProps, Required<WalkingLineProps>>, never, WalkingLineProps, {}>;
@@ -1,10 +1,11 @@
1
+ import { MapLogProps } from "../../hooks/useMapLog";
1
2
  import { UseWalkingRouteProps } from "../../hooks/useWalkingRoute";
2
3
  import { VNodeChild } from "../../types/helper";
3
4
  import type { Point } from "../../types/interface";
4
5
  export type WalkingRouteRenderProps = {
5
6
  path: Point[];
6
7
  };
7
- export interface WalkingRouteProps extends UseWalkingRouteProps {
8
+ export interface WalkingRouteProps extends UseWalkingRouteProps, MapLogProps {
8
9
  render?: (props: WalkingRouteRenderProps) => VNodeChild;
9
10
  }
10
11
  export declare const AWalkingRoute: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<WalkingRouteProps>, 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<WalkingRouteProps, Required<WalkingRouteProps>>, never, WalkingRouteProps, {}>;
@@ -1,4 +1,5 @@
1
- export interface WaveCircleProps {
1
+ import { MapLogProps } from "../../hooks/useMapLog";
2
+ export interface WaveCircleProps extends MapLogProps {
2
3
  position: [number, number];
3
4
  }
4
5
  export declare const AWaveCircle: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<WaveCircleProps>, 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<WaveCircleProps, Required<WaveCircleProps>>, never, WaveCircleProps, {}>;
@@ -1,6 +1,6 @@
1
1
  import type { Place, Point } from "../types/interface";
2
2
  export interface BusinessRecomendPlaceContext {
3
- panTo: (value: Point) => void;
3
+ panToGeoPositionByRecomend: (value: Point) => void;
4
4
  setCenterPlaceByRecomand: (value: Point) => void;
5
5
  onChangeCenterPlace: (value: Place) => void;
6
6
  onChangeRecomendPlaces: (value: Place[]) => void;
@@ -21,7 +21,7 @@ export declare const useBusinessRecomendPlaceMap: () => {
21
21
  cityName?: string | undefined;
22
22
  countryName?: string | undefined;
23
23
  }[]>;
24
- panTo: (value: Point) => void;
24
+ panToGeoPositionByRecomend: (value: Point) => void;
25
25
  setCenterPlaceByRecomand: (value: Point) => void;
26
26
  apiMapDistance: (from: Point, to: Point) => number | undefined;
27
27
  };