@heycar/heycars-map 0.8.9 → 0.8.11
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
CHANGED
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
9
9
|
const Vue = require("vue");
|
|
10
10
|
const style = "";
|
|
11
11
|
const name = "@heycar/heycars-map";
|
|
12
|
-
const version = "0.8.
|
|
12
|
+
const version = "0.8.11";
|
|
13
13
|
const type = "module";
|
|
14
14
|
const scripts = {
|
|
15
15
|
dev: "vite -c vite.config.dev.ts",
|
|
@@ -3220,7 +3220,9 @@ const KeyedFitView = defineSetup(function KeyedFitView2(props, {
|
|
|
3220
3220
|
return Vue.h("div", [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3221
3221
|
};
|
|
3222
3222
|
});
|
|
3223
|
+
const imgEndPointEn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0xMiAzMGMyLjEzNCAwIDMuODYzLS44OTMgMy44NjMtMS45OTUgMC0xLjEtMS43My0xLjk5NC0zLjg2My0xLjk5NC0yLjEz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jaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
3225
3227
|
const StartEndPoint_css_ts_vanilla = "";
|
|
3226
3228
|
var arrowRight = createRuntimeFn({ defaultClassName: "_4a4ovka", variantClassNames: { withArrow: { true: "_4a4ovkb", false: "_4a4ovkc" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -3240,9 +3242,10 @@ const AStartEndPoint = defineSetup(function AStartEndPoint2(props, {
|
|
|
3240
3242
|
withArrow = false,
|
|
3241
3243
|
title,
|
|
3242
3244
|
description,
|
|
3243
|
-
type: type2
|
|
3245
|
+
type: type2,
|
|
3246
|
+
language
|
|
3244
3247
|
} = props;
|
|
3245
|
-
const icon = type2 === "start" ? imgStartPoint : imgEndPoint;
|
|
3248
|
+
const icon = type2 === "start" ? language === "zh" ? imgStartPoint : imgStartPointEn : language === "zh" ? imgEndPoint : imgEndPointEn;
|
|
3246
3249
|
const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize$1}">${item.value}</span>`).join("");
|
|
3247
3250
|
if (!description && !title)
|
|
3248
3251
|
return `<img class="AStartEndPoint ${pointIcon({
|
|
@@ -3307,9 +3310,10 @@ const GStartEndPoint = defineSetup(function GStartEndPoint2(props, {
|
|
|
3307
3310
|
withArrow = false,
|
|
3308
3311
|
title,
|
|
3309
3312
|
description,
|
|
3310
|
-
type: type2
|
|
3313
|
+
type: type2,
|
|
3314
|
+
language = "zh"
|
|
3311
3315
|
} = props;
|
|
3312
|
-
const icon = type2 === "start" ? imgStartPoint : imgEndPoint;
|
|
3316
|
+
const icon = type2 === "start" ? language === "zh" ? imgStartPoint : imgStartPointEn : language === "zh" ? imgEndPoint : imgEndPointEn;
|
|
3313
3317
|
const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize$1}">${item.value}</span>`).join("");
|
|
3314
3318
|
if (!description && !title)
|
|
3315
3319
|
return createDom("img", {
|
|
@@ -3391,6 +3395,9 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
|
|
|
3391
3395
|
mapRef,
|
|
3392
3396
|
renderDescription
|
|
3393
3397
|
} = props;
|
|
3398
|
+
const {
|
|
3399
|
+
language
|
|
3400
|
+
} = useMapSupplier();
|
|
3394
3401
|
const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
|
|
3395
3402
|
const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
|
|
3396
3403
|
return () => {
|
|
@@ -3419,7 +3426,8 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
|
|
|
3419
3426
|
"position": from,
|
|
3420
3427
|
"title": fromPlace.displayName,
|
|
3421
3428
|
"description": fromDescription,
|
|
3422
|
-
"withArrow": true
|
|
3429
|
+
"withArrow": true,
|
|
3430
|
+
"language": language
|
|
3423
3431
|
},
|
|
3424
3432
|
"on": {
|
|
3425
3433
|
"click": () => emit("clickStartPoint", fromPlace)
|
|
@@ -3446,7 +3454,8 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
|
|
|
3446
3454
|
distance,
|
|
3447
3455
|
duration
|
|
3448
3456
|
}),
|
|
3449
|
-
"withArrow": true
|
|
3457
|
+
"withArrow": true,
|
|
3458
|
+
"language": language
|
|
3450
3459
|
},
|
|
3451
3460
|
"on": {
|
|
3452
3461
|
"click": () => emit("clickEndPoint", toPlace)
|
|
@@ -6127,11 +6136,23 @@ function createLabelDirections(props) {
|
|
|
6127
6136
|
const { sortedPoints, widthLimit, heightLimit, distanceFn } = props;
|
|
6128
6137
|
const len = sortedPoints.length;
|
|
6129
6138
|
const result = [];
|
|
6130
|
-
const calcDirection = (isLimited2, isDoubleLimited2, prevDx2, prevDirection2) => {
|
|
6139
|
+
const calcDirection = (isLimited2, isDoubleLimited2, prevDx2, prevDirection2, isNextLimited, dx) => {
|
|
6140
|
+
spaceLog(
|
|
6141
|
+
"calcDirection",
|
|
6142
|
+
"isLimited, isDoubleLimited, prevDx, prevDirection, isNextLimited, dx = ",
|
|
6143
|
+
isLimited2,
|
|
6144
|
+
isDoubleLimited2,
|
|
6145
|
+
prevDx2,
|
|
6146
|
+
prevDirection2,
|
|
6147
|
+
isNextLimited,
|
|
6148
|
+
dx
|
|
6149
|
+
);
|
|
6131
6150
|
if (isLimited2)
|
|
6132
6151
|
return prevDx2 > 0 ? "right" : "left";
|
|
6133
6152
|
if (isDoubleLimited2 && prevDx2 < 0 && prevDirection2 === "left")
|
|
6134
6153
|
return "left";
|
|
6154
|
+
if (isNextLimited)
|
|
6155
|
+
return dx > 0 ? "left" : "right";
|
|
6135
6156
|
return "right";
|
|
6136
6157
|
};
|
|
6137
6158
|
let prevDirection = "right";
|
|
@@ -6140,7 +6161,15 @@ function createLabelDirections(props) {
|
|
|
6140
6161
|
let prevDx = Infinity;
|
|
6141
6162
|
for (let idx = 0; idx < len; idx++) {
|
|
6142
6163
|
if (idx === len - 1) {
|
|
6143
|
-
const
|
|
6164
|
+
const isNextLimited2 = false;
|
|
6165
|
+
const direction2 = calcDirection(
|
|
6166
|
+
isLimited,
|
|
6167
|
+
isDoubleLimited,
|
|
6168
|
+
prevDx,
|
|
6169
|
+
prevDirection,
|
|
6170
|
+
isNextLimited2,
|
|
6171
|
+
0
|
|
6172
|
+
);
|
|
6144
6173
|
result.push(direction2);
|
|
6145
6174
|
continue;
|
|
6146
6175
|
}
|
|
@@ -6155,11 +6184,19 @@ function createLabelDirections(props) {
|
|
|
6155
6184
|
continue;
|
|
6156
6185
|
}
|
|
6157
6186
|
const [dx, dy] = distanceFn(sortedPoints[idx], sortedPoints[idx + 1]);
|
|
6158
|
-
const
|
|
6187
|
+
const isNextLimited = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
|
|
6188
|
+
const direction = calcDirection(
|
|
6189
|
+
isLimited,
|
|
6190
|
+
isDoubleLimited,
|
|
6191
|
+
prevDx,
|
|
6192
|
+
prevDirection,
|
|
6193
|
+
isNextLimited,
|
|
6194
|
+
dx
|
|
6195
|
+
);
|
|
6159
6196
|
result.push(direction);
|
|
6160
6197
|
prevDirection = direction;
|
|
6161
6198
|
prevDx = dx;
|
|
6162
|
-
isLimited =
|
|
6199
|
+
isLimited = isNextLimited;
|
|
6163
6200
|
isDoubleLimited = dx > -widthLimit * 2 && dx < widthLimit * 2 && dy > -heightLimit && dy < heightLimit;
|
|
6164
6201
|
}
|
|
6165
6202
|
return result;
|
|
@@ -6170,7 +6207,7 @@ function filterNoOverlapPlaces(props) {
|
|
|
6170
6207
|
const [dx, dy] = distanceFn(place2point(place1), place2point(place2));
|
|
6171
6208
|
const isOverlap = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
|
|
6172
6209
|
spaceLog(
|
|
6173
|
-
"
|
|
6210
|
+
"filterNoOverlapPlaces",
|
|
6174
6211
|
"p1, p2, dx, dy, isOverlap = ",
|
|
6175
6212
|
place1.displayName,
|
|
6176
6213
|
place2.displayName,
|
|
@@ -7282,12 +7319,16 @@ const SectionDispatching = defineSetup(function SectionDispatching2(props) {
|
|
|
7282
7319
|
title,
|
|
7283
7320
|
registerOverlay
|
|
7284
7321
|
} = props;
|
|
7322
|
+
const {
|
|
7323
|
+
language
|
|
7324
|
+
} = useMapSupplier();
|
|
7285
7325
|
const from = place2point(fromPlace);
|
|
7286
7326
|
return Vue.h("div", [Vue.h(StartEndPoint, {
|
|
7287
7327
|
"attrs": {
|
|
7288
7328
|
"type": "start",
|
|
7289
7329
|
"position": from,
|
|
7290
7330
|
"title": title,
|
|
7331
|
+
"language": language,
|
|
7291
7332
|
"registerOverlay": registerOverlay
|
|
7292
7333
|
}
|
|
7293
7334
|
}), Vue.h(WaveCircle, {
|
|
@@ -7308,6 +7349,9 @@ const SectionDispatching = defineSetup(function SectionDispatching2(props) {
|
|
|
7308
7349
|
};
|
|
7309
7350
|
});
|
|
7310
7351
|
const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
|
|
7352
|
+
const {
|
|
7353
|
+
language
|
|
7354
|
+
} = useMapSupplier();
|
|
7311
7355
|
const {
|
|
7312
7356
|
apiMapDistance
|
|
7313
7357
|
} = useMapGeometry();
|
|
@@ -7345,13 +7389,15 @@ const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
|
|
|
7345
7389
|
"attrs": {
|
|
7346
7390
|
"type": "start",
|
|
7347
7391
|
"registerOverlay": registerOverlay,
|
|
7348
|
-
"position": from
|
|
7392
|
+
"position": from,
|
|
7393
|
+
"language": language
|
|
7349
7394
|
}
|
|
7350
7395
|
}), Vue.h(StartEndPoint, {
|
|
7351
7396
|
"attrs": {
|
|
7352
7397
|
"type": "end",
|
|
7353
7398
|
"registerOverlay": registerOverlay,
|
|
7354
|
-
"position": to
|
|
7399
|
+
"position": to,
|
|
7400
|
+
"language": language
|
|
7355
7401
|
}
|
|
7356
7402
|
}), Vue.h(PlaceCircle, {
|
|
7357
7403
|
"attrs": {
|
|
@@ -7373,6 +7419,9 @@ const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
|
|
|
7373
7419
|
};
|
|
7374
7420
|
});
|
|
7375
7421
|
const SectionDriverStartService = defineSetup(function SectionDriverStartService2(props) {
|
|
7422
|
+
const {
|
|
7423
|
+
language
|
|
7424
|
+
} = useMapSupplier();
|
|
7376
7425
|
const {
|
|
7377
7426
|
apiMapDistance
|
|
7378
7427
|
} = useMapGeometry();
|
|
@@ -7400,7 +7449,8 @@ const SectionDriverStartService = defineSetup(function SectionDriverStartService
|
|
|
7400
7449
|
"attrs": {
|
|
7401
7450
|
"type": "start",
|
|
7402
7451
|
"position": from,
|
|
7403
|
-
"registerOverlay": registerOverlay
|
|
7452
|
+
"registerOverlay": registerOverlay,
|
|
7453
|
+
"language": language
|
|
7404
7454
|
}
|
|
7405
7455
|
}), Vue.h(PlaceCircle, {
|
|
7406
7456
|
"attrs": {
|
|
@@ -7480,6 +7530,9 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
|
|
|
7480
7530
|
const {
|
|
7481
7531
|
apiMapDistance
|
|
7482
7532
|
} = useMapGeometry();
|
|
7533
|
+
const {
|
|
7534
|
+
language
|
|
7535
|
+
} = useMapSupplier();
|
|
7483
7536
|
return () => {
|
|
7484
7537
|
const {
|
|
7485
7538
|
from: fromPlace,
|
|
@@ -7526,13 +7579,15 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
|
|
|
7526
7579
|
"attrs": {
|
|
7527
7580
|
"type": "start",
|
|
7528
7581
|
"registerOverlay": registerOverlay,
|
|
7529
|
-
"position": from
|
|
7582
|
+
"position": from,
|
|
7583
|
+
"language": language
|
|
7530
7584
|
}
|
|
7531
7585
|
}), Vue.h(StartEndPoint, {
|
|
7532
7586
|
"attrs": {
|
|
7533
7587
|
"type": "end",
|
|
7534
7588
|
"registerOverlay": registerOverlay,
|
|
7535
|
-
"position": to
|
|
7589
|
+
"position": to,
|
|
7590
|
+
"language": language
|
|
7536
7591
|
}
|
|
7537
7592
|
}), Vue.h(PlaceCircle, {
|
|
7538
7593
|
"attrs": {
|
|
@@ -7554,6 +7609,9 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
|
|
|
7554
7609
|
};
|
|
7555
7610
|
});
|
|
7556
7611
|
const SectionDriverArrived = defineSetup(function SectionDriverArrived2(props) {
|
|
7612
|
+
const {
|
|
7613
|
+
language
|
|
7614
|
+
} = useMapSupplier();
|
|
7557
7615
|
const {
|
|
7558
7616
|
apiMapDistance
|
|
7559
7617
|
} = useMapGeometry();
|
|
@@ -7604,7 +7662,8 @@ const SectionDriverArrived = defineSetup(function SectionDriverArrived2(props) {
|
|
|
7604
7662
|
"attrs": {
|
|
7605
7663
|
"type": "start",
|
|
7606
7664
|
"position": from,
|
|
7607
|
-
"registerOverlay": registerOverlay
|
|
7665
|
+
"registerOverlay": registerOverlay,
|
|
7666
|
+
"language": language
|
|
7608
7667
|
}
|
|
7609
7668
|
}), Vue.h(PlaceCircle, {
|
|
7610
7669
|
"attrs": {
|
|
@@ -7629,6 +7688,9 @@ const SectionInService = defineSetup(function SectionInService2(props) {
|
|
|
7629
7688
|
registerOverlay
|
|
7630
7689
|
} = props;
|
|
7631
7690
|
const to = place2point(toPlace);
|
|
7691
|
+
const {
|
|
7692
|
+
language
|
|
7693
|
+
} = useMapSupplier();
|
|
7632
7694
|
const {
|
|
7633
7695
|
apiMapDistance
|
|
7634
7696
|
} = useMapGeometry();
|
|
@@ -7686,7 +7748,8 @@ const SectionInService = defineSetup(function SectionInService2(props) {
|
|
|
7686
7748
|
"attrs": {
|
|
7687
7749
|
"type": "end",
|
|
7688
7750
|
"position": to,
|
|
7689
|
-
"registerOverlay": registerOverlay
|
|
7751
|
+
"registerOverlay": registerOverlay,
|
|
7752
|
+
"language": language
|
|
7690
7753
|
}
|
|
7691
7754
|
}), Vue.h(PlaceCircle, {
|
|
7692
7755
|
"attrs": {
|
|
@@ -7702,6 +7765,9 @@ const SectionInService = defineSetup(function SectionInService2(props) {
|
|
|
7702
7765
|
};
|
|
7703
7766
|
});
|
|
7704
7767
|
const SectionCanceled = defineSetup(function SectionCanceled2(props) {
|
|
7768
|
+
const {
|
|
7769
|
+
language
|
|
7770
|
+
} = useMapSupplier();
|
|
7705
7771
|
return () => {
|
|
7706
7772
|
const {
|
|
7707
7773
|
from: fromPlace,
|
|
@@ -7714,13 +7780,15 @@ const SectionCanceled = defineSetup(function SectionCanceled2(props) {
|
|
|
7714
7780
|
"attrs": {
|
|
7715
7781
|
"type": "start",
|
|
7716
7782
|
"position": from,
|
|
7717
|
-
"registerOverlay": registerOverlay
|
|
7783
|
+
"registerOverlay": registerOverlay,
|
|
7784
|
+
"language": language
|
|
7718
7785
|
}
|
|
7719
7786
|
}), Vue.h(StartEndPoint, {
|
|
7720
7787
|
"attrs": {
|
|
7721
7788
|
"type": "end",
|
|
7722
7789
|
"position": to,
|
|
7723
|
-
"registerOverlay": registerOverlay
|
|
7790
|
+
"registerOverlay": registerOverlay,
|
|
7791
|
+
"language": language
|
|
7724
7792
|
}
|
|
7725
7793
|
}), Vue.h(PlaceCircle, {
|
|
7726
7794
|
"attrs": {
|
|
@@ -7742,6 +7810,9 @@ const SectionCanceled = defineSetup(function SectionCanceled2(props) {
|
|
|
7742
7810
|
};
|
|
7743
7811
|
});
|
|
7744
7812
|
const SectionEndService = defineSetup(function SectionEndService2(props) {
|
|
7813
|
+
const {
|
|
7814
|
+
language
|
|
7815
|
+
} = useMapSupplier();
|
|
7745
7816
|
return () => {
|
|
7746
7817
|
const {
|
|
7747
7818
|
from: fromPlace,
|
|
@@ -7767,13 +7838,15 @@ const SectionEndService = defineSetup(function SectionEndService2(props) {
|
|
|
7767
7838
|
"attrs": {
|
|
7768
7839
|
"type": "start",
|
|
7769
7840
|
"position": from,
|
|
7770
|
-
"registerOverlay": registerOverlay
|
|
7841
|
+
"registerOverlay": registerOverlay,
|
|
7842
|
+
"language": language
|
|
7771
7843
|
}
|
|
7772
7844
|
}), Vue.h(StartEndPoint, {
|
|
7773
7845
|
"attrs": {
|
|
7774
7846
|
"type": "end",
|
|
7775
7847
|
"position": to,
|
|
7776
|
-
"registerOverlay": registerOverlay
|
|
7848
|
+
"registerOverlay": registerOverlay,
|
|
7849
|
+
"language": language
|
|
7777
7850
|
}
|
|
7778
7851
|
}), Vue.h(PlaceCircle, {
|
|
7779
7852
|
"attrs": {
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
|
|
8
8
|
const style = "";
|
|
9
9
|
const name = "@heycar/heycars-map";
|
|
10
|
-
const version = "0.8.
|
|
10
|
+
const version = "0.8.11";
|
|
11
11
|
const type = "module";
|
|
12
12
|
const scripts = {
|
|
13
13
|
dev: "vite -c vite.config.dev.ts",
|
|
@@ -3218,7 +3218,9 @@ const KeyedFitView = defineSetup(function KeyedFitView2(props, {
|
|
|
3218
3218
|
return h("div", [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3219
3219
|
};
|
|
3220
3220
|
});
|
|
3221
|
+
const imgEndPointEn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZ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lPSJldmVub2RkIj48cGF0aCBkPSJNMTIgMzAuMjE1YzEuOTUgMCAzLjUzMi0uODE2IDMuNTMyLTEuODIzIDAtMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
3223
3225
|
const StartEndPoint_css_ts_vanilla = "";
|
|
3224
3226
|
var arrowRight = createRuntimeFn({ defaultClassName: "_4a4ovka", variantClassNames: { withArrow: { true: "_4a4ovkb", false: "_4a4ovkc" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -3238,9 +3240,10 @@ const AStartEndPoint = defineSetup(function AStartEndPoint2(props, {
|
|
|
3238
3240
|
withArrow = false,
|
|
3239
3241
|
title,
|
|
3240
3242
|
description,
|
|
3241
|
-
type: type2
|
|
3243
|
+
type: type2,
|
|
3244
|
+
language
|
|
3242
3245
|
} = props;
|
|
3243
|
-
const icon = type2 === "start" ? imgStartPoint : imgEndPoint;
|
|
3246
|
+
const icon = type2 === "start" ? language === "zh" ? imgStartPoint : imgStartPointEn : language === "zh" ? imgEndPoint : imgEndPointEn;
|
|
3244
3247
|
const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize$1}">${item.value}</span>`).join("");
|
|
3245
3248
|
if (!description && !title)
|
|
3246
3249
|
return `<img class="AStartEndPoint ${pointIcon({
|
|
@@ -3305,9 +3308,10 @@ const GStartEndPoint = defineSetup(function GStartEndPoint2(props, {
|
|
|
3305
3308
|
withArrow = false,
|
|
3306
3309
|
title,
|
|
3307
3310
|
description,
|
|
3308
|
-
type: type2
|
|
3311
|
+
type: type2,
|
|
3312
|
+
language = "zh"
|
|
3309
3313
|
} = props;
|
|
3310
|
-
const icon = type2 === "start" ? imgStartPoint : imgEndPoint;
|
|
3314
|
+
const icon = type2 === "start" ? language === "zh" ? imgStartPoint : imgStartPointEn : language === "zh" ? imgEndPoint : imgEndPointEn;
|
|
3311
3315
|
const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize$1}">${item.value}</span>`).join("");
|
|
3312
3316
|
if (!description && !title)
|
|
3313
3317
|
return createDom("img", {
|
|
@@ -3389,6 +3393,9 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
|
|
|
3389
3393
|
mapRef,
|
|
3390
3394
|
renderDescription
|
|
3391
3395
|
} = props;
|
|
3396
|
+
const {
|
|
3397
|
+
language
|
|
3398
|
+
} = useMapSupplier();
|
|
3392
3399
|
const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
|
|
3393
3400
|
const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
|
|
3394
3401
|
return () => {
|
|
@@ -3417,7 +3424,8 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
|
|
|
3417
3424
|
"position": from,
|
|
3418
3425
|
"title": fromPlace.displayName,
|
|
3419
3426
|
"description": fromDescription,
|
|
3420
|
-
"withArrow": true
|
|
3427
|
+
"withArrow": true,
|
|
3428
|
+
"language": language
|
|
3421
3429
|
},
|
|
3422
3430
|
"on": {
|
|
3423
3431
|
"click": () => emit("clickStartPoint", fromPlace)
|
|
@@ -3444,7 +3452,8 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
|
|
|
3444
3452
|
distance,
|
|
3445
3453
|
duration
|
|
3446
3454
|
}),
|
|
3447
|
-
"withArrow": true
|
|
3455
|
+
"withArrow": true,
|
|
3456
|
+
"language": language
|
|
3448
3457
|
},
|
|
3449
3458
|
"on": {
|
|
3450
3459
|
"click": () => emit("clickEndPoint", toPlace)
|
|
@@ -6125,11 +6134,23 @@ function createLabelDirections(props) {
|
|
|
6125
6134
|
const { sortedPoints, widthLimit, heightLimit, distanceFn } = props;
|
|
6126
6135
|
const len = sortedPoints.length;
|
|
6127
6136
|
const result = [];
|
|
6128
|
-
const calcDirection = (isLimited2, isDoubleLimited2, prevDx2, prevDirection2) => {
|
|
6137
|
+
const calcDirection = (isLimited2, isDoubleLimited2, prevDx2, prevDirection2, isNextLimited, dx) => {
|
|
6138
|
+
spaceLog(
|
|
6139
|
+
"calcDirection",
|
|
6140
|
+
"isLimited, isDoubleLimited, prevDx, prevDirection, isNextLimited, dx = ",
|
|
6141
|
+
isLimited2,
|
|
6142
|
+
isDoubleLimited2,
|
|
6143
|
+
prevDx2,
|
|
6144
|
+
prevDirection2,
|
|
6145
|
+
isNextLimited,
|
|
6146
|
+
dx
|
|
6147
|
+
);
|
|
6129
6148
|
if (isLimited2)
|
|
6130
6149
|
return prevDx2 > 0 ? "right" : "left";
|
|
6131
6150
|
if (isDoubleLimited2 && prevDx2 < 0 && prevDirection2 === "left")
|
|
6132
6151
|
return "left";
|
|
6152
|
+
if (isNextLimited)
|
|
6153
|
+
return dx > 0 ? "left" : "right";
|
|
6133
6154
|
return "right";
|
|
6134
6155
|
};
|
|
6135
6156
|
let prevDirection = "right";
|
|
@@ -6138,7 +6159,15 @@ function createLabelDirections(props) {
|
|
|
6138
6159
|
let prevDx = Infinity;
|
|
6139
6160
|
for (let idx = 0; idx < len; idx++) {
|
|
6140
6161
|
if (idx === len - 1) {
|
|
6141
|
-
const
|
|
6162
|
+
const isNextLimited2 = false;
|
|
6163
|
+
const direction2 = calcDirection(
|
|
6164
|
+
isLimited,
|
|
6165
|
+
isDoubleLimited,
|
|
6166
|
+
prevDx,
|
|
6167
|
+
prevDirection,
|
|
6168
|
+
isNextLimited2,
|
|
6169
|
+
0
|
|
6170
|
+
);
|
|
6142
6171
|
result.push(direction2);
|
|
6143
6172
|
continue;
|
|
6144
6173
|
}
|
|
@@ -6153,11 +6182,19 @@ function createLabelDirections(props) {
|
|
|
6153
6182
|
continue;
|
|
6154
6183
|
}
|
|
6155
6184
|
const [dx, dy] = distanceFn(sortedPoints[idx], sortedPoints[idx + 1]);
|
|
6156
|
-
const
|
|
6185
|
+
const isNextLimited = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
|
|
6186
|
+
const direction = calcDirection(
|
|
6187
|
+
isLimited,
|
|
6188
|
+
isDoubleLimited,
|
|
6189
|
+
prevDx,
|
|
6190
|
+
prevDirection,
|
|
6191
|
+
isNextLimited,
|
|
6192
|
+
dx
|
|
6193
|
+
);
|
|
6157
6194
|
result.push(direction);
|
|
6158
6195
|
prevDirection = direction;
|
|
6159
6196
|
prevDx = dx;
|
|
6160
|
-
isLimited =
|
|
6197
|
+
isLimited = isNextLimited;
|
|
6161
6198
|
isDoubleLimited = dx > -widthLimit * 2 && dx < widthLimit * 2 && dy > -heightLimit && dy < heightLimit;
|
|
6162
6199
|
}
|
|
6163
6200
|
return result;
|
|
@@ -6168,7 +6205,7 @@ function filterNoOverlapPlaces(props) {
|
|
|
6168
6205
|
const [dx, dy] = distanceFn(place2point(place1), place2point(place2));
|
|
6169
6206
|
const isOverlap = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
|
|
6170
6207
|
spaceLog(
|
|
6171
|
-
"
|
|
6208
|
+
"filterNoOverlapPlaces",
|
|
6172
6209
|
"p1, p2, dx, dy, isOverlap = ",
|
|
6173
6210
|
place1.displayName,
|
|
6174
6211
|
place2.displayName,
|
|
@@ -7280,12 +7317,16 @@ const SectionDispatching = defineSetup(function SectionDispatching2(props) {
|
|
|
7280
7317
|
title,
|
|
7281
7318
|
registerOverlay
|
|
7282
7319
|
} = props;
|
|
7320
|
+
const {
|
|
7321
|
+
language
|
|
7322
|
+
} = useMapSupplier();
|
|
7283
7323
|
const from = place2point(fromPlace);
|
|
7284
7324
|
return h("div", [h(StartEndPoint, {
|
|
7285
7325
|
"attrs": {
|
|
7286
7326
|
"type": "start",
|
|
7287
7327
|
"position": from,
|
|
7288
7328
|
"title": title,
|
|
7329
|
+
"language": language,
|
|
7289
7330
|
"registerOverlay": registerOverlay
|
|
7290
7331
|
}
|
|
7291
7332
|
}), h(WaveCircle, {
|
|
@@ -7306,6 +7347,9 @@ const SectionDispatching = defineSetup(function SectionDispatching2(props) {
|
|
|
7306
7347
|
};
|
|
7307
7348
|
});
|
|
7308
7349
|
const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
|
|
7350
|
+
const {
|
|
7351
|
+
language
|
|
7352
|
+
} = useMapSupplier();
|
|
7309
7353
|
const {
|
|
7310
7354
|
apiMapDistance
|
|
7311
7355
|
} = useMapGeometry();
|
|
@@ -7343,13 +7387,15 @@ const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
|
|
|
7343
7387
|
"attrs": {
|
|
7344
7388
|
"type": "start",
|
|
7345
7389
|
"registerOverlay": registerOverlay,
|
|
7346
|
-
"position": from
|
|
7390
|
+
"position": from,
|
|
7391
|
+
"language": language
|
|
7347
7392
|
}
|
|
7348
7393
|
}), h(StartEndPoint, {
|
|
7349
7394
|
"attrs": {
|
|
7350
7395
|
"type": "end",
|
|
7351
7396
|
"registerOverlay": registerOverlay,
|
|
7352
|
-
"position": to
|
|
7397
|
+
"position": to,
|
|
7398
|
+
"language": language
|
|
7353
7399
|
}
|
|
7354
7400
|
}), h(PlaceCircle, {
|
|
7355
7401
|
"attrs": {
|
|
@@ -7371,6 +7417,9 @@ const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
|
|
|
7371
7417
|
};
|
|
7372
7418
|
});
|
|
7373
7419
|
const SectionDriverStartService = defineSetup(function SectionDriverStartService2(props) {
|
|
7420
|
+
const {
|
|
7421
|
+
language
|
|
7422
|
+
} = useMapSupplier();
|
|
7374
7423
|
const {
|
|
7375
7424
|
apiMapDistance
|
|
7376
7425
|
} = useMapGeometry();
|
|
@@ -7398,7 +7447,8 @@ const SectionDriverStartService = defineSetup(function SectionDriverStartService
|
|
|
7398
7447
|
"attrs": {
|
|
7399
7448
|
"type": "start",
|
|
7400
7449
|
"position": from,
|
|
7401
|
-
"registerOverlay": registerOverlay
|
|
7450
|
+
"registerOverlay": registerOverlay,
|
|
7451
|
+
"language": language
|
|
7402
7452
|
}
|
|
7403
7453
|
}), h(PlaceCircle, {
|
|
7404
7454
|
"attrs": {
|
|
@@ -7478,6 +7528,9 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
|
|
|
7478
7528
|
const {
|
|
7479
7529
|
apiMapDistance
|
|
7480
7530
|
} = useMapGeometry();
|
|
7531
|
+
const {
|
|
7532
|
+
language
|
|
7533
|
+
} = useMapSupplier();
|
|
7481
7534
|
return () => {
|
|
7482
7535
|
const {
|
|
7483
7536
|
from: fromPlace,
|
|
@@ -7524,13 +7577,15 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
|
|
|
7524
7577
|
"attrs": {
|
|
7525
7578
|
"type": "start",
|
|
7526
7579
|
"registerOverlay": registerOverlay,
|
|
7527
|
-
"position": from
|
|
7580
|
+
"position": from,
|
|
7581
|
+
"language": language
|
|
7528
7582
|
}
|
|
7529
7583
|
}), h(StartEndPoint, {
|
|
7530
7584
|
"attrs": {
|
|
7531
7585
|
"type": "end",
|
|
7532
7586
|
"registerOverlay": registerOverlay,
|
|
7533
|
-
"position": to
|
|
7587
|
+
"position": to,
|
|
7588
|
+
"language": language
|
|
7534
7589
|
}
|
|
7535
7590
|
}), h(PlaceCircle, {
|
|
7536
7591
|
"attrs": {
|
|
@@ -7552,6 +7607,9 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
|
|
|
7552
7607
|
};
|
|
7553
7608
|
});
|
|
7554
7609
|
const SectionDriverArrived = defineSetup(function SectionDriverArrived2(props) {
|
|
7610
|
+
const {
|
|
7611
|
+
language
|
|
7612
|
+
} = useMapSupplier();
|
|
7555
7613
|
const {
|
|
7556
7614
|
apiMapDistance
|
|
7557
7615
|
} = useMapGeometry();
|
|
@@ -7602,7 +7660,8 @@ const SectionDriverArrived = defineSetup(function SectionDriverArrived2(props) {
|
|
|
7602
7660
|
"attrs": {
|
|
7603
7661
|
"type": "start",
|
|
7604
7662
|
"position": from,
|
|
7605
|
-
"registerOverlay": registerOverlay
|
|
7663
|
+
"registerOverlay": registerOverlay,
|
|
7664
|
+
"language": language
|
|
7606
7665
|
}
|
|
7607
7666
|
}), h(PlaceCircle, {
|
|
7608
7667
|
"attrs": {
|
|
@@ -7627,6 +7686,9 @@ const SectionInService = defineSetup(function SectionInService2(props) {
|
|
|
7627
7686
|
registerOverlay
|
|
7628
7687
|
} = props;
|
|
7629
7688
|
const to = place2point(toPlace);
|
|
7689
|
+
const {
|
|
7690
|
+
language
|
|
7691
|
+
} = useMapSupplier();
|
|
7630
7692
|
const {
|
|
7631
7693
|
apiMapDistance
|
|
7632
7694
|
} = useMapGeometry();
|
|
@@ -7684,7 +7746,8 @@ const SectionInService = defineSetup(function SectionInService2(props) {
|
|
|
7684
7746
|
"attrs": {
|
|
7685
7747
|
"type": "end",
|
|
7686
7748
|
"position": to,
|
|
7687
|
-
"registerOverlay": registerOverlay
|
|
7749
|
+
"registerOverlay": registerOverlay,
|
|
7750
|
+
"language": language
|
|
7688
7751
|
}
|
|
7689
7752
|
}), h(PlaceCircle, {
|
|
7690
7753
|
"attrs": {
|
|
@@ -7700,6 +7763,9 @@ const SectionInService = defineSetup(function SectionInService2(props) {
|
|
|
7700
7763
|
};
|
|
7701
7764
|
});
|
|
7702
7765
|
const SectionCanceled = defineSetup(function SectionCanceled2(props) {
|
|
7766
|
+
const {
|
|
7767
|
+
language
|
|
7768
|
+
} = useMapSupplier();
|
|
7703
7769
|
return () => {
|
|
7704
7770
|
const {
|
|
7705
7771
|
from: fromPlace,
|
|
@@ -7712,13 +7778,15 @@ const SectionCanceled = defineSetup(function SectionCanceled2(props) {
|
|
|
7712
7778
|
"attrs": {
|
|
7713
7779
|
"type": "start",
|
|
7714
7780
|
"position": from,
|
|
7715
|
-
"registerOverlay": registerOverlay
|
|
7781
|
+
"registerOverlay": registerOverlay,
|
|
7782
|
+
"language": language
|
|
7716
7783
|
}
|
|
7717
7784
|
}), h(StartEndPoint, {
|
|
7718
7785
|
"attrs": {
|
|
7719
7786
|
"type": "end",
|
|
7720
7787
|
"position": to,
|
|
7721
|
-
"registerOverlay": registerOverlay
|
|
7788
|
+
"registerOverlay": registerOverlay,
|
|
7789
|
+
"language": language
|
|
7722
7790
|
}
|
|
7723
7791
|
}), h(PlaceCircle, {
|
|
7724
7792
|
"attrs": {
|
|
@@ -7740,6 +7808,9 @@ const SectionCanceled = defineSetup(function SectionCanceled2(props) {
|
|
|
7740
7808
|
};
|
|
7741
7809
|
});
|
|
7742
7810
|
const SectionEndService = defineSetup(function SectionEndService2(props) {
|
|
7811
|
+
const {
|
|
7812
|
+
language
|
|
7813
|
+
} = useMapSupplier();
|
|
7743
7814
|
return () => {
|
|
7744
7815
|
const {
|
|
7745
7816
|
from: fromPlace,
|
|
@@ -7765,13 +7836,15 @@ const SectionEndService = defineSetup(function SectionEndService2(props) {
|
|
|
7765
7836
|
"attrs": {
|
|
7766
7837
|
"type": "start",
|
|
7767
7838
|
"position": from,
|
|
7768
|
-
"registerOverlay": registerOverlay
|
|
7839
|
+
"registerOverlay": registerOverlay,
|
|
7840
|
+
"language": language
|
|
7769
7841
|
}
|
|
7770
7842
|
}), h(StartEndPoint, {
|
|
7771
7843
|
"attrs": {
|
|
7772
7844
|
"type": "end",
|
|
7773
7845
|
"position": to,
|
|
7774
|
-
"registerOverlay": registerOverlay
|
|
7846
|
+
"registerOverlay": registerOverlay,
|
|
7847
|
+
"language": language
|
|
7775
7848
|
}
|
|
7776
7849
|
}), h(PlaceCircle, {
|
|
7777
7850
|
"attrs": {
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
export declare const DemoBusinessTaxiEnd: import("vue").DefineComponent<{}, unknown, {
|
|
2
|
-
from: {
|
|
3
|
-
|
|
2
|
+
from: {
|
|
3
|
+
lat: number;
|
|
4
|
+
lng: number;
|
|
5
|
+
name: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
to: {
|
|
9
|
+
lat: number;
|
|
10
|
+
lng: number;
|
|
11
|
+
name: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
4
14
|
contentHeight: number;
|
|
5
15
|
}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GmapOverlay, MapRegisterOverlayProps } from "../../hooks/useOverlay";
|
|
2
2
|
import type { Point } from "../../types/interface";
|
|
3
3
|
export interface StartEndPointProps<T> extends MapRegisterOverlayProps<T> {
|
|
4
|
+
language: "en" | "zh";
|
|
4
5
|
type: "start" | "end";
|
|
5
6
|
position: [number, number];
|
|
6
7
|
title?: string;
|
|
@@ -60,7 +60,7 @@ export interface UseMapLoaderProps {
|
|
|
60
60
|
amapSecret?: string;
|
|
61
61
|
amapServiceHost?: string;
|
|
62
62
|
supplier: MapSupplier;
|
|
63
|
-
language
|
|
63
|
+
language: "en" | "zh";
|
|
64
64
|
onChange?: (status: Status) => any;
|
|
65
65
|
}
|
|
66
66
|
export declare const useMapLoader: (props: UseMapLoaderProps) => UseMapLoaderOutput;
|