@heycar/heycars-map 2.12.0-color6 → 2.13.0-relay1

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 (62) hide show
  1. package/README.md +9 -0
  2. package/dist/v2/Demo/DemoBusinessQuoting.d.ts +7 -1
  3. package/dist/v2/Demo/DemoBusinessQuoting.js +60 -30
  4. package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -0
  5. package/dist/v2/Demo/DemoBusinessTaxiService.js +45 -23
  6. package/dist/v2/api/cdn.d.ts +1 -0
  7. package/dist/v2/api/cdn.js +3 -1
  8. package/dist/v2/api/contants.d.ts +1 -1
  9. package/dist/v2/api/contants.js +1 -1
  10. package/dist/v2/business-components/AuxiliaryGraspRoad/AuxiliaryGraspRoad.d.ts +1 -0
  11. package/dist/v2/business-components/AuxiliaryGraspRoad/AuxiliaryGraspRoad.js +6 -3
  12. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +3 -0
  13. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +27 -3
  14. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +6 -0
  15. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +125 -1
  16. package/dist/v2/business-components/PlaceCircle/PlaceCircle.js +1 -1
  17. package/dist/v2/business-components/StartEndPoint/StartEndPoint.css.d.ts +5 -0
  18. package/dist/v2/business-components/StartEndPoint/StartEndPoint.d.ts +1 -1
  19. package/dist/v2/business-components/StartEndPoint/StartEndPoint.js +10 -8
  20. package/dist/v2/business-components/TaxiCar/TaxiCar.js +1 -1
  21. package/dist/v2/chunks/{StartEndPoint.css.ca6c9719.js → StartEndPoint.css.4d9c0791.js} +4 -4
  22. package/dist/{v3/css/PlaceCircle-00817652.css → v2/css/PlaceCircle-80eb763c.css} +1 -0
  23. package/dist/v2/css/{StartEndPoint-f6a6f7d3.css → StartEndPoint-d1c9154a.css} +7 -2
  24. package/dist/v2/hooks/useDeviationCorrectionDrivingRoute.d.ts +2 -1
  25. package/dist/v2/hooks/useDeviationCorrectionDrivingRoute.js +12 -5
  26. package/dist/v2/hooks/useDrivingRoute.d.ts +4 -3
  27. package/dist/v2/hooks/useDrivingRoute.js +12 -12
  28. package/dist/v2/types/interface.d.ts +1 -1
  29. package/dist/v2/utils/compatibleDrivingRoute.d.ts +5 -5
  30. package/dist/v2/utils/compatibleDrivingRoute.js +23 -11
  31. package/dist/v2/utils/log.js +1 -1
  32. package/dist/v3/Demo/DemoBusinessQuoting.d.ts +7 -3
  33. package/dist/v3/Demo/DemoBusinessQuoting.js +62 -32
  34. package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -0
  35. package/dist/v3/Demo/DemoBusinessTaxiService.js +45 -23
  36. package/dist/v3/api/cdn.d.ts +1 -0
  37. package/dist/v3/api/cdn.js +3 -1
  38. package/dist/v3/api/contants.d.ts +1 -1
  39. package/dist/v3/api/contants.js +1 -1
  40. package/dist/v3/business-components/AuxiliaryGraspRoad/AuxiliaryGraspRoad.d.ts +1 -0
  41. package/dist/v3/business-components/AuxiliaryGraspRoad/AuxiliaryGraspRoad.js +6 -3
  42. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +3 -0
  43. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +23 -3
  44. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +10 -0
  45. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +101 -1
  46. package/dist/v3/business-components/PlaceCircle/PlaceCircle.js +1 -1
  47. package/dist/v3/business-components/StartEndPoint/StartEndPoint.css.d.ts +5 -0
  48. package/dist/v3/business-components/StartEndPoint/StartEndPoint.d.ts +1 -1
  49. package/dist/v3/business-components/StartEndPoint/StartEndPoint.js +10 -8
  50. package/dist/v3/business-components/TaxiCar/TaxiCar.js +1 -1
  51. package/dist/v3/chunks/{StartEndPoint.css.ca6c9719.js → StartEndPoint.css.4d9c0791.js} +4 -4
  52. package/dist/{v2/css/PlaceCircle-00817652.css → v3/css/PlaceCircle-80eb763c.css} +1 -0
  53. package/dist/v3/css/{StartEndPoint-f6a6f7d3.css → StartEndPoint-d1c9154a.css} +7 -2
  54. package/dist/v3/hooks/useDeviationCorrectionDrivingRoute.d.ts +2 -1
  55. package/dist/v3/hooks/useDeviationCorrectionDrivingRoute.js +12 -5
  56. package/dist/v3/hooks/useDrivingRoute.d.ts +4 -3
  57. package/dist/v3/hooks/useDrivingRoute.js +12 -12
  58. package/dist/v3/types/interface.d.ts +1 -1
  59. package/dist/v3/utils/compatibleDrivingRoute.d.ts +5 -5
  60. package/dist/v3/utils/compatibleDrivingRoute.js +23 -11
  61. package/dist/v3/utils/log.js +1 -1
  62. package/package.json +1 -1
@@ -4,7 +4,26 @@ import { BusinessTaxiServiceMap } from "../business-components/BusinessTaxiServi
4
4
  import { useBusinessTaxiServiceMap } from "../hooks-business/useBusinessTaxiServiceMap.js";
5
5
  import { isCoordinatePoint } from "../utils/typeChecking.js";
6
6
  import { l as layout, a as adjustedDemo } from "../chunks/Demo.css.e921a2f6.js";
