@heycar/heycars-map 0.9.23-alpha7 → 0.9.23-alpha9

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/README.md CHANGED
@@ -47,7 +47,6 @@ export type Place = {
47
47
  lat: number;
48
48
  name: string;
49
49
  displayName: string;
50
- photo?: string;
51
50
  };
52
51
 
53
52
  export interface Zone {
package/dist/index.cjs CHANGED
@@ -19,7 +19,7 @@ if (typeof GeolocationPositionError === "undefined") {
19
19
  };
20
20
  }
21
21
  const name = "@heycar/heycars-map";
22
- const version = "0.9.23-alpha7";
22
+ const version = "0.9.23-alpha9";
23
23
  const type = "module";
24
24
  const bin = {
25
25
  checkVersion: "./bin/checkVersion.js"
@@ -4451,9 +4451,11 @@ const watchVisibilityState = () => {
4451
4451
  class QueryWxSignatureStatus {
4452
4452
  constructor(timeout) {
4453
4453
  __publicField(this, "error");
4454
- __publicField(this, "timeout");
4455
4454
  __publicField(this, "status", "PENDING");
4456
- __publicField(this, "pendingStatusPromise", new Promise((resolve, reject) => {
4455
+ __publicField(this, "pendingStatusPromise");
4456
+ __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4457
+ __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4458
+ this.pendingStatusPromise = new Promise((resolve, reject) => {
4457
4459
  wx == null ? void 0 : wx.ready(() => {
4458
4460
  this.status = "READY";
4459
4461
  resolve("READY");
@@ -4468,11 +4470,8 @@ class QueryWxSignatureStatus {
4468
4470
  return;
4469
4471
  this.status = "TIMEOUT";
4470
4472
  resolve("TIMEOUT");
4471
- }, this.timeout);
4472
- }));
4473
- __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4474
- __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4475
- this.timeout = timeout;
4473
+ }, timeout);
4474
+ });
4476
4475
  }
4477
4476
  get statusPromise() {
4478
4477
  switch (this.status) {
@@ -7373,7 +7372,7 @@ const useMapRecomendPlace = (props) => {
7373
7372
  force,
7374
7373
  zone: zone2
7375
7374
  } = await findAttachedPlace({ lng, lat, name: "", displayName: "" });
7376
- if (!isPointEqual(place2point(closestPlace), point)) {
7375
+ if (isPlacesInclude(candidates, closestPlace)) {
7377
7376
  return { place: { ...closestPlace }, zone: zone2, available, candidates, force };
7378
7377
  }
7379
7378
  const regeoPlace = await reGeoPlacePromise;
@@ -8033,13 +8032,13 @@ const ConditionalFittablePassengerCircle = defineSetup(function ConditionalFitta
8033
8032
  };
8034
8033
  });
8035
8034
  const usePointsLabelDirection = (props) => {
8036
- const { widthLimit, heightLimit } = props;
8035
+ const { widthLimit, getHeightLimit } = props;
8037
8036
  const mapRef = useMap();
8038
8037
  const { apiMapLngLatToVw } = useMapLngLatToVw({ mapRef });
8039
8038
  const { zoomRef } = useMapZoom({ mapRef });
8040
8039
  const diffVw = (from, to) => {
8041
- const [x1, y1] = apiMapLngLatToVw(from);
8042
- const [x2, y2] = apiMapLngLatToVw(to);
8040
+ const [x1, y1] = apiMapLngLatToVw(lnglat2point(from));
8041
+ const [x2, y2] = apiMapLngLatToVw(lnglat2point(to));
8043
8042
  return [x2 - x1, y2 - y1];
8044
8043
  };
8045
8044
  const directionsRef = Vue.ref([]);
@@ -8062,14 +8061,14 @@ const usePointsLabelDirection = (props) => {
8062
8061
  basePlace,
8063
8062
  sortedPlaces,
8064
8063
  widthLimit,
8065
- heightLimit,
8066
- distanceFn: diffVw
8064
+ getHeightLimit,
8065
+ placeDistanceFn: diffVw
8067
8066
  });
8068
8067
  const directions = createLabelDirections({
8069
- sortedPoints: noOverlapPlaces.map(place2point),
8068
+ sortedPlaces: noOverlapPlaces,
8070
8069
  widthLimit,
8071
- heightLimit,
8072
- distanceFn: diffVw
8070
+ getHeightLimit,
8071
+ placeDistanceFn: diffVw
8073
8072
  });
8074
8073
  directionsRef.value = directions;
8075
8074
  labeledPlacesRef.value = noOverlapPlaces;
@@ -8078,8 +8077,8 @@ const usePointsLabelDirection = (props) => {
8078
8077
  return { directionsRef, labeledPlacesRef, isContainBasePlaceRef };
8079
8078
  };
8080
8079
  function createLabelDirections(props) {
8081
- const { sortedPoints, widthLimit, heightLimit, distanceFn } = props;
8082
- const len = sortedPoints.length;
8080
+ const { sortedPlaces, widthLimit, getHeightLimit, placeDistanceFn } = props;
8081
+ const len = sortedPlaces.length;
8083
8082
  const result = [];
8084
8083
  const calcDirection = (isLimited2, isDoubleLimited2, prevDx2, prevDirection2, isNextLimited, dx) => {
8085
8084
  spaceLog(
@@ -8119,16 +8118,18 @@ function createLabelDirections(props) {
8119
8118
  continue;
8120
8119
  }
8121
8120
  if (idx === 0) {
8122
- const [dx2, dy2] = distanceFn(sortedPoints[idx], sortedPoints[idx + 1]);
8123
- isLimited = dx2 > -widthLimit && dx2 < widthLimit && dy2 > -heightLimit && dy2 < heightLimit;
8124
- isDoubleLimited = dx2 > -widthLimit * 2 && dx2 < widthLimit * 2 && dy2 > -heightLimit && dy2 < heightLimit;
8121
+ const [dx2, dy2] = placeDistanceFn(sortedPlaces[idx], sortedPlaces[idx + 1]);
8122
+ const heightLimit2 = getHeightLimit(sortedPlaces[idx], sortedPlaces[idx + 1]);
8123
+ isLimited = dx2 > -widthLimit && dx2 < widthLimit && dy2 > -heightLimit2 && dy2 < heightLimit2;
8124
+ isDoubleLimited = dx2 > -widthLimit * 2 && dx2 < widthLimit * 2 && dy2 > -heightLimit2 && dy2 < heightLimit2;
8125
8125
  const direction2 = !isLimited ? "right" : dx2 > 0 ? "left" : "right";
8126
8126
  result.push(direction2);
8127
8127
  prevDirection = direction2;
8128
8128
  prevDx = dx2;
8129
8129
  continue;
8130
8130
  }
8131
- const [dx, dy] = distanceFn(sortedPoints[idx], sortedPoints[idx + 1]);
8131
+ const [dx, dy] = placeDistanceFn(sortedPlaces[idx], sortedPlaces[idx + 1]);
8132
+ const heightLimit = getHeightLimit(sortedPlaces[idx], sortedPlaces[idx + 1]);
8132
8133
  const isNextLimited = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
8133
8134
  const direction = calcDirection(
8134
8135
  isLimited,
@@ -8147,9 +8148,10 @@ function createLabelDirections(props) {
8147
8148
  return result;
8148
8149
  }
8149
8150
  function filterNoOverlapPlaces(props) {
8150
- const { basePlace, sortedPlaces, widthLimit, heightLimit, distanceFn } = props;
8151
+ const { basePlace, sortedPlaces, widthLimit, getHeightLimit, placeDistanceFn } = props;
8151
8152
  const measureOverlap = (place1, place2) => {
8152
- const [dx, dy] = distanceFn(place2point(place1), place2point(place2));
8153
+ const [dx, dy] = placeDistanceFn(place1, place2);
8154
+ const heightLimit = getHeightLimit(place1, place2);
8153
8155
  const isOverlap = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
8154
8156
  spaceLog(
8155
8157
  "filterNoOverlapPlaces",
@@ -8166,7 +8168,7 @@ function filterNoOverlapPlaces(props) {
8166
8168
  let overlapPlaces = findRelation(nextPlaces, measureOverlap);
8167
8169
  while (overlapPlaces.length > 0) {
8168
8170
  const maxPlace = findMax(overlapPlaces, (place) => {
8169
- const [dx, dy] = distanceFn(place2point(place), place2point(basePlace));
8171
+ const [dx, dy] = placeDistanceFn(place, basePlace);
8170
8172
  return dx * dx + dy * dy;
8171
8173
  });
8172
8174
  nextPlaces = nextPlaces.filter((place) => !isPlaceEqual(maxPlace, place));
@@ -8244,7 +8246,7 @@ var labelLayout = "fhyw8b";
8244
8246
  var labelStroke = "fhyw8d fhyw8c";
8245
8247
  var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
8246
8248
  var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
8247
- var tag = createRuntimeFn({ defaultClassName: "fhyw8e", variantClassNames: { textAlign: { left: "fhyw8f", right: "fhyw8g" } }, defaultVariants: {}, compoundVariants: [] });
8249
+ var tag = "fhyw8e";
8248
8250
  const DEFAULT_TEXT_ALIGN = "right";
8249
8251
  const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8250
8252
  emit
@@ -8255,9 +8257,7 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8255
8257
  hideIcon = false,
8256
8258
  textAlign = DEFAULT_TEXT_ALIGN
8257
8259
  } = props;
8258
- const tagArea = tag$1 ? `<div class="${tag({
8259
- textAlign
8260
- })}">${tag$1}</div>` : "";
8260
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8261
8261
  return `
8262
8262
  <div class="APlaceCircle ${placeCircleLayout({
8263
8263
  textAlign
@@ -8315,9 +8315,7 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
8315
8315
  hideIcon = false,
8316
8316
  textAlign = DEFAULT_TEXT_ALIGN
8317
8317
  } = props;
8318
- const tagArea = tag$1 ? `<div class="${tag({
8319
- textAlign
8320
- })}">${tag$1}</div>` : "";
8318
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8321
8319
  return createDom("div", {
8322
8320
  class: `GPlaceCircle ${placeCircleLayout({
8323
8321
  textAlign
@@ -8376,6 +8374,9 @@ const PlaceCircle = defineSetup(function PlaceCircle2(props, {
8376
8374
  });
8377
8375
  };
8378
8376
  });
8377
+ const REGULAR_PLACE_WIDTH_LIMIT = 34;
8378
+ const REGULAR_PLACE_HEIGHT_LIMIT = 9;
8379
+ const TAGED_PLACE_HEIGHT_LIMIT = 14;
8379
8380
  const PickupPoints = defineSetup(function PickupPoints2(props, {
8380
8381
  emit
8381
8382
  }) {
@@ -8385,6 +8386,10 @@ const PickupPoints = defineSetup(function PickupPoints2(props, {
8385
8386
  } = useMapZoom({
8386
8387
  mapRef
8387
8388
  });
8389
+ const getHeightLimit = (place) => {
8390
+ var _a;
8391
+ return ((_a = props.renderPlaceTag) == null ? void 0 : _a.call(props, place)) ? TAGED_PLACE_HEIGHT_LIMIT : REGULAR_PLACE_HEIGHT_LIMIT;
8392
+ };
8388
8393
  const {
8389
8394
  directionsRef,
8390
8395
  labeledPlacesRef,
@@ -8392,8 +8397,8 @@ const PickupPoints = defineSetup(function PickupPoints2(props, {
8392
8397
  } = usePointsLabelDirection(Vue.reactive({
8393
8398
  basePlace: Vue.toRef(props, "basePlace"),
8394
8399
  places: Vue.toRef(props, "places"),
8395
- heightLimit: 9,
8396
- widthLimit: 34,
8400
+ getHeightLimit,
8401
+ widthLimit: REGULAR_PLACE_WIDTH_LIMIT,
8397
8402
  skip: Vue.toRef(props, "noLabel")
8398
8403
  }));
8399
8404
  return () => {
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ if (typeof GeolocationPositionError === "undefined") {
17
17
  };
18
18
  }
19
19
  const name = "@heycar/heycars-map";
20
- const version = "0.9.23-alpha7";
20
+ const version = "0.9.23-alpha9";
21
21
  const type = "module";
22
22
  const bin = {
23
23
  checkVersion: "./bin/checkVersion.js"
@@ -4449,9 +4449,11 @@ const watchVisibilityState = () => {
4449
4449
  class QueryWxSignatureStatus {
4450
4450
  constructor(timeout) {
4451
4451
  __publicField(this, "error");
4452
- __publicField(this, "timeout");
4453
4452
  __publicField(this, "status", "PENDING");
4454
- __publicField(this, "pendingStatusPromise", new Promise((resolve, reject) => {
4453
+ __publicField(this, "pendingStatusPromise");
4454
+ __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4455
+ __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4456
+ this.pendingStatusPromise = new Promise((resolve, reject) => {
4455
4457
  wx == null ? void 0 : wx.ready(() => {
4456
4458
  this.status = "READY";
4457
4459
  resolve("READY");
@@ -4466,11 +4468,8 @@ class QueryWxSignatureStatus {
4466
4468
  return;
4467
4469
  this.status = "TIMEOUT";
4468
4470
  resolve("TIMEOUT");
4469
- }, this.timeout);
4470
- }));
4471
- __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4472
- __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4473
- this.timeout = timeout;
4471
+ }, timeout);
4472
+ });
4474
4473
  }
4475
4474
  get statusPromise() {
4476
4475
  switch (this.status) {
@@ -7371,7 +7370,7 @@ const useMapRecomendPlace = (props) => {
7371
7370
  force,
7372
7371
  zone: zone2
7373
7372
  } = await findAttachedPlace({ lng, lat, name: "", displayName: "" });
7374
- if (!isPointEqual(place2point(closestPlace), point)) {
7373
+ if (isPlacesInclude(candidates, closestPlace)) {
7375
7374
  return { place: { ...closestPlace }, zone: zone2, available, candidates, force };
7376
7375
  }
7377
7376
  const regeoPlace = await reGeoPlacePromise;
@@ -8031,13 +8030,13 @@ const ConditionalFittablePassengerCircle = defineSetup(function ConditionalFitta
8031
8030
  };
8032
8031
  });
8033
8032
  const usePointsLabelDirection = (props) => {
8034
- const { widthLimit, heightLimit } = props;
8033
+ const { widthLimit, getHeightLimit } = props;
8035
8034
  const mapRef = useMap();
8036
8035
  const { apiMapLngLatToVw } = useMapLngLatToVw({ mapRef });
8037
8036
  const { zoomRef } = useMapZoom({ mapRef });
8038
8037
  const diffVw = (from, to) => {
8039
- const [x1, y1] = apiMapLngLatToVw(from);
8040
- const [x2, y2] = apiMapLngLatToVw(to);
8038
+ const [x1, y1] = apiMapLngLatToVw(lnglat2point(from));
8039
+ const [x2, y2] = apiMapLngLatToVw(lnglat2point(to));
8041
8040
  return [x2 - x1, y2 - y1];
8042
8041
  };
8043
8042
  const directionsRef = ref([]);
@@ -8060,14 +8059,14 @@ const usePointsLabelDirection = (props) => {
8060
8059
  basePlace,
8061
8060
  sortedPlaces,
8062
8061
  widthLimit,
8063
- heightLimit,
8064
- distanceFn: diffVw
8062
+ getHeightLimit,
8063
+ placeDistanceFn: diffVw
8065
8064
  });
8066
8065
  const directions = createLabelDirections({
8067
- sortedPoints: noOverlapPlaces.map(place2point),
8066
+ sortedPlaces: noOverlapPlaces,
8068
8067
  widthLimit,
8069
- heightLimit,
8070
- distanceFn: diffVw
8068
+ getHeightLimit,
8069
+ placeDistanceFn: diffVw
8071
8070
  });
8072
8071
  directionsRef.value = directions;
8073
8072
  labeledPlacesRef.value = noOverlapPlaces;
@@ -8076,8 +8075,8 @@ const usePointsLabelDirection = (props) => {
8076
8075
  return { directionsRef, labeledPlacesRef, isContainBasePlaceRef };
8077
8076
  };
8078
8077
  function createLabelDirections(props) {
8079
- const { sortedPoints, widthLimit, heightLimit, distanceFn } = props;
8080
- const len = sortedPoints.length;
8078
+ const { sortedPlaces, widthLimit, getHeightLimit, placeDistanceFn } = props;
8079
+ const len = sortedPlaces.length;
8081
8080
  const result = [];
8082
8081
  const calcDirection = (isLimited2, isDoubleLimited2, prevDx2, prevDirection2, isNextLimited, dx) => {
8083
8082
  spaceLog(
@@ -8117,16 +8116,18 @@ function createLabelDirections(props) {
8117
8116
  continue;
8118
8117
  }
8119
8118
  if (idx === 0) {
8120
- const [dx2, dy2] = distanceFn(sortedPoints[idx], sortedPoints[idx + 1]);
8121
- isLimited = dx2 > -widthLimit && dx2 < widthLimit && dy2 > -heightLimit && dy2 < heightLimit;
8122
- isDoubleLimited = dx2 > -widthLimit * 2 && dx2 < widthLimit * 2 && dy2 > -heightLimit && dy2 < heightLimit;
8119
+ const [dx2, dy2] = placeDistanceFn(sortedPlaces[idx], sortedPlaces[idx + 1]);
8120
+ const heightLimit2 = getHeightLimit(sortedPlaces[idx], sortedPlaces[idx + 1]);
8121
+ isLimited = dx2 > -widthLimit && dx2 < widthLimit && dy2 > -heightLimit2 && dy2 < heightLimit2;
8122
+ isDoubleLimited = dx2 > -widthLimit * 2 && dx2 < widthLimit * 2 && dy2 > -heightLimit2 && dy2 < heightLimit2;
8123
8123
  const direction2 = !isLimited ? "right" : dx2 > 0 ? "left" : "right";
8124
8124
  result.push(direction2);
8125
8125
  prevDirection = direction2;
8126
8126
  prevDx = dx2;
8127
8127
  continue;
8128
8128
  }
8129
- const [dx, dy] = distanceFn(sortedPoints[idx], sortedPoints[idx + 1]);
8129
+ const [dx, dy] = placeDistanceFn(sortedPlaces[idx], sortedPlaces[idx + 1]);
8130
+ const heightLimit = getHeightLimit(sortedPlaces[idx], sortedPlaces[idx + 1]);
8130
8131
  const isNextLimited = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
8131
8132
  const direction = calcDirection(
8132
8133
  isLimited,
@@ -8145,9 +8146,10 @@ function createLabelDirections(props) {
8145
8146
  return result;
8146
8147
  }
8147
8148
  function filterNoOverlapPlaces(props) {
8148
- const { basePlace, sortedPlaces, widthLimit, heightLimit, distanceFn } = props;
8149
+ const { basePlace, sortedPlaces, widthLimit, getHeightLimit, placeDistanceFn } = props;
8149
8150
  const measureOverlap = (place1, place2) => {
8150
- const [dx, dy] = distanceFn(place2point(place1), place2point(place2));
8151
+ const [dx, dy] = placeDistanceFn(place1, place2);
8152
+ const heightLimit = getHeightLimit(place1, place2);
8151
8153
  const isOverlap = dx > -widthLimit && dx < widthLimit && dy > -heightLimit && dy < heightLimit;
8152
8154
  spaceLog(
8153
8155
  "filterNoOverlapPlaces",
@@ -8164,7 +8166,7 @@ function filterNoOverlapPlaces(props) {
8164
8166
  let overlapPlaces = findRelation(nextPlaces, measureOverlap);
8165
8167
  while (overlapPlaces.length > 0) {
8166
8168
  const maxPlace = findMax(overlapPlaces, (place) => {
8167
- const [dx, dy] = distanceFn(place2point(place), place2point(basePlace));
8169
+ const [dx, dy] = placeDistanceFn(place, basePlace);
8168
8170
  return dx * dx + dy * dy;
8169
8171
  });
8170
8172
  nextPlaces = nextPlaces.filter((place) => !isPlaceEqual(maxPlace, place));
@@ -8242,7 +8244,7 @@ var labelLayout = "fhyw8b";
8242
8244
  var labelStroke = "fhyw8d fhyw8c";
8243
8245
  var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
8244
8246
  var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
8245
- var tag = createRuntimeFn({ defaultClassName: "fhyw8e", variantClassNames: { textAlign: { left: "fhyw8f", right: "fhyw8g" } }, defaultVariants: {}, compoundVariants: [] });
8247
+ var tag = "fhyw8e";
8246
8248
  const DEFAULT_TEXT_ALIGN = "right";
8247
8249
  const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8248
8250
  emit
@@ -8253,9 +8255,7 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8253
8255
  hideIcon = false,
8254
8256
  textAlign = DEFAULT_TEXT_ALIGN
8255
8257
  } = props;
8256
- const tagArea = tag$1 ? `<div class="${tag({
8257
- textAlign
8258
- })}">${tag$1}</div>` : "";
8258
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8259
8259
  return `
8260
8260
  <div class="APlaceCircle ${placeCircleLayout({
8261
8261
  textAlign
@@ -8313,9 +8313,7 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
8313
8313
  hideIcon = false,
8314
8314
  textAlign = DEFAULT_TEXT_ALIGN
8315
8315
  } = props;
8316
- const tagArea = tag$1 ? `<div class="${tag({
8317
- textAlign
8318
- })}">${tag$1}</div>` : "";
8316
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8319
8317
  return createDom("div", {
8320
8318
  class: `GPlaceCircle ${placeCircleLayout({
8321
8319
  textAlign
@@ -8374,6 +8372,9 @@ const PlaceCircle = defineSetup(function PlaceCircle2(props, {
8374
8372
  });
8375
8373
  };
8376
8374
  });
8375
+ const REGULAR_PLACE_WIDTH_LIMIT = 34;
8376
+ const REGULAR_PLACE_HEIGHT_LIMIT = 9;
8377
+ const TAGED_PLACE_HEIGHT_LIMIT = 14;
8377
8378
  const PickupPoints = defineSetup(function PickupPoints2(props, {
8378
8379
  emit
8379
8380
  }) {
@@ -8383,6 +8384,10 @@ const PickupPoints = defineSetup(function PickupPoints2(props, {
8383
8384
  } = useMapZoom({
8384
8385
  mapRef
8385
8386
  });
8387
+ const getHeightLimit = (place) => {
8388
+ var _a;
8389
+ return ((_a = props.renderPlaceTag) == null ? void 0 : _a.call(props, place)) ? TAGED_PLACE_HEIGHT_LIMIT : REGULAR_PLACE_HEIGHT_LIMIT;
8390
+ };
8386
8391
  const {
8387
8392
  directionsRef,
8388
8393
  labeledPlacesRef,
@@ -8390,8 +8395,8 @@ const PickupPoints = defineSetup(function PickupPoints2(props, {
8390
8395
  } = usePointsLabelDirection(reactive({
8391
8396
  basePlace: toRef(props, "basePlace"),
8392
8397
  places: toRef(props, "places"),
8393
- heightLimit: 9,
8394
- widthLimit: 34,
8398
+ getHeightLimit,
8399
+ widthLimit: REGULAR_PLACE_WIDTH_LIMIT,
8395
8400
  skip: toRef(props, "noLabel")
8396
8401
  }));
8397
8402
  return () => {
@@ -37,13 +37,4 @@ export declare const placeIcon: import("@vanilla-extract/recipes").RuntimeFn<{
37
37
  export declare const labelLayout: string;
38
38
  export declare const label: string;
39
39
  export declare const labelStroke: string;
40
- export declare const tag: import("@vanilla-extract/recipes").RuntimeFn<{
41
- textAlign: {
42
- left: {
43
- right: number;
44
- };
45
- right: {
46
- left: number;
47
- };
48
- };
49
- }>;
40
+ export declare const tag: string;
@@ -1,10 +1,11 @@
1
1
  import type { Place } from "../types/interface";
2
2
  export type LabelDirection = "left" | "right";
3
+ type GetHeightLimitFn = (p1: Place, p2: Place) => number;
3
4
  export interface UsePointsLabelDirectionProps {
4
5
  basePlace: Place;
5
6
  places: Place[];
6
7
  widthLimit: number;
7
- heightLimit: number;
8
+ getHeightLimit: GetHeightLimitFn;
8
9
  skip: boolean;
9
10
  }
10
11
  export declare const usePointsLabelDirection: (props: UsePointsLabelDirectionProps) => {
@@ -17,3 +18,4 @@ export declare const usePointsLabelDirection: (props: UsePointsLabelDirectionPro
17
18
  }[]>;
18
19
  isContainBasePlaceRef: import("vue-demi").Ref<boolean>;
19
20
  };
21
+ export {};
@@ -1,7 +1,6 @@
1
1
  export type WxSignatureStatus = "PENDING" | "READY" | "TIMEOUT" | "FAIL";
2
2
  export declare class QueryWxSignatureStatus {
3
3
  private error;
4
- private timeout;
5
4
  private status;
6
5
  private pendingStatusPromise;
7
6
  private timoutStatusPromise;
package/dist/style.css CHANGED
@@ -46,6 +46,7 @@
46
46
  font-weight: 400;
47
47
  color: #FFFFFF;
48
48
  line-height: 3.73vw;
49
+ letter-spacing: 0.2vw;
49
50
  }
50
51
  .n8tgem6 {
51
52
  display: flex;
@@ -351,6 +352,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
351
352
  }
352
353
  .fhyw8e {
353
354
  position: absolute;
355
+ left: 0;
354
356
  bottom: -5.07vw;
355
357
  padding: 0 1.07vw;
356
358
  height: 4vw;
@@ -363,12 +365,6 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
363
365
  color: #FFFFFF;
364
366
  line-height: 4vw;
365
367
  background: #4C88FF;
366
- }
367
- .fhyw8f {
368
- right: 0;
369
- }
370
- .fhyw8g {
371
- left: 0;
372
368
  }._65j3sr1 {
373
369
  margin-top: 1.87vw;
374
370
  margin-bottom: -5.5vw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.23-alpha7",
3
+ "version": "0.9.23-alpha9",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"