@heycar/heycars-map 0.9.4 → 0.9.5
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.9.
|
|
12
|
+
const version = "0.9.5";
|
|
13
13
|
const type = "module";
|
|
14
14
|
const scripts = {
|
|
15
15
|
dev: "vite -c vite.config.dev.ts",
|
|
@@ -6686,8 +6686,8 @@ const PickupPoints = defineSetup(function PickupPoints2(props, {
|
|
|
6686
6686
|
zoomTextMin
|
|
6687
6687
|
} = props;
|
|
6688
6688
|
return Vue.h("div", [zoomRef.value >= zoomIconMin && labeledPlacesRef.value.map((place, idx) => {
|
|
6689
|
-
const direction = directionsRef.value[idx];
|
|
6690
6689
|
const label2 = zoomRef.value < zoomTextMin ? void 0 : place.displayName;
|
|
6690
|
+
const direction = label2 ? directionsRef.value[idx] : "right";
|
|
6691
6691
|
return Vue.h(PlaceCircle, {
|
|
6692
6692
|
"attrs": {
|
|
6693
6693
|
"position": place2point(place),
|
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.9.
|
|
10
|
+
const version = "0.9.5";
|
|
11
11
|
const type = "module";
|
|
12
12
|
const scripts = {
|
|
13
13
|
dev: "vite -c vite.config.dev.ts",
|
|
@@ -6684,8 +6684,8 @@ const PickupPoints = defineSetup(function PickupPoints2(props, {
|
|
|
6684
6684
|
zoomTextMin
|
|
6685
6685
|
} = props;
|
|
6686
6686
|
return h("div", [zoomRef.value >= zoomIconMin && labeledPlacesRef.value.map((place, idx) => {
|
|
6687
|
-
const direction = directionsRef.value[idx];
|
|
6688
6687
|
const label2 = zoomRef.value < zoomTextMin ? void 0 : place.displayName;
|
|
6688
|
+
const direction = label2 ? directionsRef.value[idx] : "right";
|
|
6689
6689
|
return h(PlaceCircle, {
|
|
6690
6690
|
"attrs": {
|
|
6691
6691
|
"position": place2point(place),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Place } from "../types/interface";
|
|
2
|
-
type LabelDirection = "left" | "right";
|
|
2
|
+
export type LabelDirection = "left" | "right";
|
|
3
3
|
export interface UsePointsLabelDirectionProps {
|
|
4
4
|
basePlace: Place;
|
|
5
5
|
places: Place[];
|
|
@@ -16,4 +16,3 @@ export declare const usePointsLabelDirection: (props: UsePointsLabelDirectionPro
|
|
|
16
16
|
}[]>;
|
|
17
17
|
isContainBasePlaceRef: import("vue-demi").Ref<boolean>;
|
|
18
18
|
};
|
|
19
|
-
export {};
|