7
- const allDriverStatus = ["dispatching", "book-dispatching", "dispatched", "driverStartService", "book-driverStartService", "book-dispatched", "driverArrived", "inService", "canceled", "endService", "completed", "canceling", "banlanceRefund", "waitBanlanceRefund", "rechargePayed", "waitRechargePay", "payed", "waitpay", "refund", "confirmed", "assign"];
7
+ const allDriverStatus = ["dispatching", "book-dispatching", "dispatched", "driverStartRelayService", "driverStartService", "book-driverStartService", "book-dispatched", "driverArrived", "inService", "canceled", "endService", "completed", "canceling", "banlanceRefund", "waitBanlanceRefund", "rechargePayed", "waitRechargePay", "payed", "waitpay", "refund", "confirmed", "assign"];
8
+ const mockDriverTrackPoints = [{
9
+ lng: 121.4036983,
10
+ lat: 31.216324,
11
+ angle: 30,
12
+ timestamp: 1698058438e3,
13
+ type: "gcj02"
14
+ }, {
15
+ lng: 121.4036983,
16
+ lat: 31.216324,
17
+ angle: 30,
18
+ timestamp: 1698058439e3,
19
+ type: "gcj02"
20
+ }, {
21
+ lng: 121.403581,
22
+ lat: 31.216415,
23
+ angle: 30,
24
+ timestamp: 1698058442e3,
25
+ type: "gcj02"
26
+ }];
8
27
  const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
9
28
  name: "DemoBusinessTaxiService",
10
29
  setup() {
@@ -19,7 +38,8 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
19
38
  return {
20
39
  from: {},
21
40
  to: {},
22
- status: "dispatched",
41
+ relayTo: {},
42
+ status: "driverStartRelayService",
23
43
  contentHeight: 200
24
44
  };
25
45
  },
@@ -37,6 +57,12 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
37
57
  type: "gcj02",
38
58
  name: "上海站"
39
59
  };
60
+ this.relayTo = {
61
+ lat: 31.209073221828284,
62
+ lng: 121.40366014486544,
63
+ type: "gcj02",
64
+ name: "上海金虹桥国际中心"
65
+ };
40
66
  }, 1e3);
41
67
  setTimeout(() => {
42
68
  this.contentHeight = 600;
@@ -46,31 +72,23 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
46
72
  const {
47
73
  value: status
48
74
  } = statusIterator.next();
49
- this.status = status;
75
+ if (status)
76
+ this.status = status;
50
77
  return status;
51
78
  };
79
+ window.addDriverPosition = (lng, lat, type, angle = 0) => {
80
+ mockDriverTrackPoints.push({
81
+ lng,
82
+ lat,
83
+ angle,
84
+ timestamp: Date.now(),
85
+ type
86
+ });
87
+ };
52
88
  },
53
89
  methods: {
54
90
  getDriverPositionTrack() {
55
- return Promise.resolve([{
56
- lng: 121.4036983,
57
- lat: 31.216324,
58
- angle: 30,
59
- timestamp: 1698058438e3,
60
- type: "gcj02"
61
- }, {
62
- lng: 121.4036983,
63
- lat: 31.216324,
64
- angle: 30,
65
- timestamp: 1698058439e3,
66
- type: "gcj02"
67
- }, {
68
- lng: 121.403581,
69
- lat: 31.216415,
70
- angle: 30,
71
- timestamp: 1698058442e3,
72
- type: "gcj02"
73
- }]);
91
+ return Promise.resolve(mockDriverTrackPoints);
74
92
  }
75
93
  },
76
94
  render() {
@@ -79,7 +97,8 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
79
97
  getDriverPositionTrack,
80
98
  from,
81
99
  to,
82
- status
100
+ status,
101
+ relayTo
83
102
  } = this;
84
103
  const isReady = isCoordinatePoint(from) && isCoordinatePoint(to);
85
104
  if (!isReady)
@@ -93,8 +112,11 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
93
112
  "class": adjustedDemo,
94
113
  "from": from,
95
114
  "to": to,
115
+ "relayTo": relayTo,
96
116
  "driverStatus": status,
117
+ "relayToTitle": "上个乘客将\n在这下车",
97
118
  "bookDispatchingTitle": "2月14日 11:00 用车",
119
+ "bookDispatchedTitle": "*6月12日 11:00* 用车",
98
120
  "dispatchingTitle": "正在为您搜索附近司机",
99
121
  "driverArrivedTitle": "司机已等待 00:35",
