@heycar/heycars-map 2.15.0-domestic5 → 2.15.5-drivingCorrect

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 (84) hide show
  1. package/README.md +37 -49
  2. package/dist/v2/Demo/DemoBusinessRecomendPlace.js +1 -2
  3. package/dist/v2/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
  4. package/dist/v2/Demo/DemoBusinessTaxiEnd.js +2 -9
  5. package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -4
  6. package/dist/v2/Demo/DemoBusinessTaxiService.js +1 -19
  7. package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
  8. package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +1 -2
  9. package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +1 -1
  10. package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
  11. package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
  12. package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +1 -1
  13. package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
  14. package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
  15. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
  16. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
  17. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
  18. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -80
  19. package/dist/v2/chunks/{BusinessRecomendPlaceMap.51ef1e3d.js → BusinessRecomendPlaceMap.ed4b75d5.js} +5 -9
  20. package/dist/{v3/chunks/Loading.4b53c31f.js → v2/chunks/Loading.70dfc720.js} +30 -34
  21. package/dist/v2/components/Loading/Loading.js +1 -1
  22. package/dist/v2/components/Loading/index.js +1 -1
  23. package/dist/v2/components/MapProvider/MapProvider.d.ts +1 -3
  24. package/dist/v2/components/MapProvider/MapProvider.js +13 -25
  25. package/dist/v2/hooks/useMapCoordinatify.d.ts +1 -2
  26. package/dist/v2/hooks/useMapCoordinatify.js +1 -6
  27. package/dist/v2/hooks/useMapFitView.js +3 -0
  28. package/dist/v2/hooks/useMapLoader.js +3 -3
  29. package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
  30. package/dist/v2/index.js +1 -1
  31. package/dist/v2/types/interface.d.ts +0 -12
  32. package/dist/v2/utils/geometryPolygon.d.ts +0 -9
  33. package/dist/v2/utils/geometryPolygon.js +0 -19
  34. package/dist/v2/utils/log.js +1 -1
  35. package/dist/v2/utils/platform.d.ts +1 -3
  36. package/dist/v2/utils/platform.js +2 -8
  37. package/dist/v2/utils/typeChecking.d.ts +1 -7
  38. package/dist/v2/utils/typeChecking.js +0 -18
  39. package/dist/v3/Demo/DemoBusinessRecomendPlace.js +1 -2
  40. package/dist/v3/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
  41. package/dist/v3/Demo/DemoBusinessTaxiEnd.js +2 -9
  42. package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -4
  43. package/dist/v3/Demo/DemoBusinessTaxiService.js +1 -19
  44. package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
  45. package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +1 -2
  46. package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +1 -1
  47. package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
  48. package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
  49. package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +1 -1
  50. package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
  51. package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
  52. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
  53. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
  54. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
  55. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -62
  56. package/dist/v3/chunks/{BusinessRecomendPlaceMap.4e383d44.js → BusinessRecomendPlaceMap.4ec9353a.js} +5 -7
  57. package/dist/{v2/chunks/Loading.8aa3aad3.js → v3/chunks/Loading.4c949ec9.js} +27 -47
  58. package/dist/v3/components/Loading/Loading.js +1 -1
  59. package/dist/v3/components/Loading/index.js +1 -1
  60. package/dist/v3/components/MapProvider/MapProvider.d.ts +1 -3
  61. package/dist/v3/components/MapProvider/MapProvider.js +14 -26
  62. package/dist/v3/hooks/useMapCoordinatify.d.ts +1 -2
  63. package/dist/v3/hooks/useMapCoordinatify.js +1 -6
  64. package/dist/v3/hooks/useMapFitView.js +3 -0
  65. package/dist/v3/hooks/useMapLoader.js +3 -3
  66. package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
  67. package/dist/v3/index.js +1 -1
  68. package/dist/v3/types/interface.d.ts +0 -12
  69. package/dist/v3/utils/geometryPolygon.d.ts +0 -9
  70. package/dist/v3/utils/geometryPolygon.js +0 -19
  71. package/dist/v3/utils/log.js +1 -1
  72. package/dist/v3/utils/platform.d.ts +1 -3
  73. package/dist/v3/utils/platform.js +2 -8
  74. package/dist/v3/utils/typeChecking.d.ts +1 -7
  75. package/dist/v3/utils/typeChecking.js +0 -18
  76. package/package.json +1 -1
  77. package/dist/v2/Demo/demo.data.mock.d.ts +0 -4
  78. package/dist/v2/Demo/demo.data.mock.js +0 -1194
  79. package/dist/v2/business-components/TaxiCar/RandomCars.d.ts +0 -6
  80. package/dist/v2/business-components/TaxiCar/RandomCars.js +0 -47
  81. package/dist/v3/Demo/demo.data.mock.d.ts +0 -4
  82. package/dist/v3/Demo/demo.data.mock.js +0 -1194
  83. package/dist/v3/business-components/TaxiCar/RandomCars.d.ts +0 -8
  84. package/dist/v3/business-components/TaxiCar/RandomCars.js +0 -45
@@ -1,6 +0,0 @@
1
- import type { Point } from "../../types/interface";
2
- interface RandomCarsProps {
3
- center: Point;
4
- }
5
- export declare const RandomCars: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<RandomCarsProps>, 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<RandomCarsProps, Required<RandomCarsProps>>, never, RandomCarsProps>;
6
- export {};
@@ -1,47 +0,0 @@
1
- import { h } from "vue";
2
- import { computed } from "vue-demi";
3
- import { defineSetup } from "../../types/helper.js";
4
- import { TaxiCar } from "./TaxiCar.js";
5
- const RANDOM_CARS_RADIUS = 300;
6
- const RANDOM_CARS_COUNT = 2;
7
- const createRandomPoint = (center, radius) => {
8
- const [lng, lat] = center;
9
- const R_EARTH_METERS = 6371e3;
10
- const randomAngle = Math.random() * 2 * Math.PI;
11
- const randomRadiusInMeters = radius * Math.sqrt(Math.random());
12
- const dx = randomRadiusInMeters * Math.cos(randomAngle);
13
- const dy = randomRadiusInMeters * Math.sin(randomAngle);
14
- const dLat = dy / R_EARTH_METERS;
15
- const centerLatRadians = lat * (Math.PI / 180);
16
- const dLng = dx / (R_EARTH_METERS * Math.cos(centerLatRadians));
17
- return [lng + dLng * (180 / Math.PI), lat + dLat * (180 / Math.PI)];
18
- };
19
- const useRandomCars = (center) => {
20
- return computed(() => {
21
- return Array.from({
22
- length: RANDOM_CARS_COUNT
23
- }).map(() => {
24
- const position = createRandomPoint(center, RANDOM_CARS_RADIUS);
25
- const angle = Math.random() * 360;
26
- return {
27
- position,
28
- angle
29
- };
30
- });
31
- });
32
- };
33
- const RandomCars = defineSetup("RandomCars", function(props) {
34
- const {
35
- center
36
- } = props;
37
- const randomCarsRef = useRandomCars(center);
38
- return () => h("div", [randomCarsRef.value.map((car) => h(TaxiCar, {
39
- "attrs": {
40
- "position": car.position,
41
- "angle": car.angle
42
- }
43
- }))]);
44
- });
45
- export {
46
- RandomCars
47
- };
@@ -1,4 +0,0 @@
1
- import type { CoordinateExternalRoute, CoordinatePoint } from "../types/interface";
2
- export declare const mockPath: CoordinatePoint[];
3
- export declare const mockExternalRoute: CoordinateExternalRoute;
4
- export declare const mockConfirmedPath: CoordinatePoint[];