@vsleem-realsee-viewer/projection-plugin 2.0.2 → 2.0.4
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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { utils as p, Point as
|
|
3
|
-
import {
|
|
4
|
-
const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee = { class: "position-wrappper" }, te = { class: "group-wrapper" }, ne = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as W, ref as g, watch as X, onMounted as q, onUnmounted as Y, unref as l, createElementBlock as x, openBlock as E, createElementVNode as o, createCommentVNode as L, Fragment as N, toDisplayString as m, createVNode as I, withCtx as T, createTextVNode as z } from "vue";
|
|
2
|
+
import { utils as p, Point as Z } from "@vsleem-realsee-viewer/shared";
|
|
3
|
+
import { n as S, T as H, x as J } from "./index-D64Q9Gg8.mjs";
|
|
4
|
+
const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee = { class: "position-wrappper" }, te = { class: "group-wrapper" }, ne = /* @__PURE__ */ W({
|
|
5
5
|
name: "ForgeControl",
|
|
6
6
|
__name: "ForgeControl",
|
|
7
7
|
props: {
|
|
@@ -9,11 +9,11 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
|
|
|
9
9
|
points: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["change"],
|
|
12
|
-
setup(
|
|
13
|
-
const C =
|
|
14
|
-
|
|
12
|
+
setup(P, { emit: _ }) {
|
|
13
|
+
const C = _, k = P, i = g(), V = g(), w = g(), d = g([]), s = g([]);
|
|
14
|
+
X([() => k.points], A), q(() => {
|
|
15
15
|
A(), B();
|
|
16
|
-
}),
|
|
16
|
+
}), Y(() => {
|
|
17
17
|
O();
|
|
18
18
|
});
|
|
19
19
|
function A() {
|
|
@@ -33,7 +33,7 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
|
|
|
33
33
|
env: "AutodeskProduction",
|
|
34
34
|
api: "derivativeV2",
|
|
35
35
|
getAccessToken: async (r) => {
|
|
36
|
-
const u = await
|
|
36
|
+
const u = await H();
|
|
37
37
|
r(u, 3600);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
@@ -88,17 +88,17 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function b(e) {
|
|
91
|
-
const t =
|
|
91
|
+
const t = U();
|
|
92
92
|
d.value.length || (d.value = [t, t]), d.value.some((u) => u !== t) && D(t);
|
|
93
93
|
const n = l(i).getCamera(), r = h(n.position);
|
|
94
|
-
r && (s.value[e] = new
|
|
94
|
+
r && (s.value[e] = new Z(r), C("change", F()));
|
|
95
95
|
}
|
|
96
96
|
function D(e) {
|
|
97
97
|
d.value.length || (d.value = [e, e]), d.value.forEach((t, n) => {
|
|
98
98
|
t != e && s.value[n] && (s.value[n] = void 0);
|
|
99
99
|
}), d.value = [e, e], C("change", F());
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function U() {
|
|
102
102
|
const e = l(i).getExtension("Autodesk.AEC.LevelsExtension");
|
|
103
103
|
return e ? e.getCurrentLevel().index : void 0;
|
|
104
104
|
}
|
|
@@ -167,34 +167,32 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
|
|
|
167
167
|
])
|
|
168
168
|
]),
|
|
169
169
|
o("div", te, [
|
|
170
|
-
|
|
170
|
+
I(l(S), {
|
|
171
171
|
style: { margin: "0 12px" },
|
|
172
172
|
type: s.value.length ? "primary" : "default",
|
|
173
173
|
onClick: t[2] || (t[2] = (v) => b(0))
|
|
174
174
|
}, {
|
|
175
|
-
default:
|
|
175
|
+
default: T(() => [...t[5] || (t[5] = [
|
|
176
176
|
z(" 设定此处为定位点1 ", -1)
|
|
177
|
-
])),
|
|
178
|
-
_: 1
|
|
179
|
-
__: [5]
|
|
177
|
+
])]),
|
|
178
|
+
_: 1
|
|
180
179
|
}, 8, ["type"]),
|
|
181
|
-
|
|
180
|
+
I(l(S), {
|
|
182
181
|
style: { margin: "0 12px" },
|
|
183
182
|
type: s.value.length > 1 ? "primary" : "default",
|
|
184
183
|
disabled: !s.value.length,
|
|
185
184
|
onClick: t[3] || (t[3] = (v) => b(1))
|
|
186
185
|
}, {
|
|
187
|
-
default:
|
|
186
|
+
default: T(() => [...t[6] || (t[6] = [
|
|
188
187
|
z(" 设定此处为定位点2 ", -1)
|
|
189
|
-
])),
|
|
190
|
-
_: 1
|
|
191
|
-
__: [6]
|
|
188
|
+
])]),
|
|
189
|
+
_: 1
|
|
192
190
|
}, 8, ["type", "disabled"])
|
|
193
191
|
])
|
|
194
192
|
]);
|
|
195
193
|
};
|
|
196
194
|
}
|
|
197
|
-
}), se = /* @__PURE__ */
|
|
195
|
+
}), se = /* @__PURE__ */ J(ne, [["__scopeId", "data-v-f11b2e08"]]);
|
|
198
196
|
export {
|
|
199
197
|
se as default
|
|
200
198
|
};
|