@vsleem-realsee-viewer/projection-plugin 2.0.2 → 2.0.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/{BimfaceControl-Bde9ZZX2.mjs → BimfaceControl-C2OyfJ0_.mjs} +7 -9
- package/dist/{CadControl-Dyhxnp6c.mjs → CadControl-CpJSvJP_.mjs} +166 -154
- package/dist/{ForgeControl-Dj8N5zV7.mjs → ForgeControl-BmAaGNV5.mjs} +21 -23
- package/dist/MapControl-DJpEP_1E.mjs +1705 -0
- package/dist/ScaleControl-Bfk8VcbR.mjs +75 -0
- package/dist/edit-DRtArG5y.mjs +4 -0
- package/dist/{index-CS-tvHJ_.mjs → index-D64Q9Gg8.mjs} +12898 -8488
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +74 -53
- package/dist/position-CKTdZLcJ.mjs +4 -0
- package/dist/resize-CsiR4Nzb.mjs +123 -0
- package/package.json +3 -3
- package/dist/MapControl-CMiWJvly.mjs +0 -1509
- package/dist/ScaleControl-LP-FgYcu.mjs +0 -76
- package/dist/resize-BnocRTcF.mjs +0 -30
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, ref as i, computed as w, watch as y, onMounted as g, resolveComponent as C, createElementBlock as N, openBlock as A, createElementVNode as l, createVNode as u, createTextVNode as v, unref as m, withCtx as S } from "vue";
|
|
2
|
-
import { Point as V } from "@vsleem-realsee-viewer/shared";
|
|
3
|
-
import { L as k, M as B, O as E, y as M } from "./index-CS-tvHJ_.mjs";
|
|
4
|
-
const U = { class: "vsleem-scale-control" }, h = { class: "scale-wrapper" }, z = { class: "title-wrapper" }, I = /* @__PURE__ */ b({
|
|
5
|
-
name: "ScaleControl",
|
|
6
|
-
__name: "ScaleControl",
|
|
7
|
-
props: {
|
|
8
|
-
currentModel: {},
|
|
9
|
-
points: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["change"],
|
|
12
|
-
setup(c, { expose: f, emit: L }) {
|
|
13
|
-
const a = c, o = i(""), r = i(1), p = i([
|
|
14
|
-
{ label: "毫米(mm)", value: 1 },
|
|
15
|
-
{ label: "米(m)", value: 1e3 },
|
|
16
|
-
{ label: "千米(km)", value: 1e3 * 1e3 }
|
|
17
|
-
]), x = w(() => p.value.find((t) => t.value === r.value));
|
|
18
|
-
y([() => a.points], d), g(() => {
|
|
19
|
-
d();
|
|
20
|
-
});
|
|
21
|
-
function d() {
|
|
22
|
-
var t, e;
|
|
23
|
-
if (((t = a.points) == null ? void 0 : t.length) === 2) {
|
|
24
|
-
const [s, n] = a.points || [];
|
|
25
|
-
o.value = (e = V.distXY(s, n)) == null ? void 0 : e.toFixed(2);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _() {
|
|
29
|
-
var t;
|
|
30
|
-
if (Number(o.value) > 0) {
|
|
31
|
-
const e = ((t = x.value) == null ? void 0 : t.value) || 1;
|
|
32
|
-
return { points: [
|
|
33
|
-
{ x: 0, y: 0, z: 0 },
|
|
34
|
-
{ x: Number(o.value) * e, y: 0, z: 0 }
|
|
35
|
-
] };
|
|
36
|
-
} else
|
|
37
|
-
throw E.error("请输入实际长度"), new Error("Actual length is a required field");
|
|
38
|
-
}
|
|
39
|
-
return f({
|
|
40
|
-
getData: _
|
|
41
|
-
}), (t, e) => {
|
|
42
|
-
const s = C("arrow-right-outlined");
|
|
43
|
-
return A(), N("div", U, [
|
|
44
|
-
l("div", h, [
|
|
45
|
-
l("div", z, [
|
|
46
|
-
l("div", null, [
|
|
47
|
-
e[2] || (e[2] = v(" 请输入 ", -1)),
|
|
48
|
-
e[3] || (e[3] = l("span", { style: { color: "#5bb36f" } }, " 定位点1 ", -1)),
|
|
49
|
-
u(s, { style: { margin: "0 8px" } }),
|
|
50
|
-
e[4] || (e[4] = l("span", { style: { color: "#5bb36f" } }, " 定位点2 ", -1)),
|
|
51
|
-
e[5] || (e[5] = v(" 实际长度 ", -1))
|
|
52
|
-
])
|
|
53
|
-
]),
|
|
54
|
-
u(m(k), {
|
|
55
|
-
value: o.value,
|
|
56
|
-
"onUpdate:value": e[1] || (e[1] = (n) => o.value = n),
|
|
57
|
-
style: { width: "350px" }
|
|
58
|
-
}, {
|
|
59
|
-
addonAfter: S(() => [
|
|
60
|
-
u(m(B), {
|
|
61
|
-
value: r.value,
|
|
62
|
-
"onUpdate:value": e[0] || (e[0] = (n) => r.value = n),
|
|
63
|
-
style: { width: "120px" },
|
|
64
|
-
options: p.value
|
|
65
|
-
}, null, 8, ["value", "options"])
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["value"])
|
|
69
|
-
])
|
|
70
|
-
]);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}), O = /* @__PURE__ */ M(I, [["__scopeId", "data-v-9914cf2a"]]);
|
|
74
|
-
export {
|
|
75
|
-
O as default
|
|
76
|
-
};
|
package/dist/resize-BnocRTcF.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ref as m, watchEffect as R, unref as w, onUnmounted as x } from "vue";
|
|
2
|
-
function p(d, n, r = {}) {
|
|
3
|
-
const s = m(0), u = m(0);
|
|
4
|
-
let o = null, t = null;
|
|
5
|
-
const i = () => {
|
|
6
|
-
o && (o.disconnect(), o = null), t && (cancelAnimationFrame(t), t = null);
|
|
7
|
-
}, f = (e) => {
|
|
8
|
-
s.value = e.contentRect.width, u.value = e.contentRect.height;
|
|
9
|
-
}, v = (e) => {
|
|
10
|
-
const h = e[0];
|
|
11
|
-
r.debounce || r.throttle ? (t && cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
12
|
-
f(h), n == null || n(e);
|
|
13
|
-
})) : (f(h), n == null || n(e));
|
|
14
|
-
}, c = (e) => {
|
|
15
|
-
i(), o = new ResizeObserver(v), o.observe(e, {
|
|
16
|
-
box: r.box || "content-box"
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
return R(() => {
|
|
20
|
-
const e = w(d);
|
|
21
|
-
e && c(e);
|
|
22
|
-
}), x(i), {
|
|
23
|
-
width: s,
|
|
24
|
-
height: u,
|
|
25
|
-
stop: i
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
p as u
|
|
30
|
-
};
|