zhihao-ui 1.2.42 → 1.2.44
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.
|
@@ -388,7 +388,7 @@ const formatLength = function(e, t) {
|
|
|
388
388
|
max: 18,
|
|
389
389
|
// 查看船舶详情时地图缩放层级
|
|
390
390
|
findShipMin: 10,
|
|
391
|
-
findShip:
|
|
391
|
+
findShip: 14,
|
|
392
392
|
// 查看车辆详情时地图缩放层级
|
|
393
393
|
findTruck: 14,
|
|
394
394
|
// 船舶绿点图最大显示层级
|
|
@@ -814,7 +814,7 @@ const renderShips = (e) => {
|
|
|
814
814
|
});
|
|
815
815
|
if (o)
|
|
816
816
|
selectedShipData.value = o.get("data");
|
|
817
|
-
else if (t)
|
|
817
|
+
else if (t && t.lon && t.lat)
|
|
818
818
|
selectedShipData.value = t;
|
|
819
819
|
else {
|
|
820
820
|
console.error("找不到船舶");
|
|
@@ -985,7 +985,7 @@ function drawLabelBody(e, t, n) {
|
|
|
985
985
|
}
|
|
986
986
|
else
|
|
987
987
|
h = 0, p = calculateBounds(l, h, f, g, d);
|
|
988
|
-
if (u && h === -1 && (h = 0), p && h > -1) {
|
|
988
|
+
if (u && h === -1 && (h = 0), h === 5 && (h = 0), p && h > -1) {
|
|
989
989
|
let k = getBottomLeftPoint(p), T = getTopRighttPoint(p);
|
|
990
990
|
return {
|
|
991
991
|
center: l,
|
|
@@ -1064,7 +1064,7 @@ const drawText = (e, t) => {
|
|
|
1064
1064
|
scale: void 0,
|
|
1065
1065
|
globalAlpha: labelAlpha
|
|
1066
1066
|
}), m != null && m.length && m.forEach(() => {
|
|
1067
|
-
v[1][0] += pixelRatio
|
|
1067
|
+
v[1][0] += pixelRatio * 18, v[2][0] += pixelRatio * 18;
|
|
1068
1068
|
});
|
|
1069
1069
|
const w = {
|
|
1070
1070
|
points: v,
|
|
@@ -1756,13 +1756,14 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, i = "ship")
|
|
|
1756
1756
|
}), ZoomControl = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-ee822625"]]), _hoisted_1 = { class: "copyright" }, _hoisted_2 = ["src", "width"], _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1757
1757
|
__name: "copyright",
|
|
1758
1758
|
props: {
|
|
1759
|
-
type: { default: COPY_RIGHT_TYPE.HORIZONTAL }
|
|
1759
|
+
type: { default: COPY_RIGHT_TYPE.HORIZONTAL },
|
|
1760
|
+
mapTile: { default: BaseMapType.satellite }
|
|
1760
1761
|
},
|
|
1761
1762
|
setup(e) {
|
|
1762
1763
|
useCssVars((r) => ({
|
|
1763
|
-
|
|
1764
|
+
ae2bbc28: i.value
|
|
1764
1765
|
}));
|
|
1765
|
-
const t = e, n = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "map/tdt-copyright-h.svg" : `map/tdt-copyright-v${mapTile ===
|
|
1766
|
+
const t = e, n = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "map/tdt-copyright-h.svg" : `map/tdt-copyright-v${t.mapTile === BaseMapType.satellite ? "-w" : ""}.svg`), o = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "400px" : "168px"), i = computed(() => t.type === COPY_RIGHT_TYPE.HORIZONTAL ? "auto auto 0 5px" : "0 auto auto 5px");
|
|
1766
1767
|
return (r, l) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1767
1768
|
createElementVNode("img", {
|
|
1768
1769
|
src: unref(CDN_URL) + n.value,
|
|
@@ -1772,7 +1773,7 @@ const trackId = ref(""), cursor = ref(0), renderTrack = (e, t, n, o, i = "ship")
|
|
|
1772
1773
|
}, null, 8, _hoisted_2)
|
|
1773
1774
|
]));
|
|
1774
1775
|
}
|
|
1775
|
-
}), Copyright = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1776
|
+
}), Copyright = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ff542401"]]), dotImage$1 = new Image();
|
|
1776
1777
|
dotImage$1.src = `${CDN_URL}/map/truck-dot.svg`;
|
|
1777
1778
|
dotImage$1.crossOrigin = "anonymous";
|
|
1778
1779
|
const dotActiveImage$1 = new Image();
|
|
@@ -2038,7 +2039,7 @@ const setPointStyle = (e, t, n) => {
|
|
|
2038
2039
|
const d = window.devicePixelRatio || 1;
|
|
2039
2040
|
let [u, f] = c;
|
|
2040
2041
|
u = Number(u), f = Number(f), m.font = `${12 * d}px Arial`;
|
|
2041
|
-
const p = m.measureText(t).width, y = u - p / 2
|
|
2042
|
+
const p = m.measureText(t).width, y = u - p / 2 - (d <= 1 ? 8 : d), h = f + 6 * d, g = p + 4, k = 16 * d, T = e && l || o;
|
|
2042
2043
|
if (fillRectRadius(m, y, h + 13 * d, g, k, T), m.save(), m.restore(), m.fillStyle = e ? "#FFFFFF" : "#000000", m.textAlign = "center", m.textBaseline = "middle", m.fillText(t, y + (p + 4) / 2, h + 22 * d), m.save(), m.restore(), i || r) {
|
|
2043
2044
|
const I = e ? dotActiveImage : dotImage;
|
|
2044
2045
|
m.drawImage(I, u - I.width / 2, f - I.height / 2, 30 * d, 30 * d);
|
|
@@ -2376,7 +2377,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2376
2377
|
}, null, 8, ["type", "map-tile"])
|
|
2377
2378
|
], 512));
|
|
2378
2379
|
}
|
|
2379
|
-
}), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
2380
|
+
}), Map = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c9c5f065"]]), ZhMap = withInstall(Map);
|
|
2380
2381
|
export {
|
|
2381
2382
|
BaseMapType as B,
|
|
2382
2383
|
CDN_URL as C,
|
package/dist/es/index.js
CHANGED
|
@@ -17,8 +17,8 @@ import { Z as A } from "./BaseInfo-VzgiaCKn.js";
|
|
|
17
17
|
import { Z as E } from "./DetailHeader-CSC9DAQc.js";
|
|
18
18
|
import { Z as c } from "./DiyDataTable-BerDffOX.js";
|
|
19
19
|
import { D as Q } from "./DiyDataTable-BerDffOX.js";
|
|
20
|
-
import { Z as B } from "./Map-
|
|
21
|
-
import { B as $, C as aa, c as oa, D as ra, L as ma, S as sa, b as ta, a as Za, m as ea, p as ia, r as pa, t as fa, z as ha } from "./Map-
|
|
20
|
+
import { Z as B } from "./Map-CpopAB8D.js";
|
|
21
|
+
import { B as $, C as aa, c as oa, D as ra, L as ma, S as sa, b as ta, a as Za, m as ea, p as ia, r as pa, t as fa, z as ha } from "./Map-CpopAB8D.js";
|
|
22
22
|
import { Z as L } from "./Table-BoMGydAp.js";
|
|
23
23
|
import { Z as la } from "./BaseItem-D1xoWSGo.js";
|
|
24
24
|
const M = [
|