100
122
  "renderStartSerivceTitle": ({
@@ -6,3 +6,4 @@ export declare const ICON_END_POINT_ZH_TW_URL = "https://overseas-oss.heycars.cn
6
6
  export declare const ICON_TAXI_CAR_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/taxi-car.svg";
7
7
  export declare const ICON_DOT_LOADING_URL = "https://overseas-oss.heycars.cn/heycar-map/gif/dot-loading.gif";
8
8
  export declare const ICON_LOAD_FAILED_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/load-failed.svg";
9
+ export declare const ICON_WAYPOINT_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/waypoint.svg";
@@ -6,6 +6,7 @@ const ICON_END_POINT_ZH_TW_URL = "https://overseas-oss.heycars.cn/heycar-map/svg
6
6
  const ICON_TAXI_CAR_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/taxi-car.svg";
7
7
  const ICON_DOT_LOADING_URL = "https://overseas-oss.heycars.cn/heycar-map/gif/dot-loading.gif";
8
8
  const ICON_LOAD_FAILED_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/load-failed.svg";
9
+ const ICON_WAYPOINT_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/waypoint.svg";
9
10
  export {
10
11
  AMAP_DEFAULT_MARKER_ICON_URL,
11
12
  ICON_DOT_LOADING_URL,
@@ -14,5 +15,6 @@ export {
14
15
  ICON_FULL_SCREEN_URL,
15
16
  ICON_LOAD_FAILED_URL,
16
17
  ICON_START_POINT_EN_URL,
17
- ICON_TAXI_CAR_URL
18
+ ICON_TAXI_CAR_URL,
19
+ ICON_WAYPOINT_URL
18
20
  };
@@ -5,7 +5,7 @@ export declare const ANIMATION_DURATION_FOR_100VW = 100;
5
5
  export declare const ANIMATION_DURATION_PER_ZOOM = 200;
6
6
  export declare const BEIJIN_POINT: Point;
7
7
  export declare const MAX_DEVIATION_DISTANCE = 30;
8
- export declare const CAR_DISTANCE_MIN = 50;
8
+ export declare const CAR_DISTANCE_MIN = 20;
9
9
  export declare const ZINDEX_BUBBLE_LAYER = 50;
10
10
  export declare const ZINDEX_START_END_LOGO_LAYER = 40;
11
11
  export declare const ZINDEX_PLACE_LAYER = 30;
@@ -4,7 +4,7 @@ const ANIMATION_DURATION_FOR_100VW = 100;
4
4
  const ANIMATION_DURATION_PER_ZOOM = 200;
5
5
  const BEIJIN_POINT = [116.2317, 39.5427];
6
6
  const MAX_DEVIATION_DISTANCE = 30;
7
- const CAR_DISTANCE_MIN = 50;
7
+ const CAR_DISTANCE_MIN = 20;
8
8
  const ZINDEX_BUBBLE_LAYER = 50;
9
9
  const ZINDEX_START_END_LOGO_LAYER = 40;
10
10
  const ZINDEX_PLACE_LAYER = 30;
@@ -4,6 +4,7 @@ export interface AuxiliaryGraspRoadProps {
4
4
  trackPoints: TrackPoint[];
5
5
  from: Place;
6
6
  to: Place;
7
+ relayTo?: Place;
7
8
  }
8
9
  export declare const AuxiliaryGraspRoad: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<AuxiliaryGraspRoadProps>, 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<AuxiliaryGraspRoadProps, Required<AuxiliaryGraspRoadProps>>, never, import("vue").PublicProps, AuxiliaryGraspRoadProps, AuxiliaryGraspRoadProps, import("vue").SlotsType<{} & {
9
10
  default?: import("../../demi-polyfill").Slot | undefined;
@@ -2,7 +2,7 @@ import { createVNode } from "vue";
2
2
  import { CAR_DISTANCE_MIN, MAX_DEVIATION_DISTANCE } from "../../api/contants.js";
3
3
  import { useMapGeometry } from "../../hooks/useMapGeometry.js";
4
4
  import { defineSetup } from "../../types/helper.js";
5
- import { lnglat2point } from "../../utils/transform.js";
5
+ import { place2point, lnglat2point } from "../../utils/transform.js";
6
6
  import { AuxiliaryCircle } from "../AuxiliaryCircle/AuxiliaryCircle.js";
7
7
  import { AuxiliaryLine } from "../AuxiliaryLine/AuxiliaryLine.js";
8
8
  import { DeviationCorrectionDrivingRoute } from "../DeviationCorrectionDrivingRoute/DeviationCorrectionDrivingRoute.js";
@@ -16,11 +16,13 @@ const AuxiliaryGraspRoad = defineSetup("AuxiliaryGraspRoad", function(props) {
16
16
  trackPoints,
17
17
  status,
18
18
  to,
19
- from
19
+ from,
20
+ relayTo
20
21
  } = props;
21
- if (status !== "inService" && status !== "driverStartService" && status !== "dispatched" && status !== "book-driverStartService")
22
+ if (status !== "inService" && status !== "driverStartRelayService" && status !== "driverStartService" && status !== "dispatched" && status !== "book-driverStartService")
22
23
  return;
23
24
  const destination = status === "inService" ? to : from;
25
+ const waypoints = status === "driverStartRelayService" && relayTo ? [place2point(relayTo)] : void 0;
24
26
  const lastTrackPoint = trackPoints[trackPoints.length - 1];
25
27
  if (!destination || !lastTrackPoint)
26
28
  return;
@@ -38,6 +40,7 @@ const AuxiliaryGraspRoad = defineSetup("AuxiliaryGraspRoad", function(props) {
38
40
  }, null), distance > CAR_DISTANCE_MIN ? createVNode(DeviationCorrectionDrivingRoute, {
39
41
  "tracks": trackPoints,
40
42
  "to": lnglat2point(destination),
43
+ "waypoints": waypoints,
41
44
  "deviation": MAX_DEVIATION_DISTANCE,
42
45
  "render": ({
43
46
  path,
@@ -6,8 +6,11 @@ export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps,
6
6
  from: CoordinatePlace;
7
7
  to: CoordinatePlace;
8
8
  log?: boolean;
9
+ relayTo?: CoordinatePlace;
10
+ relayToTitle?: string;
9
11
  dispatchingTitle: string;
10
12
  bookDispatchingTitle: string;
13
+ bookDispatchedTitle?: string;
11
14
  driverArrivedTitle: string;
12
15
  driverStatus: DriverStatus;
13
16
  interval: number;
@@ -15,8 +15,8 @@ import { place2point, pipeDefer, lnglat2point } from "../../utils/transform.js";
15
15
  import { toCoordinatePlaceType, toCoordinateTrackPoint } from "../../utils/typeChecking.js";
16
16
  import { AuxiliaryGraspRoad } from "../AuxiliaryGraspRoad/AuxiliaryGraspRoad.js";
17
17
  import { DeviceOrientation } from "../DeviceOrientation/DeviceOrientation.js";
18
- import { SectionDispatching, SectionConfirmed, SectionDriverStartService, SectionBookDispatched, SectionInService, SectionDriverArrived, SectionCanceled, SectionEndService } from "./BusinessTaxiServiceSection.js";
19
- const STATUS_NEED_CAR_POSITION = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"];
18
+ import { SectionDispatching, SectionConfirmed, SectionDriverStartRelayService, SectionDriverStartService, SectionBookDispatched, SectionInService, SectionDriverArrived, SectionCanceled, SectionEndService } from "./BusinessTaxiServiceSection.js";
19
+ const STATUS_NEED_CAR_POSITION = ["book-driverStartService", "dispatched", "driverStartService", "driverStartRelayService", "inService", "driverArrived"];
20
20
  const BUSINESS_TAXI_SERVICE_FITVIEW_PANDING = [19, 36, 19, 26];
21
21
  const IS_ENABLE_AUXILIARY_GRASP_ROAD = apiGetAuxiliaryGrapStatus();
22
22
  const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", function(props, {
@@ -89,12 +89,16 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
89
89
  driverStatus,
90
90
  from: inputFrom,
91
91
  to: inputTo,
92
+ relayTo: inputRelayTo,
93
+ relayToTitle,
92
94
  dispatchingTitle,
93
95
  bookDispatchingTitle,
96
+ bookDispatchedTitle,
94
97
  driverArrivedTitle
95
98
  } = props;
96
99
  const from = unCoordinatifyPlace(toCoordinatePlaceType(inputFrom));
97
100
  const to = unCoordinatifyPlace(toCoordinatePlaceType(inputTo));
101
+ const relayTo = inputRelayTo ? unCoordinatifyPlace(toCoordinatePlaceType(inputRelayTo)) : void 0;
98
102
  const carPosition = carPositionRef.value;
99
103
  const carAngle = carAngleRef.value;
100
104
  const carTrackPositions = carTrackPositionsRef.value;
@@ -127,6 +131,21 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
127
131
  "passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
128
132
  "registerOverlay": registerOverlay
129
133
  }, null)
134
+ }, null) : driverStatus === "driverStartRelayService" ? createVNode(DeviceOrientation, {
135
+ "elementRef": mapElementRef,
136
+ "disable": !passengerPosition,
137
+ "render": (orientation) => createVNode(SectionDriverStartRelayService, {
138
+ "from": from,
139
+ "relayTo": relayTo,
140
+ "carPosition": carPosition,
141
+ "carAngle": carAngle,
142
+ "carTrackPositions": carTrackPositions,
143
+ "passengerPosition": passengerPosition,
144
+ "passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
145
+ "relayToTitle": relayToTitle,
146
+ "renderTitle": renderStartSerivceTitle,
147
+ "registerOverlay": registerOverlay
148
+ }, null)
130
149
  }, null) : driverStatus === "dispatched" || driverStatus === "driverStartService" || driverStatus === "book-driverStartService" ? createVNode(DeviceOrientation, {
131
150
  "elementRef": mapElementRef,
132
151
  "disable": !passengerPosition,
@@ -146,6 +165,7 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
146
165
  "render": (orientation) => createVNode(SectionBookDispatched, {
147
166
  "from": from,
148
167
  "to": to,
168
+ "title": bookDispatchedTitle,
149
169
  "passengerPosition": passengerPosition,
150
170
  "passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
151
171
  "registerOverlay": registerOverlay
@@ -209,7 +229,7 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
209
229
  attrs: props,
210
230
  key: `${payload.supplier}${instanceNo}`
211
231
  });
212
- }).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
232
+ }).props(["bookDispatchingTitle", "bookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "relayTo", "relayToTitle", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
213
233
  export {
214
234
  BusinessTaxiServiceMap,
215
235
  BusinessTaxiServiceMapInner
@@ -17,6 +17,15 @@ type SectionConfirmedProps = Required<MROP> & {
17
17
  export declare const SectionConfirmed: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionConfirmedProps>, 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<SectionConfirmedProps, Required<SectionConfirmedProps>>, never, import("vue").PublicProps, SectionConfirmedProps, SectionConfirmedProps, import("vue").SlotsType<{} & {
18
18
  default?: import("../../demi-polyfill").Slot | undefined;
19
19
  }>>;
20
+ interface SectionDriverStartRelayServiceProps extends SectionDriverStartServiceProps {
21
+ relayTo?: Place;
22
+ relayToTitle?: string;
23
+ }
24
+ export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, 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<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, never, import("vue").PublicProps, SectionDriverStartRelayServiceProps, SectionDriverStartRelayServiceProps, import("vue").SlotsType<{
25
+ renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
26
+ } & {
27
+ default?: import("../../demi-polyfill").Slot | undefined;
28
+ }>>;
20
29
  type SectionDriverStartServiceProps = Required<MROP> & {
21
30
  passengerPosition?: Point;
22
31
  passengerAngle?: string;
@@ -36,6 +45,7 @@ type SectionBookDispatchedProps = Required<MROP> & {
36
45
  passengerAngle?: string;
37
46
  from: Place;
38
47
  to: Place;
48
+ title?: string;
39
49
  };
40
50
  export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue").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, import("vue").PublicProps, SectionBookDispatchedProps, SectionBookDispatchedProps, import("vue").SlotsType<{} & {
41
51
  default?: import("../../demi-polyfill").Slot | undefined;
@@ -1,6 +1,6 @@
1
1
  import { createVNode } from "vue";
2
2
  import { apiGetAuxiliaryGrapStatus } from "../../api/browser.js";
3
- import { CAR_DISTANCE_MIN, MAX_DEVIATION_DISTANCE } from "../../api/contants.js";
3
+ import { MAX_DEVIATION_DISTANCE, CAR_DISTANCE_MIN } from "../../api/contants.js";
4
4
  import { useMapGeometry } from "../../hooks/useMapGeometry.js";
5
5
  import { useMapSupplier } from "../../hooks/useMapSupplier.js";
6
6
  import { defineSetup } from "../../types/helper.js";
@@ -116,6 +116,103 @@ const SectionConfirmed = defineSetup("SectionConfirmed", function(props) {
116
116
  }, null)]);
117
117
  };
118
118
  });
119
+ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayService", function(props) {
120
+ const {
121
+ registerOverlay
122
+ } = props;
123
+ const fittableRegistryOverlay = createFittableRegisterOverlay({
124
+ registerOverlay,
125
+ immediate: true
126
+ });
127
+ const {
128
+ language
129
+ } = useMapSupplier();
130
+ const {
131
+ apiMapDistance
132
+ } = useMapGeometry();
133
+ return () => {
134
+ const {
135
+ from: fromPlace,
136
+ relayTo: relayToPlace,
137
+ carPosition,
138
+ carAngle,
139
+ carTrackPositions,
140
+ passengerPosition,
141
+ passengerAngle,
142
+ relayToTitle,
143
+ renderTitle
144
+ } = props;
145
+ const from = place2point(fromPlace);
146
+ const relayTo = relayToPlace ? place2point(relayToPlace) : void 0;
147
+ const waypoints = relayTo ? [relayTo] : void 0;
148
+ const passengerDistance = passengerPosition ? apiMapDistance(passengerPosition, from) : void 0;
149
+ const carDistance = carPosition ? apiMapDistance(carPosition, from) : void 0;
150
+ return createVNode("div", null, [createVNode(ConditionalFittablePassengerCircle, {
151
+ "position": passengerPosition,
152
+ "angle": passengerAngle,
153
+ "condition": !!passengerDistance && passengerDistance < PASSENGER_DISTANCE_MAX,
154
+ "registerOverlay": registerOverlay
155
+ }, null), createVNode(StartEndPoint, {
156
+ "type": "start",
157
+ "position": from,
158
+ "registerOverlay": registerOverlay,
159
+ "language": language
160
+ }, null), createVNode(PlaceCircle, {
161
+ "position": from,
162
+ "label": fromPlace.displayName,
163
+ "hideIcon": true
164
+ }, null), !!relayTo && createVNode(StartEndPoint, {
165
+ "type": "waypoint",
166
+ "position": relayTo,
167
+ "registerOverlay": registerOverlay,
168
+ "language": language
169
+ }, null), !!relayTo && !!relayToTitle && createVNode(PlaceCircle, {
170
+ "position": relayTo,
171
+ "label": relayToTitle,
172
+ "hideIcon": true
173
+ }, null), !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : createVNode(DeviationCorrectionDrivingRoute, {
174
+ "tracks": carTrackPositions,
175
+ "to": from,
176
+ "waypoints": waypoints,
177
+ "deviation": MAX_DEVIATION_DISTANCE,
178
+ "render": ({
179
+ path,
180
+ angle,
181
+ distance,
182
+ duration,
183
+ trafficJams
184
+ }) => {
185
+ var _a;
186
+ return [relayTo ? createVNode(TrafficDrivingLine, {
187
+ "path": path,
188
+ "trafficJams": trafficJams
189
+ }, null) : null, createVNode(TaxiCar, {
190
+ "position": (_a = path[0]) != null ? _a : carPosition,
191
+ "angle": angle != null ? angle : carAngle,
192
+ "title": renderTitle({
193
+ distance,
194
+ duration
195
+ }),
196
+ "registerOverlay": fittableRegistryOverlay
197
+ }, null)];
198
+ }
199
+ }, null), !!passengerPosition && passengerDistance && passengerDistance < PASSENGER_DISTANCE_MAX && passengerDistance > PASSENGER_DISTANCE_MIN && createVNode(WalkingRoute, {
200
+ "from": passengerPosition,
201
+ "to": from,
202
+ "render": ({
203
+ path
204
+ }) => createVNode(WalkingLine, {
205
+ "path": path
206
+ }, null)
207
+ }, null), createVNode(FitViewOnce, {
208
+ "registerOverlay": registerOverlay,
209
+ "immediate": true
210
+ }, null), createVNode(InterruptableIntervalFitView, {
211
+ "interval": AUTO_FIT_VIEW_INTERVAL,
212
+ "registerOverlay": registerOverlay
213
+ }, null)]);
214
+ };
215
+ });
119
216
  const SectionDriverStartService = defineSetup("SectionDriverStartService", function(props) {
120
217
  const {
121
218
  registerOverlay
@@ -227,6 +324,7 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
227
324
  const {
228
325
  from: fromPlace,
229
326
  to: toPlace,
327
+ title,
230
328
  passengerPosition,
231
329
  passengerAngle,
232
330
  registerOverlay
@@ -261,6 +359,7 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
261
359
  "type": "start",
262
360
  "registerOverlay": registerOverlay,
263
361
  "position": from,
362
+ "title": title,
264
363
  "language": language
265
364
  }, null), createVNode(StartEndPoint, {
266
365
  "type": "end",
@@ -524,6 +623,7 @@ export {
524
623
  SectionConfirmed,
525
624
  SectionDispatching,
526
625
  SectionDriverArrived,
626
+ SectionDriverStartRelayService,
527
627
  SectionDriverStartService,
528
628
  SectionEndService,
529
629
  SectionInService
@@ -1,4 +1,4 @@
1
- import "../../css/PlaceCircle-00817652.css";
1
+ import "../../css/PlaceCircle-80eb763c.css";
2
2
  import { createVNode } from "vue";
3
3
  import { computed } from "vue-demi";
4
4
  import { ZINDEX_PLACE_LAYER } from "../../api/contants.js";
@@ -16,6 +16,11 @@ export declare const pointIcon: import("@vanilla-extract/recipes").RuntimeFn<{
16
16
  width: "6.192vw";
17
17
  height: "7.998vw";
18
18
  };
19
+ waypoint: {
20
+ marginTop: "1.33vw";
21
+ width: "6.192vw";
22
+ height: "7.998vw";
23
+ };
19
24
  };
20
25
  }>;
21
26
  export declare const textLayout: import("@vanilla-extract/recipes").RuntimeFn<{
@@ -2,7 +2,7 @@ import type { GmapOverlay, MapRegisterOverlayProps } from "../../hooks/useOverla
2
2
  import type { Language, Point } from "../../types/interface";
3
3
  export interface StartEndPointProps<T> extends MapRegisterOverlayProps<T> {
4
4
  language: Language;
5
- type: "start" | "end";
5
+ type: "start" | "end" | "waypoint";
6
6
  position: [number, number];
7
7
  title?: string;
8
8
  description?: string;
@@ -1,6 +1,6 @@
1
1
  import { createVNode } from "vue";
2
2
  import { computed } from "vue-demi";
3
- import { ICON_START_POINT_EN_URL, ICON_END_POINT_ZH_TW_URL, ICON_END_POINT_EN_URL } from "../../api/cdn.js";
3
+ import { ICON_WAYPOINT_URL, ICON_START_POINT_EN_URL, ICON_END_POINT_ZH_TW_URL, ICON_END_POINT_EN_URL } from "../../api/cdn.js";
4
4
  import { ZINDEX_START_END_LOGO_LAYER } from "../../api/contants.js";
5
5
  import { i as imgArrowRight } from "../../chunks/arrow-right.2c34874e.js";
6
6
  import { AmapMarker } from "../../components/AmapMarker/AmapMarker.js";
@@ -11,7 +11,7 @@ import { useMapSupplier } from "../../hooks/useMapSupplier.js";
11
11
  import { defineSetup } from "../../types/helper.js";
12
12
  import { createDom } from "../../utils/dom.js";
13
13
  import { decodeAsterisk, vec2lnglat } from "../../utils/transform.js";
14
- import { p as pointInfoBoxEmphasize, a as pointIcon, b as pointLayout, c as pointSingleInfoBox, d as pointInfoBoxTitle, t as textLayout, e as arrowRight, f as pointInfoBox, g as pointInfoBoxDescription } from "../../chunks/StartEndPoint.css.ca6c9719.js";
14
+ import { p as pointInfoBoxEmphasize, a as pointIcon, b as pointLayout, c as pointSingleInfoBox, d as pointInfoBoxTitle, t as textLayout, e as arrowRight, f as pointInfoBox, g as pointInfoBoxDescription } from "../../chunks/StartEndPoint.css.4d9c0791.js";
15
15
  const imgEndPoint = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyNCAzMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjcyLjMzOSUiIHkxPSI1MCUiIHgyPSIwJSIgeTI9IjUwJSIgaWQ9ImVuZC1wb2ludF9wcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9InZhcigtLUhFWUNBUl9NQVBfU1ZHX1ZBUl9lbmQtcG9pbnRfbGluZWFyR3JhZGllbnRfc3RvcF8xX2NvbG9yLCAjRkY4NDQ3KSIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9InZhcigtLUhFWUNBUl9NQVBfU1ZHX1ZBUl9lbmQtcG9pbnRfbGluZWFyR3JhZGllbnRfc3RvcF8yX2NvbG9yLCAjRkY4QjRBKSIgb2Zmc2V0PSI1MC41OTYlIi8+PHN0b3Agc3RvcC1jb2xvcj0idmFyKC0tSEVZQ0FSX01BUF9TVkdfVkFSX2VuZC1wb2ludF9saW5lYXJHcmFkaWVudF9zdG9wXzNfY29sb3IsICNGRkE5NUEpIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0idmFyKC0tSEVZQ0FSX01BUF9TVkdfVkFSX2VuZC1wb2ludF9wYXRoX2ZpbGwsICM0MzQ4NUEpIi8+PHBhdGggZD0iTTExIDI3LjAwNmMyLjEyOCAwLS45LTMuNzQzIDUuNjIxLTYuNjQzQzE5Ljg0MiAxOC40NTMgMjIgMTQuOTUzIDIyIDEwLjk1IDIyIDQuOTAyIDE3LjA3NSAwIDExIDBTMCA0LjkwMiAwIDEwLjk1YzAgMy45MTggMi4wNjggNy4zNTYgNS4xNzcgOS4yOUMxMS43NSAyMy4yODQgOS4wNiAyNy4wMDcgMTEgMjcuMDA3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI2VuZC1wb2ludF9wcmVmaXhfX2EpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSIvPjx0ZXh0IGZvbnQtZmFtaWx5PSJQaW5nRmFuZ1NDLVNlbWlib2xkLCBQaW5nRmFuZyBTQyIgZm9udC1zaXplPSIxMiIgZm9udC13ZWlnaHQ9IjUwMCIgZmlsbD0iI0ZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxLjIxNSkiPjx0c3BhbiB4PSI1IiB5PSIxNS40NDkiPue7iDwvdHNwYW4+PC90ZXh0PjwvZz48L3N2Zz4=";
16
16
  const imgStartPoint = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyNCAzMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAlIiB5MT0iNTAlIiB4Mj0iMTI5LjU5OSUiIHkyPSI1MCUiIGlkPSJzdGFydC1wb2ludF9wcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9InZhcigtLUhFWUNBUl9NQVBfU1ZHX1ZBUl9zdGFydC1wb2ludF9saW5lYXJHcmFkaWVudF9zdG9wXzFfY29sb3IsICMzNkE4RkYpIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0idmFyKC0tSEVZQ0FSX01BUF9TVkdfVkFSX3N0YXJ0LXBvaW50X2xpbmVhckdyYWRpZW50X3N0b3BfMl9jb2xvciwgIzQ4NzFGMSkiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTEyIDMwLjIxNWMxLjk1IDAgMy41MzItLjgxNiAzLjUzMi0xLjgyMyAwLTEuMDA3LTEuNTgxLTEuODIzLTMuNTMyLTEuODIzLTEuOTUgMC0zLjUzMi44MTYtMy41MzIgMS44MjMgMCAxLjAwNyAxLjU4MSAxLjgyMyAzLjUzMiAxLjgyM3oiIGZpbGwtb3BhY2l0eT0iLjUiIGZpbGw9InZhcigtLUhFWUNBUl9NQVBfU1ZHX1ZBUl9zdGFydC1wb2ludF9wYXRoX2ZpbGwsICM0MzQ4NUEpIi8+PHBhdGggZD0iTTExIDI3YzIuMTI4IDAtLjktMy43NDIgNS42MjEtNi42NDEgMy4yMjEtMS45MSA1LjM3OS01LjQxIDUuMzc5LTkuNDEyQzIyIDQuOTAxIDE3LjA3NSAwIDExIDBTMCA0LjkwMSAwIDEwLjk0N2MwIDMuOTE4IDIuMDY4IDcuMzU1IDUuMTc3IDkuMjlDMTEuNzUgMjMuMjc3IDkuMDYgMjcgMTEgMjd6IiBzdHJva2U9IiNGRkYiIGZpbGw9InVybCgjc3RhcnQtcG9pbnRfcHJlZml4X19hKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxLjIxNSkiLz48dGV4dCBmb250LWZhbWlseT0iUGluZ0ZhbmdTQy1TZW1pYm9sZCwgUGluZ0ZhbmcgU0MiIGZvbnQtc2l6ZT0iMTIiIGZvbnQtd2VpZ2h0PSI1MDAiIGZpbGw9IiNGRkYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIj48dHNwYW4geD0iNSIgeT0iMTUuNjI0Ij7otbc8L3RzcGFuPjwvdGV4dD48L2c+PC9zdmc+";
17
17
  const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
@@ -25,7 +25,8 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
25
25
  type,
26
26
  language
27
27
  } = props;
28
- const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" ? imgEndPoint : language === "zh-TW" ? ICON_END_POINT_ZH_TW_URL : ICON_END_POINT_EN_URL;
28
+ const icon = type === "waypoint" ? ICON_WAYPOINT_URL : type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" ? imgEndPoint : language === "zh-TW" ? ICON_END_POINT_ZH_TW_URL : ICON_END_POINT_EN_URL;
29
+ const titleRow = !title ? "" : decodeAsterisk(title).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
29
30
  const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
30
31
  if (!description && !title)
31
32
  return `<${SvgInlineWebComponentTag} class="AStartEndPoint ${pointIcon({
@@ -37,7 +38,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
37
38
  <div class="${pointSingleInfoBox}">
38
39
  <div class="${pointInfoBoxTitle} ${textLayout({
39
40
  withArrow
40
- })}">${title}</div>
41
+ })}">${titleRow}</div>
41
42
  <${SvgInlineWebComponentTag} class="${arrowRight({
42
43
  withArrow
43
44
  })}" src="${imgArrowRight}" ></${SvgInlineWebComponentTag}>
@@ -53,7 +54,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
53
54
  <div class="${textLayout({
54
55
  withArrow
55
56
  })}">
56
- <div class="${pointInfoBoxTitle}">${title != null ? title : ""}</div>
57
+ <div class="${pointInfoBoxTitle}">${titleRow}</div>
57
58
  <div class="${pointInfoBoxDescription}">${descriptionRow}</div>
58
59
  </div>
59
60
  <${SvgInlineWebComponentTag} class="${arrowRight({
@@ -89,7 +90,8 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
89
90
  type,
90
91
  language = "zh"
91
92
  } = props;
92
- const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" || language === "zh-TW" ? imgEndPoint : ICON_END_POINT_EN_URL;
93
+ const icon = type === "waypoint" ? ICON_WAYPOINT_URL : type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" || language === "zh-TW" ? imgEndPoint : ICON_END_POINT_EN_URL;
94
+ const titleRow = !title ? "" : decodeAsterisk(title).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
93
95
  const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
94
96
  if (!description && !title)
95
97
  return createDom(SvgInlineWebComponentTag, {
@@ -105,7 +107,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
105
107
  <div class="${pointSingleInfoBox}">
106
108
  <div class="${pointInfoBoxTitle} ${textLayout({
107
109
  withArrow
108
- })}">${title}</div>
110
+ })}">${titleRow}</div>
109
111
  <${SvgInlineWebComponentTag} class="${arrowRight({
110
112
  withArrow
111
113
  })}" src="${imgArrowRight}" ></${SvgInlineWebComponentTag}>
@@ -121,7 +123,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
121
123
  <div class="${textLayout({
122
124
  withArrow
123
125
  })}">
124
- <div class="${pointInfoBoxTitle}">${title != null ? title : ""}</div>
126
+ <div class="${pointInfoBoxTitle}">${titleRow}</div>
125
127
  <div class="${pointInfoBoxDescription}">${descriptionRow}</div>
126
128
  </div>
127
129
  <${SvgInlineWebComponentTag} class="${arrowRight({
@@ -10,7 +10,7 @@ import { useMapSupplier } from "../../hooks/useMapSupplier.js";
10
10
  import { defineSetup } from "../../types/helper.js";
11
11
  import { createDom } from "../../utils/dom.js";
12
12
  import { decodeAsterisk, vec2lnglat } from "../../utils/transform.js";
13
- import { p as pointInfoBoxEmphasize, b as pointLayout, c as pointSingleInfoBox } from "../../chunks/StartEndPoint.css.ca6c9719.js";
13
+ import { p as pointInfoBoxEmphasize, b as pointLayout, c as pointSingleInfoBox } from "../../chunks/StartEndPoint.css.4d9c0791.js";
14
14
  import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
15
15
  const TaxiCar_css_ts_vanilla = "";
16
16
  var carIcon = "_65j3sr1";
@@ -1,15 +1,15 @@
1
- import "../css/StartEndPoint-f6a6f7d3.css";
1
+ import "../css/StartEndPoint-d1c9154a.css";
2
2
  import { c as createRuntimeFn } from "./vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
3
3
  const StartEndPoint_css_ts_vanilla = "";
4
- var arrowRight = createRuntimeFn({ defaultClassName: "_4a4ovka", variantClassNames: { withArrow: { true: "_4a4ovkb", false: "_4a4ovkc" } }, defaultVariants: {}, compoundVariants: [] });
5
- var pointIcon = createRuntimeFn({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] });
4
+ var arrowRight = createRuntimeFn({ defaultClassName: "_4a4ovkb", variantClassNames: { withArrow: { true: "_4a4ovkc", false: "_4a4ovkd" } }, defaultVariants: {}, compoundVariants: [] });
5
+ var pointIcon = createRuntimeFn({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7", waypoint: "_4a4ovk8" } }, defaultVariants: {}, compoundVariants: [] });
6
6
  var pointInfoBox = "_4a4ovk1";
7
7
  var pointInfoBoxDescription = "_4a4ovk4";
8
8
  var pointInfoBoxEmphasize = "_4a4ovk5";
9
9
  var pointInfoBoxTitle = "_4a4ovk3";
10
10
  var pointLayout = "_4a4ovk0";
11
11
  var pointSingleInfoBox = "_4a4ovk2";
12
- var textLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { withArrow: { true: "_4a4ovk8", false: "_4a4ovk9" } }, defaultVariants: {}, compoundVariants: [] });
12
+ var textLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { withArrow: { true: "_4a4ovk9", false: "_4a4ovka" } }, defaultVariants: {}, compoundVariants: [] });
13
13
  export {
14
14
  pointIcon as a,
15
15
  pointLayout as b,
@@ -43,6 +43,7 @@
43
43
  -webkit-line-clamp: 2;
44
44
  -webkit-box-orient: vertical;
45
45
  overflow: hidden;
46
+ white-space: pre-line;
46
47
  }
47
48
  .fhyw8d {
48
49
  position: absolute;
@@ -59,13 +59,18 @@
59
59
  height: 7.998vw;
60
60
  }
61
61
  ._4a4ovk8 {
62
+ margin-top: 1.33vw;
63
+ width: 6.192vw;
64
+ height: 7.998vw;
65
+ }
66
+ ._4a4ovk9 {
62
67
  padding-right: 2.67vw;
63
68
  }
64
- ._4a4ovka {
69
+ ._4a4ovkb {
65
70
  width: 1.758vw;
66
71
  height: 2.93vw;
67
72
  filter: invert(1);
68
73
  }
69
- ._4a4ovkc {
74
+ ._4a4ovkd {
70
75
  display: none;
71
76
  }
@@ -2,6 +2,7 @@ import type { Point, Route, TrackPoint } from "../types/interface";
2
2
  export interface UseDeviationCorrectionDrivingRouteProps {
3
3
  tracks: TrackPoint[];
4
4
  to: Point;
5
+ waypoints?: Point[];
5
6
  deviation: number;
6
7
  }
7
8
  interface SubRoute extends Route {
@@ -46,6 +47,6 @@ export declare const useDeviationCorrectionDrivingRoute: (props?: UseDeviationCo
46
47
  trackIntersectionPathRef: import("vue-demi").Ref<Point[] | undefined>;
47
48
  routeIntersectionPathRef: import("vue-demi").Ref<Point[] | undefined>;
48
49
  extendedIntersectionPointRef: import("vue-demi").Ref<Point | undefined>;
49
- apiMapDeviationCorrectionDrivingRoute: (tracks: TrackPoint[], to: Point, deviation: number, preRoute: SubRoute) => Promise<ApiMapDeviationCorrectionDrivingRouteOutput>;
50
+ apiMapDeviationCorrectionDrivingRoute: (tracks: TrackPoint[], to: Point, deviation: number, preRoute: SubRoute, waypoints?: Point[]) => Promise<ApiMapDeviationCorrectionDrivingRouteOutput>;
50
51
  };
51
52
  export {};